Back to vBulletin 3.5 Add-ons

Display Avatar In Any Template
Mod Version: 1.00, by M1th

This modification is in the archives.
vB Version: 3.5.0 Beta 1 Rating: (0 vote - 0 average) Installs: 22
Released: 15 Jun 2005 Last Update: Never Downloads: 1
Not Supported Template Edits Code Changes  

Very similar to fraghappy's http://%5Burl=index.php?t=83053%5D Plugin with the difference being that you will now be able to get rid of the extra query executed on every page

Simply open up your config.php file and place:
PHP Code:
define('AVATAR_ON_NAVBAR'1); 
at the end, right after:
PHP Code:
$config['Mysqli']['ini_file'] = ''

Place this HTML code in any template you like.

HTML Code:
<if condition="$vbulletin->userinfo['avatarid']">
	 <img src="$bbuserinfo[avatarpath]" alt="$bbuserinfo[username]'s Avatar" border="0" />
<else />
	  <if condition="$vbulletin->userinfo['hascustomavatar']">
		  <if condition="$vbulletin->options['usefileavatar']">
			 <a href="profile.php?do=editavatar"><img src="$vboptions[avatarurl]/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" /></a>
		  <else />
			 <a href="profile.php?do=editavatar"><img src="image.php?u=$bbuserinfo[userid]&amp;dateline=$avatar[dateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" /></a>
		  </if>
	  <else />
		 <a href="profile.php?do=editavatar"><img src="$stylevar[imgdir_misc]/noavatar.gif" alt="guestavatar.gif" title="No Avatar Specified" border="0" /></a>
	  </if>  
</if>
Upload the noavatar.gif to your /images/misc directory

Done.

Creditsfraghappy for the idea and letting me release this mod.

Download

No files for download.

Supporters / CoAuthors

  • M1th

Screenshots


vblts.ru supports vBulletin®, 2022-2025