Put this in any page you want to. Just change the path to global.php and the LIMIT statement to reflect how many people you want to display. It's set at 10.
HTH
-jim
THANKS MAN! Wow, this wasnt hard like it thought, sweet!
I did that and I get this error
Warning: Supplied argument is not a valid MySQL-Link resource in /web/sites/3/leokiller/www.flyaway.f2s.com/board/main.php on line 15
and on line 15 the only thing on is is this symbol -> {
help ... :(
help help help plzzzzzzz
try changing the lines to this:
$db_link = @mysql_pconnect("$dbservername", "$dbusername", "$dbpassword");
mysql_select_db ("$dbname", $db_link)
or die("Error connecting to DB");
$query = mysql_query("SELECT posts, username FROM user ORDER BY user.posts DESC, user.username DESC LIMIT 0, 10")
or die("Query Error:$query");
This should tell you where your error is...
Good Luck,
is sais error connecting to DB ,how is that possible ? It uses my global.php yes ? Well since my vbulletin shows no problems and connects without errors ,how can this script make an error connecting ? Please help , I really want this script to work
that's the script I use ,and this is the error I get :
Warning: Supplied argument is not a valid MySQL-Link resource in /web/sites/3/blabla111111/www.blabla.f2s.com/board/main.php on line 15
Error connecting to DB
$db_link is wrong I think , with what should I replace it ?
do you have this in the same directory had global.php? if not you have to have the full path for it to open it
it's in the same directory
Originally posted by JimF
Sorry, I wasn't thinking...
Put this in any page you want to. Just change the path to global.php and the LIMIT statement to reflect how many people you want to display. It's set at 10.
HTH
-jim
I got it to work by making a file inside the vBulletin folder, setting the global require path to just require("global.php"); and then called the file using the reltivie path (eg. include ("http://www.yourdomain.com/vBulletin/topposters.php") and everything worked nice and quickly.