View Full Version : Store Hack Problem in index.php
countryboy713
06-05-2002, 03:33 AM
i seem to be getting an error when i do the file changes to root/index.php on Lesanes Store Hack. when i upload that file and try to go to the main forum page i get this error:
Parse error: parse error in /home/virtual/site16/fst/var/www/html/forums/index.php on line 121
could this be conflicting with the welcome panel hack, stats panel, or the users online today hack? is there any way to fix this? if you need to see the code for my index.php file please just let me know.
thanks,
countryboy
Admin
06-05-2002, 05:59 AM
What are lines 115 -> 125?
countryboy713
06-05-2002, 06:22 AM
$time = time();
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[2] = $numbertodayonline;
$maxusers[3] = $time;
}
$todayrecordusers = $maxusers[2];
$todayrecorddate = vbdate($dateformat,$maxusers[3]);
eval("\$todayloggedinusers = \"".gettemplate('forumhome_todayloggedinusers')."\";");
that is 115-125 but the changes have nothing to do with any of those lines. the hack just adds a few lines near the beginning of the file.
Admin
06-05-2002, 07:15 AM
I guess the problem is with an excess opening bracket. Tell me what you added to index.php.
Dean C
06-05-2002, 08:03 AM
firefly help me plz !
https://vborg.vbsupport.ru/showthread.php?s=&postid=257861#post257861
Admin
06-05-2002, 08:20 AM
Please don't hijack threads.
Dean C
06-05-2002, 09:51 AM
i kno but after spending an hour on the store hack for it not to work... it kinda got on my nerves so i really want to be able to fix this...
sorry d00d
countryboy713
06-05-2002, 08:49 PM
here is what i added:
// Store hack By Lesane
$storeadmin = $DB_site->query_first("SELECT pointname,storename FROM storeadmin");
$pointname=$storeadmin[pointname];
$storename=$storeadmin[storename];
$store=$DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
if(!$bbuserinfo[userid]) {
$storepoints="0";
} else {
$storepoints=$store[storep];
}
i added that right before:
// get total posts
countryboy713
06-08-2002, 06:58 AM
please help ive had to go without any info in the welcome panel and stats panel for a few days now.
Lesane
06-08-2002, 08:32 AM
The code that you inserted from my hack is good. I can look on your index.php if you want, send it me via pm.
Littlebit
10-19-2002, 01:36 PM
Hi Countryboy,
I was wondering if the welcome panel hack will need adjustments to go along with the store hack...or if that was what your problem had to do with.
I just installed Lesanes Store Hack (works flawlessly) and am about to add the Welcome Panel...is there anything I might need to know first?
:classic:
traekwon
10-20-2002, 12:08 AM
Originally posted by Littlebit
Hi Countryboy,
I was wondering if the welcome panel hack will need adjustments to go along with the store hack...or if that was what your problem had to do with.
I just installed Lesanes Store Hack (works flawlessly) and am about to add the Welcome Panel...is there anything I might need to know first?
:classic:
Nope, we have the Welcome Hack and Store hack installed perfectly on our boards. It shouldn't affect your hack.
Littlebit
10-20-2002, 01:41 AM
Got them both now too...no problems at all...thanks for responding :cheeky:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.