sleepbirdcyp
02-26-2002, 09:52 PM
PLZ Help ME
I just install a Hack called Topposter on my forum!
just add those code to my root/index.php
// Top poster
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
// Top Threads starter
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
under
// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);
but when i go to my forum it says
Parse error: parse error, expecting `']'' in /home/sleepbir/public_html/forum/vbb/index.php(526) : eval()'d code on line 52
What's problem?
I use my backup files to overwrite my index.php
but still got this problem
HELP!!!!!!!!!!!!!!!
I just install a Hack called Topposter on my forum!
just add those code to my root/index.php
// Top poster
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
// Top Threads starter
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
under
// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);
but when i go to my forum it says
Parse error: parse error, expecting `']'' in /home/sleepbir/public_html/forum/vbb/index.php(526) : eval()'d code on line 52
What's problem?
I use my backup files to overwrite my index.php
but still got this problem
HELP!!!!!!!!!!!!!!!