| Pages: 1 2 |
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 9/6/2006 at 19:24 |
|
|
[Resolved] Shop Hack ... Where?
Sorry im retarded LOL
where can i get the shop hack installation at.
Can someone give me the url to the thread/topic. |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 9/6/2006 at 19:26 |
|
|
All hacks are available in the downloads section. The link is in the header ^.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 9/6/2006 at 19:28 |
|
|
Oh haha i knew that.
=] Thanks! |
|
|
carwash!
Junior Member

Posts: 13
Registered: 14/12/2005
Member Is Offline
|
posted on 10/6/2006 at 17:48 |
|
|
But the version 1.9.5 isn't available...  |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 10/6/2006 at 22:39 |
|
|
EDIT :// Fixed.
PROBLEM - Do i set the DEBUG to True or False.
I did everything the read me thing told me to do.
And i did the addons etc..
Then when i went to the regular page
http://forum.funkysprinkle.com
click shop thats what shows up..
what do i do?! |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 00:20 |
|
|
If you need to find ?> in any file and cannot find it, add the new code to the very end of the file.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 00:33 |
|
|
Okay i couldnt find ?> when i went to edit >> find.
So i let my friend do it which shes had shop hack before on her forum too,
but i dont know where she found it which im curious about
but whats the new code?
- she signed off |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 21:59 |
|
|
HELP PLEASE. |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 22:02 |
|
|
The instruction will say find: ?> then add above: #SOME CODE#
You need to add the code that is supposed to be above ?> to the end of the file.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 22:11 |
|
|
ETC...ETC..
$newu2unum = $db->result($query, 0);
if ( $newu2unum > 0) {
$newu2umsg = "<a href=\"#\" onclick=\"Popup('u2u.php', 'Window', 700, 450);\">$lang[newu2u1] $newu2unum$lang[newu2u2]</a>";
}
}
// Interest Payment
$bank_lastdate = explode('|', $bank_lastdate);
$bank_yearnow = gmdate("Y", time() + ($addtime * 3600));
$bank_monnow = gmdate("m", time() + ($addtime * 3600));
$bank_mdaynow = gmdate("j", time() + ($addtime * 3600));
$bank_hournow = gmdate("H", time() + ($addtime * 3600));
if($bank_lastdate['2'] < $bank_yearnow || $bank_lastdate['1'] < $bank_monnow || $bank_lastdate['0'] < $bank_mdaynow) {
if($bank_hour == $bank_hournow) {
$query = $db->query("SELECT uid, bank_balance FROM $table_members WHERE bank_balance > 0");
while($bank_member = $db->fetch_array($query)) {
$bank_balance = ((100 + $bank_interest) / 100) * $bank_member['bank_balance'];
$db->query("UPDATE $table_members SET bank_balance='$bank_balance' WHERE uid='$bank_member[uid]'");
}
$db->free_result($query);
$bank_lastdate = "$bank_mdaynow|$bank_monnow|$bank_yearnow";
$db->query("UPDATE $table_settings SET bank_lastdate='$bank_lastdate'");
}
}
?>
Okay its been like this...
Is that what you mean?
because its still not working.
=\ (( btw thanks for doing this =] )) |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 22:13 |
|
|
In this case:
| Quote: |
// Interest Payment
$bank_lastdate = explode('|', $bank_lastdate);
$bank_yearnow = gmdate("Y", time() + ($addtime * 3600));
$bank_monnow = gmdate("m", time() + ($addtime * 3600));
$bank_mdaynow = gmdate("j", time() + ($addtime * 3600));
$bank_hournow = gmdate("H", time() + ($addtime * 3600));
if($bank_lastdate['2'] < $bank_yearnow || $bank_lastdate['1'] < $bank_monnow || $bank_lastdate['0'] < $bank_mdaynow) {
if($bank_hour == $bank_hournow) {
$query = $db->query("SELECT uid, bank_balance FROM $table_members WHERE bank_balance > 0");
while($bank_member = $db->fetch_array($query)) {
$bank_balance = ((100 + $bank_interest) / 100) * $bank_member['bank_balance'];
$db->query("UPDATE $table_members SET bank_balance='$bank_balance' WHERE uid='$bank_member[uid]'");
}
$db->free_result($query);
$bank_lastdate = "$bank_mdaynow|$bank_monnow|$bank_yearnow";
$db->query("UPDATE $table_settings SET bank_lastdate='$bank_lastdate'");
}
} |
is the new code.
If you are unsure what you are doing, it would be a good idea to let your friend install your hacks.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 22:17 |
|
|
then after that code i put ?> with or without it?
i tried both ways replacing the old code and still does not work.
Maybe i have an old version of the shop?
Version 1.9.1 < --- some poo like that lol...
Is there a newer version or am i doing something wrong?
if you have msn or aim i could send you my info to ftp and you could check it out.
=] ? |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 22:29 |
|
|
What error(s) are you receiving?
I will not login to users accounts to install hacks for them. I only access users accounts to gather information that will help resolve issues that
the member does not understand.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 22:53 |
|
|
well when i click shop on my forum index it says this :
MySQL has encountered an unknown error. To find out the exact problem, please set the DEBUG flag to true in header.php.
Would you like me to switch it to true? |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 22:54 |
|
|
Yes, then post the actual error you are receiving.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 22:57 |
|
|
Notice: Undefined variable: table_shop_settings in /home/.gerard/funkysprinkle/forum.funkysprinkle.com/shop.php on line 14
MySQL encountered the following error: 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 '' at line 1
In the following query: SELECT * FROM
Okay switched to True and i have no idea what ^ means.
But my brother might =] So if you could explain to me what i have to do... |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 22:59 |
|
|
The shop installation has not been completed.
There is code missing from the $tables array in header.php
You or your friend will need to go through the installation instructions and ensure all steps have been completed.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 23:09 |
|
|
hmm for some reason i cant find
FIND
--------------------------------------------------------------------------------
$tables = array('attachments', ...
--------------------------------------------------------------------------------
before when i started i could...
is this a problem |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 23:10 |
|
|
Try searching for just $tables = array(
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 23:14 |
|
|
okay found it :
// Load Objects, and such
$tables =
array('attachments','banned','buddys','favorites','forums','logs','members','posts','ranks','restr
icted','settings','smilies','templates','themes','threads','u2u','whosonline','words');
foreach ($tables as $name) {
${'table_'.$name} = $tablepre.$name;
}
but i did everything correct =\
I just dont get it... Hm
The only thing i CANNOT find is ?>
and i replaced the other code with the one you gave up there
but it has no ?> right now. Do i add it again at the bottum?
this is soo confusing |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 23:15 |
|
|
There are no shop_ tables in the above array as per the install instructions.
Is the above code exactly as it is in your file?
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 23:18 |
|
|
yes and if you want i`ll put the whole stinkin header.php on here lol
and what do you mean there are no shop_tables and stuff
im sorry im new at this  |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 23:18 |
|
|
Try using this code instead of the code you posted above:
// Load Objects, and such
$tables =
array('attachments','banned','buddys','favorites','forums','logs','members','posts','ranks','restricted','settings','smilies',
'templates','themes','threads','u2u','whosonline','words'
,'member_items','shop_bank','shop_cats','shop_items','shop_settings',shop_votes');
foreach ($tables as $name) {
${'table_'.$name} = $tablepre.$name;
}
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Ellsterr
Junior Member

Posts: 37
Registered: 8/6/2006
Member Is Offline
|
posted on 11/6/2006 at 23:20 |
|
|
oh great now my forum index doesnt show up...
it says :
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/.gerard/funkysprinkle/forum.funkysprinkle.com/header.php on
line 240 |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 11/6/2006 at 23:24 |
|
|
Okay, try this code: (There was a minor typo)
Try using this code instead of the code you posted above:
// Load Objects, and such
$tables =
array('attachments','banned','buddys','favorites','forums','logs','members','posts','ranks','restricted','settings','smilies',
'templates','themes','threads','u2u','whosonline','words'
,'member_items','shop_bank','shop_cats','shop_items','shop_settings','shop_votes');
foreach ($tables as $name) {
${'table_'.$name} = $tablepre.$name;
}
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
| Pages: 1 2 |