The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 ![]() |
#2
|
||||
|
||||
![]()
Is that your actual script cuz it doesn't look like the path to your forums was input here:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
![]()
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.
|
#4
|
|||
|
|||
![]()
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 |
#5
|
||||
|
||||
![]()
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.
|
#6
|
|||
|
|||
![]()
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 ? |
#7
|
||||
|
||||
![]()
What version of vbulletin are you running on your site?
|
#8
|
|||
|
|||
![]()
3.6.10
|
#9
|
||||
|
||||
![]()
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 $db->query_first OR several other lesser used methods depending on where the query is being used |
#10
|
|||
|
|||
![]() Quote:
But , were i fond this code ? can you send me one pliz ? TNX |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|