Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TechnoDragon

Pages: 1 ... 10 11 [12]
166
Items / Re: Item Transfers.
« on: June 01, 2006, 02:05:55 pm »
Any time!

P.S> Are you stalking me?  ;D

167
Items / Re: Item Transfers.
« on: May 31, 2006, 11:00:51 am »
Find this bit of code and change the bold piece to realName:
Quote
        );
$result = db_query("SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE memberName = '{$_POST['membername']}'", __FILE__, __LINE__);
        $row = mysql_fetch_array($result, MYSQL_ASSOC);
        $newowner = $row['ID_MEMBER'];
$result = db_query("SELECT ownerid, itemid
FROM {$db_prefix}shop_inventory
WHERE id = '{$_POST['giftid']}'", __FILE__, __LINE__);
        $row = mysql_fetch_array($result, MYSQL_ASSOC);
        $itemid = $row['itemid'];
        if ($row['ownerid'] !== $ID_MEMBER) {
       die($txt['shop_use_others_item']);
       }

for the clucky name part look for this:
Quote
$pmfrom = array(
'id' => '1',
'name' => 'Clucky',
'username' => 'Clucky'

just change the name to whatever you like.
Quote

168
Items / Re: Item Transfers.
« on: May 27, 2006, 12:36:40 pm »
Never mind...found the line, made the change, works perfectly!

169
Items / Re: Item Transfers.
« on: May 25, 2006, 10:40:07 am »
this may sound like an innane question...but what line does the change need to be done to?

170
Items / Re: Item Transfers.
« on: May 24, 2006, 11:27:01 pm »
ok...figured out a problem with this (it works nearly perfectly). However, if a member has a diferent display name than their login then it errors out because that member does not exist.  Example: member has a login of booger, but display is snot...when you lookup a member to send it to it shows snot, when you send the item, it thinks the member doesn't exist because there is no member name of snot, only booger.  Where is the code do i need to change this.  When i put the member name in the box it sends without a problem.

171
Items / Re: Item Transfers.
« on: May 24, 2006, 01:35:25 pm »
Didn't work...it seems to be trying to create a new id that does not exist.  82 is not a user id that exists...only goes to 81 right now

172
Items / Re: Item Transfers.
« on: May 22, 2006, 10:19:01 pm »
Sure, here ya go:

Quote
       else {
        $result = db_query("UPDATE {$db_prefix}shop_inventory
SET ownerid = $newowner
WHERE id = '{$_POST['giftid']}'", __FILE__, __LINE__);  <---- Line 1007
$context['shop_buy_message'] = "Item succesfully transfered!";
$result = db_query("SELECT name
FROM {$db_prefix}shop_items
WHERE id = {$itemid}", __FILE__, __LINE__);
      $row = mysql_fetch_array($result, MYSQL_ASSOC);
      $name = $row['name'];
$result = db_query("SELECT memberName
FROM {$db_prefix}members
WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);
        $row = mysql_fetch_array($result, MYSQL_ASSOC);
        $target = $row['memberName'];
$pmfrom = array(
'id' => '1',
'name' => 'Clucky',
'username' => 'Clucky'

173
Items / Re: Item Transfers.
« on: May 22, 2006, 08:34:28 am »
ok...made all of the edits...shop loads, but when i send the item to someone i get this error:

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = '82'' at line 3
File: /home/www/forum.technodragon.net/Sources/shop/Shop.php
Line: 1007

what do i need to edit to fix this?

174
Items / Re: 'Profile Image' item
« on: May 11, 2006, 01:35:05 pm »
would it be possible to tweak this a bit?  The idea is to use images of small animals "pets" but I would like a page to display all of the available "pets" as images and then allow the buyer to name it.

175
you still need the other code you posted as well.

176
Fixed it for ya....

Find this in Sources/ManageBoards.php:
Code: [Select]
$boardOptions['override_theme'] = isset($_POST['override_theme']);
and add this after:
Code: [Select]
$boardOptions['countMoney'] = isset($_POST['countMoney']);

177
no, it still won't stay checked

178
General SMFShop Discussion / Re: Is This Right?
« on: April 28, 2006, 11:38:55 pm »
Not that i am trying to be pushy...but has this been addressed yet?  Now instead of boards not unchecking...they won't stay checked...it is starting to get very annoying as one of the boards on my site that is the most popular isn't counting shop points!

Pages: 1 ... 10 11 [12]