The Arcive of vBulletin Modifications Site. |
|
Header Question Details »»
|
|||||||||||||||||||||||||
Hello, I have seen on some boards hat they have their welcome message and stats in their heard to make the info appear on every page such as the forum display, user cp, and postbit. These codes don't seem to work if you put them in the header:
PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
you'll either have to mess around with the global.php or put codes into the phpinclude
maybe someone else can be a little more descriptive
|
|
#3
|
||||
|
||||
|
How can I put in codes in the phpinclude?
|
|
#4
|
||||
|
||||
|
In future please post template-related questions in the correct forum
![]() Thanks - miSt |
|
#5
|
||||
|
||||
|
I'm actually in search of the same answer he is looking for. Can anyone give a descriptive way to do this? It would be very helpful
|
|
#6
|
||||
|
||||
|
It requires hacking
![]() - miSt |
|
#7
|
||||
|
||||
|
Quote:
Code:
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
// 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']);
// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];
that was kinda my first hack, LOL |
![]() |
|
|