Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Dec 2009, 19:53
bongwater's Avatar
bongwater bongwater is offline
 
Join Date: Nov 2005
vb4 conditionals for certain usergroups

I would like content to be shown to specific usergroups. Is the following conditional code written correctly for vb4?


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

Reply With Quote
  #2  
Old 20 Dec 2009, 19:58
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Looks fine except it's is_member_of, not $is_member_of.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 20 Dec 2009, 19:59
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi

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

Reply With Quote
  #4  
Old 20 Dec 2009, 20:03
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Whoops.... actually, you also don't want the / at the end of this line:

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

Should be:

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

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 20 Dec 2009, 20:07
bongwater's Avatar
bongwater bongwater is offline
 
Join Date: Nov 2005
thanks
Reply With Quote
  #6  
Old 21 Dec 2009, 16:23
Speysider's Avatar
Speysider Speysider is offline
 
Join Date: Apr 2009
what's with the little:

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

at the start?

Just wondering, does it actually do anything?
__________________
vBulletin is down the drain. IB ruined it by attacking XenForo.
I am a MyBB and XF modder only.
Reply With Quote
  #7  
Old 21 Dec 2009, 17:00
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Yes, it does something. Try doing it without and you will get errors. Try doing it with, and it will run your condition. It's the new vb4 syntax.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #8  
Old 21 Dec 2009, 19:42
Speysider's Avatar
Speysider Speysider is offline
 
Join Date: Apr 2009
Oh.
If I run vb3.8, do I have to add the <vb: bit or not?
__________________
vBulletin is down the drain. IB ruined it by attacking XenForo.
I am a MyBB and XF modder only.
Reply With Quote
  #9  
Old 21 Dec 2009, 20:01
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
No, but this is the vb4 forum, not 3.8
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - 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 05:34.

Layout Options | Width: Wide Color: