XMB Forum Software

Shop hack

Karlie - 2-17-2012 at 05:54 PM

Hi, I can't seem to find the following codes with the shop hack v.3 in the the topic admin php file.

It asks me to find these code's but can't find them. I also have the forum hack on so been trying to combine them so they work would someone be able to check this for me please I got as far as step 9:

When I think ive found these too it says this -
Parse error: syntax error, unexpected T_CASE in /home/kawaiist/public_html/topicadmin.php on line 251

Code:
while($result = $db->fetch_array($query)) { $db->query("UPDATE ".X_PREFIX."members SET postnum=postnum-{$result['pidcount']} WHERE username='".$db->escape($result['author'])."'"); } ******************************** * Replace With: ******************************** $query2 = $db->query("SELECT author FROM ".X_PREFIX."posts WHERE tid=$tid ORDER BY dateline LIMIT 1"); if (1 == $db->num_rows($query2)) { $firstauthor = $query2['author']; } else { $firstauthor = ''; } while($result = $db->fetch_array($query)) { $postcountmoney = (int)$result['pidcount'] * (int)$SHOP['spd']; //calculate money to subtract if ($result['author'] == $firstauthor) $postcountmoney += (int)$SHOP['std'] - (int)$SHOP['spd']; $db->query("UPDATE ".X_PREFIX."members SET postnum=postnum-{$result['pidcount']}, money=money-$postcountmoney WHERE username='".$db->escape($result['author'])."'"); } ******************************** * Find Code: ******************************** $db->query("UPDATE ".X_PREFIX."members SET postnum=postnum-{$result['pidcount']} WHERE username='$dbauthor'"); ******************************** * Replace With: ******************************** $postcountmoney = (int)$result['pidcount'] * (int)$SHOP['spd']; //calculate money to subtract $db->query("UPDATE ".X_PREFIX."members SET postnum=postnum-{$result['pidcount']}, money=money-$postcountmoney WHERE username='$dbauthor'"); ====================================================================================================




Attachment: topicadmin(2).php (39kB)
This file has been downloaded 425 times


miqrogroove - 2-17-2012 at 09:57 PM

I can update the hack.. brb

miqrogroove - 2-17-2012 at 10:45 PM

Shop v3.4 now. The only changes are in two files mentioned, plus the instructions for topicadmin.php are updated.

[XMB 1.9.11] Shop v3.4  

Karlie - 2-17-2012 at 10:56 PM

Thank you, ill re do that now

Sarahhuh - 2-18-2012 at 01:12 AM

Hi, I'm a co owner to Karlies forum, and we've be having issues with moderation. We can't move, close or do any other moderation to any posts. This error comes up:

Parse error: syntax error, unexpected T_CASE in /home/kawaiist/public_html/topicadmin.php on line 251


and this is what's on that line:

case 'close':


Daniel Gouveia - 2-18-2012 at 01:33 AM

Enjoy it :)

Attachment: topicadmin.php (42kB)
This file has been downloaded 451 times


Sarahhuh - 2-18-2012 at 01:44 AM

thank you so much! it works! :)