Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 30 Jan 2013, 22:31
Lpspider Lpspider is offline
 
Join Date: Oct 2005
Real name: Daniel
conditional in forum description

Hi,

I'd like to have a vbulletin conditional to show an additional description section for a forum advertiser/sponsor in the forum description for a specific forum. The conditional statement doesn't seem to be working though.


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

Am I doing something wrong, or is this not possible? How might I better approach this?
__________________
creative writing forums and writing workshops
Reply With Quote
  #2  
Old 01 Feb 2013, 01:00
Lpspider Lpspider is offline
 
Join Date: Oct 2005
Real name: Daniel
K so according to vbulletin.com it can only be done with a custom mod... anyone want to take a crack?
__________________
creative writing forums and writing workshops
Reply With Quote
  #3  
Old 01 Feb 2013, 02:23
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
I don't really see why you couldn't use an if conditional, provided your advertisers have their own usergroup. But in addition to the userinfo if conditional, you'd need a forumid if conditional, so they only show in those forums, to those usergroups.
__________________
Reply With Quote
  #4  
Old 01 Feb 2013, 03:27
Lpspider Lpspider is offline
 
Join Date: Oct 2005
Real name: Daniel
Hi,

I'm not sure I understand what you mean when you say the advertisers having their own usergroup... could you rephrase it?

So instead of putting this conditional in the actual forum description box, put a conditional that shows the description in the appropriate forum template instead, and include the conditional for the usergroup and the forum id, right?
__________________
creative writing forums and writing workshops
Reply With Quote
  #5  
Old 01 Feb 2013, 04:47
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
The code you posted above has Usergroups specified. So I presumed you were trying to show/hide something to/from a specific Usergroups. For instance...


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

...will only show the wrapped code to Usergroups 1, 2 and 3. But you also wanted it to only show in certain forums, so you would also use...


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

...to only show code in forums 1, 2 and 3.

More efficiently, you would combine them if you want both cases to be true.


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

CODE HERE will only show to Usergroups 1, 2 and 3, and only in forums 1, 2 and 3.

And yes, they would go wherever the description for forums is displayed in the templates. (I forget which one that is, at the moment.) They are "template conditionals", so that's the only place they work.
__________________
Reply With Quote
  #6  
Old 25 Feb 2013, 21:12
87accordlxi 87accordlxi is offline
 
Join Date: Aug 2002
I am also trying to do the same thing. I want a small line of text to be shown in a forum (actually, a category) description, but only to certain usergroups. The forum will be sponsored by an advertiser, but I only want Unregistered and partially registered usergroups to see the sponsor text.

This is the code I am using:


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

The <vb:if> conditional is not working. All usergroups are seeing the text.
Reply With Quote
  #7  
Old 26 Feb 2013, 05:13
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by 87accordlxi View Post
I am also trying to do the same thing. I want a small line of text to be shown in a forum (actually, a category) description, but only to certain usergroups. The forum will be sponsored by an advertiser, but I only want Unregistered and partially registered usergroups to see the sponsor text.

This is the code I am using:


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

The <vb:if> conditional is not working. All usergroups are seeing the text.
What do you mean, exactly, by "partially registered" usergroups? Because strictly speaking, you're either registered, unconfirmed or a guest. If you're a member of any one of the Usergroups defined in your if condition, you'll see it. Even if it isn't your primary Usergroup.
__________________
Reply With Quote
  #8  
Old 26 Feb 2013, 21:53
87accordlxi 87accordlxi is offline
 
Join Date: Aug 2002
Originally Posted by Digital Jedi View Post
What do you mean, exactly, by "partially registered" usergroups? Because strictly speaking, you're either registered, unconfirmed or a guest. If you're a member of any one of the Usergroups defined in your if condition, you'll see it. Even if it isn't your primary Usergroup.
By "partially registered" I meant the unconfirmed and restricted usergroups. They can see pretty much everything, but cannot post. I am lumping them in with the unregistered users here as those who will see the advertisements in the category descriptions.

But when I use that code that I posted, those usergroups in the if condition see the text - but so does everyone else. The if condition is not being recognized, so vbulletin is displaying the text for everyone.
Reply With Quote
  #9  
Old 26 Feb 2013, 22:24
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
I don't see any reason off hand why it shouldn't be working. What template are you using this in, and are any of the Usergroups you're using Secondary Usergroups?
__________________
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 15:36.

Layout Options | Width: Wide Color: