Log in

View Full Version : Custom BBCode help.


James Birkett
07-29-2009, 01:16 PM
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: This should be hidden from guests
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?

Lynne
07-29-2009, 03:01 PM
You may not put conditions in bbcode.

James Birkett
07-29-2009, 03:14 PM
Is there any simple workaround?

Lynne
07-29-2009, 03:39 PM
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.