Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Jul 2010, 21:14
Flyte Flyte is offline
 
Join Date: Oct 2009
php if user group

i am trying to write a php statement but do not know what variable to call
I only want the photos to display if they are in the photographer user group.

this is what I want, but dont know what to put in the parenthesis

if (usergroup photograhper) {
do this..
}
else {
do nothing
}

I don't want the users to be in the usergroup photographer, I only want photographers photos to be displaying in my image viewer.

Thanks!
Reply With Quote
  #2  
Old 06 Jul 2010, 21:18
James Birkett James Birkett is offline
 
Join Date: Jun 2009
It really depends on where you're displaying it...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Where do you want to display it?
Reply With Quote
  #3  
Old 06 Jul 2010, 21:46
Flyte Flyte is offline
 
Join Date: Oct 2009
it will be on the forum page for now, maybe in the future it will be on CMS page. But for now, just the forum page right above the forums.

--------------- Added 07 Jul 2010 at 00:03 ---------------

based off the code that is already written for the current mod, they use similar code to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

How would I incorporate the photographer user group (id:11) into that if statement?

Last edited by Flyte; 07 Jul 2010 at 00:03. Reason: Auto-Merged DoublePost
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Administrative and Maintenance Tools Show/Hide Forum Sidebar On User Group Per User Group Basis borbole vBulletin 4.x Add-ons 16 05 Feb 2020 13:48
Administrative and Maintenance Tools (Extra Spam Protection) Prevent Posting Of Links On User Group Per User Group Basis borbole vBulletin 4.x Add-ons 51 18 Jun 2019 20:39



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:55.

Layout Options | Width: Wide Color: