PDA

View Full Version : [HowTo] [3.0.3] Hide 'Forum Leader' from Guests



Floris
Fri 29th Oct '04, 3:33pm
[HowTo] [3.0.3] Hide 'Forum Leader' from Guests

Description: This small template modification will guide you step by step on how to hide the 'Forum Leaders' link to guests, so only registered members will see it.

Instructions:

* Goto the Admin Control Panel > Styles & Templates > Style Manager > Expand the template groups from the style you want to modify > Expand the template group "Forum Home Templates" > Select the template "FORUMHOME" and click on 'edit' or 'customize' to open it.

* Find this code:
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>

* Replace it with this code:
<if condition="!$show['guest']"><else/><a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a></if>

* Save the "FORUMHOME" template.

# Done!

Floris
Sat 30th Oct '04, 5:15am
Note: For some reason I think the above if conditional is incorrect and !show[] should be replaced with $bbuserinfo['usergroupid'] == '1'

zendiver
Tue 2nd Nov '04, 1:50am
Something similar to this?

http://www.vbulletin.com/forum/showpost.php?p=753604&postcount=3