View Full Version : Display Avatar In Any Template
Very similar to fraghappy's Show Avatar In Navbar (http://%5Burl=http://www.vbulletin.org/forum/showthread.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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
at the end, right after:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Place this HTML code in any template you like.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Upload the noavatar.gif to your /images/misc directory
Done. :)
Credits fraghappy for the idea and letting me release this mod. :)
Who moved this to the plugin forum? :p
Marco van Herwaarden
16 Jun 2005, 12:07
Who moved this to the plugin forum? :pPlugin forum? What plugin forum? :D :D
Plugin forum? What plugin forum? :D :D
Sneaky Mods. ;)
dsboyce8624
16 Jun 2005, 21:07
Will this work on 3.0.x?
Chris M
16 Jun 2005, 21:10
You will have to adapt it to function with vB3.0.x, but it should do ;)
Satan
dsboyce8624
16 Jun 2005, 21:24
Problem is I have no idea how.
I know the first find/add won't work, but how do I replace it?
Yep, this works with vB3.0.x too.
Just replace all the instances of $vbulletin->userinfo with $bbuserinfo and $vbulletin->options with $vboptions in the HTML code. :)
And you wont see $config['Mysqli']['ini_file'] = ''; in the config.php file. Instead place the code right after $cookieprefix = 'bb';
dsboyce8624
16 Jun 2005, 22:11
Yep, this works with vB3.0.x too.
Just replace all the instances of $vbulletin->userinfo with $bbuserinfo and $vbulletin->options with $vboptions in the HTML code. :)
And you wont see $config['Mysqli']['ini_file'] = ''; in the config.php file. Instead place the code right after $cookieprefix = 'bb';
Already did something else.
Thanks though.
As I posted in Frag's hack release thread, you can use my "No Avatar" image if you don't like the one provided. See attached image.
what do you mean post the html code in any template?
need to define a template
Chris M
28 Jun 2005, 08:59
Any template means any template you want the avatar to appear in :)
Satan
Wordplay
10 Sep 2005, 03:39
can this help me displaying avatars in current users online list:
http://www.vbulletin.org/forum/showthread.php?p=771100#post771100
Andreas
14 Sep 2005, 21:35
Any chance of making this a Plugin? :)
fetch_userinfo_query
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The Chief
01 Nov 2005, 21:31
Installed nice work ;)
Any chance of making this a Plugin? :)
fetch_userinfo_query
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Ah cool I'll look into it. :)
I havent touched vB in a while so might take some time. :)
Oblivion Knight
06 Nov 2005, 23:37
A file edit in exchange for a saved query.. Fair trade in my opinion!
A plugin version would rock though.. ;)
Oblivion Knight
03 Jan 2006, 08:32
Hmm.. I've just noticed that the dateline doesn't appear to be working when placing the avatar on my navbar.
The image URL is:
image.php?u=1&dateline=
This can cause an out-of-date avatar to be displayed, and it seems that only a hard refresh (Ctrl+F5) can fix this.. This there any additional code that can be changed for a more "solid" fix?
Jarllax
10 Sep 2006, 08:36
Great stuff, works well. Was unable to use the other version that IS a plugin as it broke a different mod for some reason.
Any chance of this still becoming a plugin?
Ben Wilkins
20 May 2007, 13:35
Hmm.. I've just noticed that the dateline doesn't appear to be working when placing the avatar on my navbar.
The image URL is:
image.php?u=1&dateline=
This can cause an out-of-date avatar to be displayed, and it seems that only a hard refresh (Ctrl+F5) can fix this.. This there any additional code that can be changed for a more "solid" fix?
bump. I need this fixed.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.