![]() |
Stats member... Prob !
Hello
recently i token this script to view the stat of member to intagrate to my page web ! PHP Code:
why ? some modification in the script ? Sorry of my bad english and tnx ;) |
Is that your actual script cuz it doesn't look like the path to your forums was input here:
PHP Code:
PHP Code:
|
Wow. I haven't seen 3.0 code in forever, but as Lynne stated you must set your/pat to your forums directory for this to work.
|
Okay , i have configured my path...
But when i test this script , i have this error Fatal error: Call to a member function on a non-object in /home/mysite/public_html/stat.php on line 21 |
It appears that the $DB_site class isn't created. I haven't messed with 3.0 code at all (meaning I can't tell you what class name it is), but it is looking like Global.php doesn't initiate it like it should.
|
I don(t understand this line
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post'); $DB_site -> is the probleme !!!!! it's my database name ? |
What version of vbulletin are you running on your site?
|
3.6.10
|
Well, the code you are trying to use is for 3.0. The method to make a database query is different now. It used to be:
Code:
$DB_site->query_first and is now: Code:
$vbulletin->db->query_first Or |
Quote:
But , were i fond this code ? can you send me one pliz ? TNX |
All times are GMT. The time now is 03:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|