I created a userfield option where people select there team from a dropdown in the usercp and they then have a crest (little logo) to the right of there name. To get this to work I was told I had to create a plugin but didn't know how, so someone on here done it for me, the plugin is this:
Product: vbulletin
hook location: forumhome_loggedinuser
title: football crests
Plugin PHP Code: $online_userinfo = fetch_userinfo($loggedin['userid']);
And of the forumhome_loggedinuser the code for the template is:
Code:
<if condition="$show['comma_leader']">, </if>$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]"><if condition="$online_userinfo[field15]"><img src="images/crests/$online_userinfo[field15].gif" border="0" /></if>$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
As you can I had to add this to get it to work:
Code:
<if condition="$online_userinfo[field15]"><img src="images/crests/$online_userinfo[field15].gif" border="0" /></if>
If you can let me know how to get the icons showing on this hack It would be very much appreciated.
Below is the link to my football crests modification:
https://vborg.vbsupport.ru/showthrea...ootball+crests
Thanks