Announcement

Collapse
No announcement yet.

Help requied with a "If Condition"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GamerzWorld
    replied
    Originally posted by Trevster View Post
    I know Wayne has implemented this over at vBCodex.

    Here's his instructions on integration including the 'hide' option:

    http://vbcodex.com/showthread.php?p=4568#post4568

    Thank you

    Leave a comment:


  • Trevor Hannant
    replied
    I know Wayne has implemented this over at vBCodex.

    Here's his instructions on integration including the 'hide' option:

    http://vbcodex.com/showthread.php?p=4568#post4568

    Leave a comment:


  • GamerzWorld
    started a topic Help requied with a "If Condition"

    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:
    • 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!
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X