MyBB Community Forums

Full Version: Make certain ranks see different hings?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay I have a VIP option on my website. But I want it so when guest click the BUY Vip button it takes them to a page that says sign up. An when registered users click it it takes them to the Buy VIP page. Is that possible?
<if $mybb->user['usergroup'] == 1 then>LINK<else>LINK</if>
if($mybb->user['uid'] != 0)
{
// Is registered user and can see content
{$your_content}
}
else
{
// Is guest and needs to login or register 
redirect("member.php?action=login", 'To access this page you need to login or register!')
}

(2014-05-12, 04:51 PM)Nayson Wrote: [ -> ]
<if $mybb->user['usergroup'] == 1 then>LINK<else>LINK</if>

This will only hide the link what he needs is the the way to prevent access to guests!