JackPlumb Posted December 9, 2009 Report 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
Administrators Nabeel Posted December 9, 2009 Administrators Report 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
JackPlumb Posted December 9, 2009 Author Report Posted December 9, 2009 Keeps brining up "Unexpected ">" on Line 100. Quote
Administrators Nabeel Posted December 10, 2009 Administrators Report Posted December 10, 2009 What's the code you put in? Quote
TennShadow Posted December 10, 2009 Report 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
TAV1702 Posted August 27, 2010 Report 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
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.