PDA

View Full Version : statement/conditional help needed to run script for usergroup


gigaenvy
12-05-2009, 10:46 PM
Hi,

I was wondering if someone can help me with the syntax to allow a script to run (.php or .js file) when a member is part of certain usergroup (preferably 'registered'); as part of the header template or any other template that I wish.

Thank you in advance!

HMBeaty
12-05-2009, 10:48 PM
Not sure if this is what you need, but....
<if condition="$show[member]">
YOUR CUSTOM CODE
</if>

gigaenvy
12-06-2009, 12:06 AM
Not sure if this is what you need, but....
<if condition="$show[member]">
YOUR CUSTOM CODE
</if>

It could be, but I will need to apply this to usergroups....


<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>


What I am try to do is run a certain snippet of javascript for unregistered members of usergroups or not run the code if they are part of certain usergroups - either scenario would work.