Problem: Wibiya Disable Option per Wayne's Post

Discussion in 'vBulletin Discussions' started by Tex, Oct 29, 2009.

  1. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    Hey guys.

    I posted for help with this on Wayne's board HERE, but it's pretty quiet over there and I haven't gotten an official response yet, so trying here.

    My problem is with the option I made to disable the Wibiya toolbar as per Wayne's instructions. I created the necessary profile field and added the appropriate code to the correct template. The toolbar does work for my admin account, however when I logged into a regular user account which I use for testing permissions etc., the toolbar was not visible - even though by default the option is set to 'Yes'.

    I found that having the first option 'Yes' set as default allows the members to simply visit their options page and hit save, then the toolbar is finally displayed. I tried making the field required, but that didn't force users to enable it. Unfortunately since my site is already well established I have no choice but to offer this option with the ability to disable it, but if the members have to actually change their options before they see it then I suspect hardly anyone will even know it's been installed.

    Any idea if there is way to enable it for all users, but keeping the option for them to disable it?


    Thanks,
    Tex
     
  2. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Use a checkbox instead of a yes/no option. :) ("Check this box if you would like to disable the chatbar")
     
  3. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    Thanks Nick.

    What changes do I need for this conditional is using the checkbox?

    Code:
    <if condition="$bbuserinfo['field13'] == 'Yes' OR $show['guest']">
    
     
  4. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Code:
    <if condition="$bbuserinfo['field13'] == '[COLOR="Blue"][B]1[/B][/COLOR]' OR $show['guest']">
    ... That should do it. :)
     
    2 people like this.
  5. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    Cheers Nick!
     

Share This Page