Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Jul 2009, 14:16
James Birkett James Birkett is offline
 
Join Date: Jun 2009
Custom BBCode help.

Hey, I was trying to create custom BBCode to restrict guest access to anything inbetween the BBCode. I have this:
Title: Hide content from guests
Tag: guest
Replacement: <if condition="$show['member']">{param}</if>
Example: [guest]This should be hidden from guests[/guest]
Use {option}: No

Now, I think the fault in this is that you can't have conditions in the thread.. as guests can still see content wrapped inbetween them, although the source shows the replacement around it.

I know this actual code works, because I wrapped only a member condition around a custom profile in postbit and it doesn't display to guests. So, are conditions allowed when creating a thread?

Any ideas?

Last edited by James Birkett; 29 Jul 2009 at 14:28.
Reply With Quote
  #2  
Old 29 Jul 2009, 16:01
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You may not put conditions in bbcode.
__________________
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 29 Jul 2009, 16:14
James Birkett James Birkett is offline
 
Join Date: Jun 2009
Is there any simple workaround?
Reply With Quote
  #4  
Old 29 Jul 2009, 16:39
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I don't know. I don't do anything like this on my forums. I've seen several discussions regarding it though and I know there are several mods available to do similar things.
__________________
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
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 23:17.

Layout Options | Width: Wide Color: