Conditional Wildcard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hamma
    Senior Member
    • Aug 2001
    • 144
    • 3.6.x

    Conditional Wildcard

    I am trying to make it so that post count only shows for a certain member group ID. Problem is membergroupIDs often contains something like 19,22,13 or something.

    How do i do if $bbuserinfo[membergroupids] == 22" I need it to pull that 22 out, *22* doesent work, what is the PHP to pull 22 out of a line?
  • Freddie Bingham
    Former vBulletin Developer
    • May 2000
    • 14057
    • 1.1.x

    #2

    Comment

    • Hamma
      Senior Member
      • Aug 2001
      • 144
      • 3.6.x

      #3
      Yea I found that but I dont understand how to use it, and it doesent seem to be working

      Comment

      • merk
        Senior Member
        • Jul 2001
        • 4149

        #4
        Code:
        <if condition="is_member_of($bbuserinfo, 22)">
         
        blah
         
        </if>

        Comment

        • Hamma
          Senior Member
          • Aug 2001
          • 144
          • 3.6.x

          #5
          How would I do more than one?

          edit: some are primary groups.. one is a member group

          Comment

          • Hamma
            Senior Member
            • Aug 2001
            • 144
            • 3.6.x

            #6
            Think I got it. In case anyone is interested:

            HTML Code:
             <if condition="is_member_of($bbuserinfo, 6) or is_member_of($bbuserinfo, 22) or is_member_of($bbuserinfo, 5) or is_member_of($bbuserinfo, 8)">blah</if>

            Comment

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