Log in

View Full Version : conditionals in custom vbcodes


CrazyLady
04-06-2005, 02:15 PM
Can you use conditionals in custom bb codes? How would one get that to work?

Thanks for your help!

CL

Marco van Herwaarden
04-06-2005, 05:34 PM
What kinda conditionals are you thinking of?

CrazyLady
04-06-2005, 06:18 PM
<if condition="is_member_of($bbuserinfo, 10)">
{param}
</if>

Marco van Herwaarden
04-06-2005, 07:07 PM
Have a look in my signature, you will find somehting you could use there ;)

CrazyLady
04-08-2005, 01:17 PM
Thanks Marco.. but been there, done that. That's not really what I am looking for. I want to use any IF CONDITIONALS in custom BB codes. Right now, it doesn't work... does anyone else know how to get that this to function? Perhaps what file to edit to get the post to read the conditionals?

thanks

Marco van Herwaarden
04-08-2005, 01:23 PM
You want users to type IF-statements in their posts?

CrazyLady
04-08-2005, 03:36 PM
I see where your custom bbcode hack is, I have it installed for NO GUEST... but I want to simplify it and use the admin custom bb code manager and insert if conditionals there, so I can easily create ones we need and add them into other custom codes. But when I do that, it doesn't read the conditional. The templates read the conditonals, there must be somewhere to get the post to read them as well? :confused:

Marco van Herwaarden
04-08-2005, 06:04 PM
Sorry but it doesn't work like that. If it would work like that, there would have been no need for my hack. ;)