Help requied with a "If Condition"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GamerzWorld
    Senior Member
    • Sep 2003
    • 214
    • 3.5.x

    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!
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24359
    • 5.7.X

    #2
    I know Wayne has implemented this over at vBCodex.

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

    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • GamerzWorld
      Senior Member
      • Sep 2003
      • 214
      • 3.5.x

      #3
      Originally posted by Trevster
      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

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...