Announcement

Collapse
No announcement yet.

(SPLIT) conditional for specific forum?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LeftCoastBias
    Senior Member
    • Nov 2005
    • 108
    • 3.5.x

    (SPLIT) conditional for specific forum?

    Originally posted by Jake Bunce
    You can use this condition in the templates:

    Code:
    <if condition="THIS_SCRIPT == 'index'">
    
    [color=red]YOUR STUFF HERE[/color]
    
    </if>
    how would i seperate that for the other forums?


    my need is to have the same header for all forums, except our "off-topic" forum.
    tehdriven.com
  • LeftCoastBias
    Senior Member
    • Nov 2005
    • 108
    • 3.5.x

    #2
    Originally posted by LeftCoastBias
    how would i seperate that for the other forums?


    my need is to have the same header for all forums, except our "off-topic" forum.
    bump
    tehdriven.com

    Comment

    • Zachery
      Former vBulletin Support
      • Jul 2002
      • 59097

      #3
      Depends, where are you going to be showing this? What temlpate?

      Theres a large ammount of varibles that will and won't work on certain pages so you need to be rather specific

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Split from http://www.vbulletin.com/forum/showthread.php?t=159543

        Comment

        • Jake Bunce
          Senior Member
          • Dec 2000
          • 46598
          • 3.6.x

          #5
          Originally posted by LeftCoastBias
          my need is to have the same header for all forums, except our "off-topic" forum.
          Code:
          <if condition="$forumid != [color=red]X[/color]">
          	BANNER FOR ALL FORUMS EXCEPT X
          <else />
          	BANNER FOR X
          </if>
          Where X is the forumid of your off topic forum.

          Comment

          • LeftCoastBias
            Senior Member
            • Nov 2005
            • 108
            • 3.5.x

            #6
            Originally posted by Zachery
            Depends, where are you going to be showing this? What temlpate?

            Theres a large ammount of varibles that will and won't work on certain pages so you need to be rather specific


            i want the part of the header where this is displayed (well, my logo) to be the same for all parts of the forum, except 1 subforum, i want it to be a different image.

            how do i do that?
            tehdriven.com

            Comment

            • LeftCoastBias
              Senior Member
              • Nov 2005
              • 108
              • 3.5.x

              #7
              Originally posted by Jake Bunce
              Code:
              <if condition="$forumid != [COLOR=red]X[/COLOR]">
                  BANNER FOR ALL FORUMS EXCEPT X
              <else />
                  BANNER FOR X
              </if>
              Where X is the forumid of your off topic forum.
              oh wow. i had this window open like 6 hours before i responded :rofl

              sorry, i'm at work and forgot about this browser window.


              i'll try that when i get home .
              tehdriven.com

              Comment

              • LeftCoastBias
                Senior Member
                • Nov 2005
                • 108
                • 3.5.x

                #8
                i tried that, but now i have either a red x or a double image of the logo from the "titleimage".

                is there a way to just set it up that the code just redirects to either the title image or the off topic banner?
                tehdriven.com

                Comment

                • Jake Bunce
                  Senior Member
                  • Dec 2000
                  • 46598
                  • 3.6.x

                  #9
                  If you are seeing a double image then you must have left the original title image code in the template. Remove it to prevent the double.

                  Comment

                  • LeftCoastBias
                    Senior Member
                    • Nov 2005
                    • 108
                    • 3.5.x

                    #10
                    Originally posted by Jake Bunce
                    If you are seeing a double image then you must have left the original title image code in the template. Remove it to prevent the double.
                    so remove this code:

                    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                    <td align="$stylevar[right]">
                    &nbsp;
                    alltogether?


                    currently, i have it set to this (i have 2 sub forums with their own banners):

                    <if condition="$forumid == 5">
                    <img src="http://www.tehdriven.com/forum/image...Clique-Mob.jpg"
                    </if>
                    <if condition="$forumid == 38">
                    <img src="http://www.tehdriven.com/forum/image...er/yousuck.jpg"
                    <else />
                    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                    <td align="$stylevar[right]">
                    &nbsp;
                    </td>
                    </if>
                    tehdriven.com

                    Comment

                    • Zachery
                      Former vBulletin Support
                      • Jul 2002
                      • 59097

                      #11
                      Code:
                      <if condition="$forumid != 5 AND $forumid != 38">
                      	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                      	<td align="$stylevar[right]">
                      	&nbsp;
                      	</td>
                      <else />
                      	<if condition="$forumid == 5">
                      		<img src="http://www.tehdriven.com/forum/images/banner/The-Clique-Mob.jpg" />
                      	</if>
                      	<if condition="$forumid == 38">
                      		<img src="http://www.tehdriven.com/forum/images/banner/yousuck.jpg" />
                      	</if>
                      </if>
                      Try this.

                      Comment

                      • LeftCoastBias
                        Senior Member
                        • Nov 2005
                        • 108
                        • 3.5.x

                        #12
                        Originally posted by Zachery
                        Code:
                        <if condition="$forumid != 5 AND $forumid != 38">
                        	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                        	<td align="$stylevar[right]">
                        	&nbsp;
                        	</td>
                        <else />
                        	<if condition="$forumid == 5">
                        		<img src="http://www.tehdriven.com/forum/images/banner/The-Clique-Mob.jpg" />
                        	</if>
                        	<if condition="$forumid == 38">
                        		<img src="http://www.tehdriven.com/forum/images/banner/yousuck.jpg" />
                        	</if>
                        </if>
                        Try this.
                        swwwwweeeeeeeeeeeeeeeet that worked!

                        thanks
                        tehdriven.com

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...
                        😀
                        🥰
                        🤢
                        😎
                        😡
                        👍
                        👎