PDA

View Full Version : forum leader display(showgroup)


RedDevil
09-27-2008, 01:18 PM
Hi all

Been trying to find how to remove access to this for unregistered users, cannot seem to find any info, can anyone point me in the right direction.

thanks in advance.

FreshFroot
09-28-2008, 03:42 AM
You'll have to do a simple template edit and add on a custom if statement, so it doesn't allow unregistered users.

I think it should be in the forumhome template area.

glennybee
09-28-2008, 07:21 AM
Find this code in FORUMHOME template:

<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>

Replace it with:

<if condition="$show['member']">
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</if>

Lynne
09-28-2008, 03:35 PM
You could probably also use the hook "showgroups_start" and put in a no permission for unregistered users:
if (!isset($vbulletin->userinfo['userid']) OR $vbulletin->userinfo['userid'] == 0)
{
print_no_permission();
}