Log in

View Full Version : BBcode


flup
06-25-2005, 09:06 AM
Hey,

I'm tryind to make a BBcode in order to hide text from non-registered members.

I've tried a couple of things, but I was wondering if it was possible to use these as a BBcode:


<if condition="$bbuserinfo['userid']">{param}<else />Please register to see hidden info (such as links etc.)</if>

<if condition="$show['guest']">Please register to see hidden info (such as links etc.)<else />{param}</if>


But both don't seem to work HOWEVER they both show the tekst when if and the text when else. So have I made a mistake in the condition somewhere?

Thanks.

Andreas
06-25-2005, 10:31 AM
Simple as that: You can't use conditions in custom BBCode.
Wait for Beta 3, in this Version it will be possible to create BBCodes with custom callbacks through Plugins - then you can create such BBCodes.

flup
06-25-2005, 10:43 AM
So for now I can't make this work (with templates or something?!)

Thx for your reaction btw:)