JackPlumb Posted December 9, 2009 Report Share Posted December 9, 2009 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 9, 2009 Administrators Report Share Posted December 9, 2009 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 Quote Link to comment Share on other sites More sharing options...
JackPlumb Posted December 9, 2009 Author Report Share Posted December 9, 2009 Keeps brining up "Unexpected ">" on Line 100. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 10, 2009 Administrators Report Share Posted December 10, 2009 What's the code you put in? Quote Link to comment Share on other sites More sharing options...
TennShadow Posted December 10, 2009 Report Share Posted December 10, 2009 Would the above code with with links? I'd like to have a few "Staff Only" pages. Basically, if they get the admin center link then they would get the link to the staff only pages. Thanks, Keith Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted August 27, 2010 Report Share Posted August 27, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.