![]() |
This is what we use on the main page of this forum.
So many people liked it and asked for it, I posted it on at least 5 threads already, but someone wanted a proper release so here it is. :) Anyway, in index.php add this: Code:
if ($bbuserinfo[userid]!=0) { Code:
$permissions=getpermissions(); Code:
$avatarimage It will display the user's avatar if he has selected one, if he hasn't selected one it will show noavatar.gif (you'll need to upload that to your images folder), and if it's a guest, it will show guestavatar.gif, and link the image to register.php. |
I like it, nice work there Firefly
|
it's good hack for me thankz FireFly~~
if i want it show up like main page of this forum what template should i put this code$avatarimage? forumhome or .....?? |
forumhome template
|
or any of the other's that are listed under forumhome
|
oh yeah, love'n it firefly!
http://www.form-kaos.com/board/ |
How would I go about using $avatarimage in my header template. Modifying something in functions.php correct?
|
Add the code to global.php, before:
Code:
$header=''; |
Thank You :D
|
Thanks FireFly!
|
All times are GMT. The time now is 01:41 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:
|