The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Good Day,
I'm trying to get my users avatar to show up on the forumhome page. I have tried many codes entries without success. Can someone give a little direction on what the code should look like. thanks in advance cmeidic101 |
#2
|
||||
|
||||
![]()
do a search on "avatar*" "all mods" "titles only" and see how other modifications, like this one Place Avatar in VB and Non-VB Pages, deal with this issue.
|
#3
|
|||
|
|||
![]() Quote:
Thanks for the reply... After searching and using different code like this one Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" width="100px" height="100px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> I also tried a code written for the navbar template with out success cmedic101 |
#4
|
||||
|
||||
![]()
The variable $post is only used in the postbit templates, it won't work in others. In most others, you would use $bbuserinfo if it is regarding the person browsing the site and $userinfo if it is regarding a user who's page you are looking at (a member.php page).
|
#5
|
|||
|
|||
![]() Quote:
I tried this one and still no dice Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$bbuserinfo [userid]"><img src="$bbuserinfo [avatarurl]" width="50px" height="50px" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> c |
#6
|
||||
|
||||
![]()
Do you actually have those spaces in there? ie. $bbuserinfo [userid] Cuz you shouldn't have any spaces. What is getting spit out into your page source?
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|