The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help requied with a "If Condition"
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:
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! |
#2
|
||||
|
||||
Try this
HTML Code:
<if condition="$show[guest]" OR "$bbuserinfo['field43'] = 'Show'"> <script src='http://toolbar.wibiya.com/toolbarLoader.php?toolbarId=11852' type='text/javascript'></script> </if> |
#3
|
||||
|
||||
Too many quotes there, Brooks.
HTML Code:
<if condition="$show[guest] OR $bbuserinfo['field43'] = 'Show'"> <script src='http://toolbar.wibiya.com/toolbarLoader.php?toolbarId=11852' type='text/javascript'></script> </if> |
#4
|
||||
|
||||
True, haha. It was too early for me when I wrote that
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|