Jump to content

Recommended Posts

Posted

I would like to set something up on Pilots Profile where only people in Groups can see the content, this has failed. I wondered whether anyone knew a code that would work were only Certain groups can see the content.

  • Administrators
Posted

You could do is like:

<?php
if(Auth::UserInGroup('Group Name'))
{
    // Show content
}
?>

And you could add that right into the profile_main.tpl template

  • 8 months later...
Posted

I got this to work.

<?php

if(Auth::UserInGroup('GroupName'))

{
			echo'<li>Your link here</li>';
}

?>

I did this for the group ATC so only ATC members could view training materials and such and it works out great.

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...