![]() |
[RC2] Hackless avatar on homepage
This is a update of my template modification for vB 2, with this modification installed your avatar will be displayed on index.php. This can be useful for welcome panels and other similar template modifications.
Yes im aware Tungsten as done for for vBulletin 3 beta, and this is no reflection on him but his code dose alot of database work to pull the avatar, mine will only run one query. Credits: Chen - vB 2 hack author and idea Tungsten - updated this modification to vB 3 beta O and me ;) |
I've installed it, and it works, good :)
|
Any chance of a screenie in vb3
|
might also want to make that
if (THIS_SCRIPT == 'index' AND $bbuserinfo[userid] != 0) that way unregisted users wont run into it :) |
If you put this in config.php, you can do this with no added queries:
define('AVATAR_ON_NAVBAR', 1); |
Quote:
Hmm, how would you get the avatar to show up? I've tried $userinfo[avatarurl] and $bbuserinfo[avatarurl], non seem to work for me. :/ |
Actually, nevermind.. figured it out (thanks to Kura):
Code:
<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" /> |
good simple things
|
Quote:
PHP Code:
|
Interesting mod I'm probably going to use this when I make a new welcome panel for my sites
|
All times are GMT. The time now is 11: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:
|