![]() |
Stats In Header
Threads: X
Posts: X Members: X Welcome to our newest member, X Last Visit: X and i would also need to know how to get Username Avatar Login/Logout Total Users Online (like in the "What's Going On?" Box) i need this info, to show up in the header, and show up on ALL the pages... please, thanks to anyone who helps! |
I think that you would have to add this to your header template (This is code from the forumhome template that shows your stats)
Code:
<tbody> |
nope, didnt work. im sure something has to be put into phpinclude or something :|
|
I don't think phpinclude, but you would probably have to edit global.php to make it work.
|
Quote:
I am not sure of the edits exactly |
Well, i need to know how to do that if any1 knows please help!
and i also edited the 1st post |
Do this:
In template "phpinclude_start" Add: PHP Code:
As for the login/logout. Do this in the header template: HTML Code:
<if condition="$bbuserinfo['userid']"> HTML Code:
$bbuserinfo[username] |
Ill give it a try, i hope they show up on all pages.
|
Nice, those all work :) thanks.
but i still need... Newest Member Last Login and Avatar |
Ok.
so i got, last login in the head. now i still need Avatar (has to show on all pages) Newest member |
I'll see what i can do, im in the middle of prepearing for hurrican frances so i might not be online for a few..
|
Thanks, you got AIM?
|
Yes, but its only for personal friends, and family. Not for support on hacks, ect.. Best way to get ahold of me is here, or www.initialz.com
|
alrite, well, are u tryin to do this? if so i thank u
|
Sorry man, i just don't have the time at this moment. I have a huge hurrican about 12 hours away from me. I prolly start to do it till monday.
|
well, alrite thanks
|
Quote:
PHP Code:
$newusername = new user |
do i put that in phpinclude_start?
ok, well i got avatar already, so i dont need the avatar part, i need newest member in header, and it has to show on all pages. |
Quote:
|
Quote:
|
for newest member add this to phpinclude_start:
PHP Code:
HTML Code:
<a href="member.php?u=$newuserid">$newusername</a> |
heloo FREIND ,
Step 1 : open : global.php Step 2 : Find line 491) Code:
eval('$header = "' . fetch_template('header') . '";'); Step 3 :Repalce with : Code:
$mem=$DB_site->query_first("SELECT COUNT(*) AS users FROM " . TABLE_PREFIX . "user"); Step 4: threads : $thr[threads] Posts : $post[posts] members : $mem[users] new member : $newusername finish |
Was this a reply to someones question? This is a very old thread, and the changes you suggest add more queries then needed to the page.
Quote:
|
LOL ...
|
Does this still work for 3.6.4? I can't seem to find the template: phpinclude_start
|
This will not work for 3.6 versions. Instead, you need to use the global_start plugin.
|
Do I have to create the "golbal_start" plugin? I can't find it?
|
I want to do this aswell!
I'm using 3.7, would appreciate som help here :-) |
This thread is 4 years old, and contains mostly outdated information.
I suggest you search for a more recent thread or create a new one. |
Displaying Avatar in Header Plugin:
Hook Location: global_start Code: Code:
if ($vbulletin->userinfo['userid']) --------- Showing user stats in the header Plugin: Hook Location: global_start Code: Code:
// forum stats start $totalonline = Total Users Online $numbermembers = Total Members Registered Unfortunately I don't have any other variables, so you'll need to find code for the other ones you'd like to display. |
where do i post this.. what page template. is there a template named phpinclude_start?
Quote:
|
Read my last post on page 2. phpinclude_start is no longer a valid hook, you must use another.
|
All times are GMT. The time now is 03:21 AM. |
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:
|