PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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?
View user's profile Send private message
montego
Site Admin


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

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

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').
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum