GamerzWorld
10-05-2009, 08:36 AM
Hi all,
I'm looking to setup a simple script that if a player selects "Hide" in their profile options, a new addon (a toolbar along the bottom of the page) will not appear.
So far I've:
Setup a Custom User Profile field, with the options "Show" and "Hide".
Edited the line in the footer template to show <if condition="$vbulletin->userinfo[field43]=='Show'">
<script src='http://toolbar.wibiya.com/toolbarLoader.php?toolbarId=11852' type='text/javascript'></script></if>
Unfortunately, even though the profile field option is supposed to set "Show" as default, the addon is hiding by default. Furthermore it isn't showing for unregistered users (obviously because there is no mention in the code to handle this).
Can anyone help in editing the code so that (a) it shows by default to users and (b) shows to all unregistered users?
Thanks!
I'm looking to setup a simple script that if a player selects "Hide" in their profile options, a new addon (a toolbar along the bottom of the page) will not appear.
So far I've:
Setup a Custom User Profile field, with the options "Show" and "Hide".
Edited the line in the footer template to show <if condition="$vbulletin->userinfo[field43]=='Show'">
<script src='http://toolbar.wibiya.com/toolbarLoader.php?toolbarId=11852' type='text/javascript'></script></if>
Unfortunately, even though the profile field option is supposed to set "Show" as default, the addon is hiding by default. Furthermore it isn't showing for unregistered users (obviously because there is no mention in the code to handle this).
Can anyone help in editing the code so that (a) it shows by default to users and (b) shows to all unregistered users?
Thanks!