Show or hide info in postbit based on custom profile field?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Slacker
    Senior Member
    • Dec 2001
    • 207
    • 3.0.0 Release Candidate 2

    Show or hide info in postbit based on custom profile field?

    This is possibly a simple thing to figure out, but I'm not having any luck searching for it. I wanted to give my users the option to show or hide some of the user information in the postbit template based on what they checked or unchecked in a custom profile field I set up. At first I did something like this, using the first checkbox in the custom profile field to check it:

    HTML Code:
    <if condition="$post[field18] & 1">
         Info to be shown/hidden
    </if>
    Then I realized that this code doesn't control the display of what I'm seeing, but rather what the users are providing to be seen. In other words, if that option was unchecked in my settings, no one would see that info on my posts, but everyone else's posts would look the same. I'm wanting to make it work like the avatar check box - uncheck it once and avatars disappear from everyone's posts. I tried <if condition="$show[field18] & 1"> but that didn't seem to work.

    Thanks in advance for any advice!
    slackercentral messageboard - Running vBulletin 3.7.0
    Check out my reformatted vBulletin blog here: http://www.slackercentral.com
  • Slacker
    Senior Member
    • Dec 2001
    • 207
    • 3.0.0 Release Candidate 2

    #2
    Woop - figure it out - looks like I needed to use $bbuserinfo in the conditional. I'm good to go now. Thanks!
    slackercentral messageboard - Running vBulletin 3.7.0
    Check out my reformatted vBulletin blog here: http://www.slackercentral.com

    Comment

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