The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Info in header
I want to be able to put the user information into the header template.
Such info as .... Username, PM information, Time, Avatar. Is this possible?? Also having this information in the header will it work on all pages such as showthread, member etc... Thanks. |
#2
|
||||
|
||||
You can just have in the header what is defined in global.php
so the complete $bbuserinfo array is useable there |
#3
|
|||
|
|||
Could you just give me a short example of this please?
|
#4
|
|||
|
|||
Okay I have the Username in the header now
But what variables would I use to display the info in the image I've attached below. |
#5
|
|||
|
|||
Ah okay lol I'm getting this myself now. I should try before asking for help.
I've done the username and the posts. I'm a little unsure of what to use for the time, PM info and the avatar. Any help. |
#6
|
||||
|
||||
well, pms are not saved this time, you have to add a query....
try to add this into your phpinclude template: PHP Code:
avatars you have to add this into phpinclude: PHP Code:
it will show the custom avatar of a user |
#7
|
|||
|
|||
Thank you so much Xenon this is great, it helps a lot
|
#8
|
|||
|
|||
Okay, I've tried the code you've given me and the Avatar part doesn't work. I can get a default unregistered avatar to show.
} else { $bbuserinfo[showavatar]=""; } - If I put an image tag into here It will display. Although I have a avatar set for my user It will not show. |
#9
|
||||
|
||||
PHP Code:
PHP Code:
|
#10
|
|||
|
|||
Thanks, I couldn't wait though as it was for a client. So I got help from Mist. Thanks a lot though
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|