Jump to content

Pilot's alow access to a page only if they have a certain number of flying hours? [SOLVED]


Recommended Posts

Posted

Hello,

I was making a page on my site for pilots which has discount codes for them to use on flight sim websites, but i wanted them to only be able to access the page when they have completed a certain number of flying hours (so people wont just join to ge tthe discount then never being seen flying with the va again)

So I was wondering if there was a code for this?

Thanks,

James

Guest lorathon
Posted
if(AUTH::$userinfo->totalhours > 100)
{
   // show-do your stuff here
}
else
{
   echo "You do not have enough hours to view this page";
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...