Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Jan 2009, 15:26
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
"If condition "member of usergroup"

Hi,

I forget how to do this. What is the if code for displaying only to a certain usergroup?


Thanks.....
Reply With Quote
  #2  
Old 04 Jan 2009, 15:51
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Is it this ...


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

Thats off the top of my head, Lynne is the one that should know
Reply With Quote
  #3  
Old 04 Jan 2009, 16:50
ry215's Avatar
ry215 ry215 is offline
 
Join Date: May 2006
Real name: Nelson
Originally Posted by AzH View Post
Hi,

I forget how to do this. What is the if code for displaying only to a certain usergroup?


Thanks.....
try this


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

__________________
My Mods & Styles

Contace me now for more details!
Reply With Quote
  #4  
Old 04 Jan 2009, 17:51
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
UKBusiness's is the correct one (though the ! in front of it will display for members who are not in groups 5, 6, or 7.

ry215's code will not take Secondary Usergroups into account.

Keep in mind as well, $bbuserinfo may not always be correct in every instance. For example, if you're using the code in the postbit template, you would use $post; in the memberinfo template, you would use $userinfo.
__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #5  
Old 05 Jan 2009, 03:47
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by Kirk Y View Post
in the memberinfo template, you would use $userinfo.
Or $prepared in that "group" of templates as well.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



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 22:42.

Layout Options | Width: Wide Color: