Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Groups
Author Message
revspalding
New Member
New Member



Joined: Oct 20, 2003
Posts: 15
Location: NW Colorado

PostPosted: Thu Mar 02, 2006 3:51 pm Reply with quote

I'm using Bob Marion's NSN Groups and only allowing members of group #3 to have access to the Submit News Module. I would like to have an image link in the heading area of the page which would only appear for members of this group. Anybody out there have a direction you could send me to find a snippet of code that might work?

_________________
The Spalding Supplement to the Peter Principle:
You can be promoted beyond your level of competance, if your boss is working at his. 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Mar 03, 2006 6:32 am Reply with quote

I personally use the following in a few of my modules:


if ( in_groups( $groups ) ) {
<<do something>>
}


Where $groups is the list of groups, separated by dashes, to check the user is a member of.

In your example, I think you would use in_groups('3').

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Groups

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©