![]() |
Display Avatar In Any Template
Very similar to fraghappy's Show Avatar In Navbar 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:
PHP Code:
Place this HTML code in any template you like. HTML Code:
<if condition="$vbulletin->userinfo['avatarid']"> Done. :) Creditsfraghappy for the idea and letting me release this mod. :) |
Nice one M1th :D
|
Who moved this to the plugin forum? :p
|
Quote:
|
Quote:
|
Will this work on 3.0.x?
|
You will have to adapt it to function with vB3.0.x, but it should do ;)
Satan |
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'; |
Quote:
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 |
Any template means any template you want the avatar to appear in :)
Satan |
can this help me displaying avatars in current users online list:
https://vborg.vbsupport.ru/showthrea...100#post771100 |
Any chance of making this a Plugin? :)
fetch_userinfo_query PHP Code:
|
Installed nice work ;)
|
Quote:
I havent touched vB in a while so might take some time. :) |
A file edit in exchange for a saved query.. Fair trade in my opinion!
A plugin version would rock though.. ;) |
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? |
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?
|
Quote:
bump. I need this fixed. |
All times are GMT. The time now is 01:03 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:
|