Log in

View Full Version : members avatar


cmedic101
11-26-2008, 11:59 AM
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

Lynne
11-26-2008, 02:03 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=186493&highlight=avatar%2A), deal with this issue.

cmedic101
11-27-2008, 04:58 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=186493&highlight=avatar%2A), deal with this issue.


Thanks for the reply... After searching and using different code like this one

<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 am still getting the same results....Nothing is showing up... could it be because the line of code was written for a postbit template?

I also tried a code written for the navbar template with out success

cmedic101

Lynne
11-27-2008, 05:00 PM
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).

cmedic101
11-27-2008, 05:19 PM
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).


I tried this one and still no dice<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>


this is hard stuff to figure out

c

Lynne
11-27-2008, 05:38 PM
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?