The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Show Avatar on forum homepage?
Hello
There is a easy template code to show avatar of the used (logged into the forum) on forum home page / forum display / thread view I want to show avatar instead of showing user name as the default from vBulletin. Does any one know how to do this? Thanks in advance! |
#2
|
||||
|
||||
In FORUMHOME template, I want to show
the avatar of a member ( the person that logged into the forum ) for example: under {vb:raw navbar} I want to have this code Hello, <img src="{$avatar_of_member}" alt="avatar of member"> {$avatar_of_member} is the image link of a member's avatar. I searched on vBullletin but seem it didn't have any solutions for this. |
#3
|
||||
|
||||
Add the following plugin:
Product: vBulletin Hook Location: parse_templates Title: Show Browsing Member's Avatar Under Navbar Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save". As you can see, I have given the avatar image a maximum height of 90px...you should adjust that to suit your needs, or if you want the avatar to display full size, then remove the inline CSS "max-height: 90px; width: auto;" from the img tag altogether. Please let me know if there are any changes you would like. |
#4
|
||||
|
||||
Thanks Mark!
Your codes are awesome and it showed under navbar. |
#5
|
||||
|
||||
As it turns out, Helen wanted to be able to be able to place the avatar in the "FORUMHOME" template herself, as she might change things up from time to time. So, I told her the following (I am posting this for the benefit of others):
---------------------------------------------------------------------- Okay, first create the following plugin: Product: vBulletin Hook Location: forumhome_complete Title: Send Avatar HTML To FORUMHOME Template Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save". Now, wherever you wish for the user or guest's avatar to display, place the following code into you "FORUMHOME" template at the location you desire: HTML Code:
{vb:raw avatar} |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|