Announcement

Collapse
No announcement yet.

If condition request

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

  • If condition request

    i need an if conditional goes like

    <if condition="this user is in thas forum">show soething<else /> regular thing</if>

    so on post bit template i wanna display sometings for some users but i want it to be shown on certain forum not on all forum help please

  • #2
    come on guys its emergency

    Comment


    • #3
      Please wait at least 12 hours before bumping your posts.

      From the forum rules:
      http://www.vbulletin.com/forum/showthread.php?t=42918

      Please wait a reasonable amount of time before bumping posts. For style changes and general 'how-to' questions this should be 24 hours. For specific troubleshooting issues, use 12 hours as a guideline.
      The correct conditional for a specific forum would be:

      <if condition="$forum[forumid] == X">
      </if>

      ...with X being the forumid number.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment


      • #4
        Originally posted by Steve Machol View Post
        Please wait at least 12 hours before bumping your posts.

        From the forum rules:
        http://www.vbulletin.com/forum/showthread.php?t=42918



        The correct conditional for a specific forum would be:

        <if condition="$forum[forumid] == X">
        </if>

        ...with X being the forumid number.

        srry about tha steve but it is not quite right u see

        i want to combine two conditionals togather like if this user in this forum i want to show something just for single member in a certain forum like this thing wont show up in the other forums only in that forum specified and on the specified members postbit

        Comment


        • #5
          Then maybe you can rewrite your request in post #1 into something understandable.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment


          • #6
            ok steve i want somethin like

            if this user in this forum show that anywhere else show that

            Comment


            • #7
              I've been trying to do something similar - show a different header image for different forums.

              I've tried:
              Code:
              <if condition="$forum[forumid] == 1">
              <img src="image1.jpg">
              </if>
              <if condition="$forum[forumid] == 2">
              <img src="image2.jpg">
              </if>
              But that doesn't work. Any ideas?

              Comment


              • #8
                I'd like to know that too.

                Comment


                • #9
                  use $foruminfo instead of $forum

                  Comment

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