The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Getting Data from vb Database
On the homepage of my website (not the forum), I list the total number of board members I have. I currently have this hard coded and have been updating this manually each night. Does anyone have any code (html or php) that would automate this - like connect to the vb database and do a Select count(*) from user, and display it?
I'm not sure how to do it. Thanks |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
thx nico_swd
|
#4
|
|||
|
|||
Yes, thank you! I'll give that a shot.
|
#5
|
||||
|
||||
Note that this code would mess up the "who's online" page since the page where you're gonna put it in is not defined. You can add these lines before including the global.php file to avoid that.
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|