News:

Wondering if this will always be free?  See why free is better.

Main Menu

Creating link viewable by certain members

Started by Gnowai, February 25, 2013, 04:34:37 AM

Previous topic - Next topic

Gnowai

Hi guys!

I'm currently trying to develop a forum my Warcraft guild.
I have a majority of it sorted (although permissions and member groups are weird to me (ex IPB user))

Anyways i have a link that goes to a custom form for people to apply to the guild but i only want this link view able by guests and registered members not guild members and above currently i have this:


'apply' => array(
    'title' => 'Guild Apply',
'href' => $scripturl . '?action=form;n=1',
'show' => true,
'sub_buttons' => array(
),
),


i know for guests i need to change to this:


'apply' => array(
    'title' => 'Guild Apply',
'href' => $scripturl . '?action=form;n=1',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),


but unable to get it for registered members aswell.

thank you.

Mr. Pedram

i think,


first, you should create permission for that page/link (Pro Developers can help you)
second, you should use this:


'show' => allowedTo('guild_apply'),
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Advertisement: