View Full Version : Header Question
Yuber
04-24-2003, 09:06 PM
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:
$numbermembers
$totalthreads
$totalposts
$newusername
$bbuserinfo[lastvisitdate]
$username
$avatarimage
So I was windering what template codes would you use? Thanks in advance.
Koutaru
04-24-2003, 09:11 PM
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
Yuber
04-24-2003, 09:17 PM
How can I put in codes in the phpinclude?
Dean C
04-25-2003, 09:18 AM
In future please post template-related questions in the correct forum :)
Thanks
- miSt
jamslam
05-04-2003, 06:23 AM
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 :)
Dean C
05-04-2003, 10:28 AM
It requires hacking :)
- miSt
jamslam
05-04-2003, 05:24 PM
Today at 12:28 PM Mist said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=391148#post391148)
It requires hacking :)
- miSt
Ah, I found it. I just added
$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'];
to the global.php
that was kinda my first hack, LOL
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.