Log in

View Full Version : linking avatar to somewhere other than profile


basskiller
01-25-2012, 03:16 PM
Is this even possible? I would like to know if you can link a single individual's avatar to somewhere other than the user's profile.

Even if I had to create a special usergroup for the individual.. That would be OK ..

being the admin/owner of my site, I would like to have my avatar linked to something else.
My username can be clicked on for those that want to get to my profile.. But I wish to have my avatr linked to another of my sites.

any help would greatly be appreciated

kh99
01-25-2012, 03:38 PM
You can edit the postbit (or postbit_legacy, if your user info is on the left) and you'll find some code like this (the code below is from postbit_legacy, but it's similar in postbit):


<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>



the part in red tells where the avatar links to, so you could change it for one user by doing something like:


<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="<if condition="$post[userid] == X">URL<else />member.php?$session[sessionurl]u=$post[userid]</if>"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

of course you want to change the parts in blue to your userid and the url you want to go to.

basskiller
01-25-2012, 04:23 PM
I use posbit, But edited the part you mentioned and it works like a Charm.. Thanks a ton!!!!