![]() |
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. |
All times are GMT. The time now is 11:18 PM. |
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:
|