PDA

View Full Version : if conditionals Q


Howell
12-04-2007, 08:39 PM
Is it possible to use a custom profile option to enable a javascript code in the Header template?

For example I'm using a snow javascript code on my forum this winter but I want the users to have an option in the profile to enable / disable it at their own choice.

Thanks for any help. :)

toonysnn
12-04-2007, 09:06 PM
Yes. I think it's something like this:
<if condition="$bbuserinfo[fieldX] == 1">
<!-- script here -->
</if>

Howell
12-04-2007, 09:26 PM
Thanks i'll give that a go.