Announcement

Collapse
No announcement yet.

Editing headers and footer comparison

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

  • Editing headers and footer comparison

    i was testing out the admin demo because i am looking for something that has a way to edit forum's the way you can with proboards in the edinting headers and footers section, such as when you go into one of the forum pages, it plays a different music in everyone of them. Can you do those kind of things with vBulletin? Thanks

  • #2
    You can use conditionals to display a different element in the header/footer templates.

    For example:

    <if condition="$forumid == '5'">sound1.wav</if>

    Would only display this sound if the forum had forumid 5.

    Comment


    • #3
      this will work for every different forum under the same category?

      Comment


      • #4
        Yep, any unique forumid, and .. they are unique

        You can even make a default code for when the forumid is unknown.

        Code:
        <if condition="$forumid == '1'">
        Code for when the forumid is 1
        <else />
          <if condition="$forumid == '5'">
          Code for when the forumid is 5
          <else />
          Code for every other forumid
          </if>
        </if>

        Comment


        • #5
          do these codes work only for vBulletin?

          Comment


          • #6
            Yes, these are specific to vB's template system.
            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


            • #7
              cool thanks

              Comment


              • #8
                I've used this idea to put a banner ad at the top of section of my forum...

                this is the code that I've used,

                <if condition="$forumid == '205'">
                <center>
                <a href="http://www.linkcounter.com/go.php?linkid=274092" target="new"><img src="http://www.bubhub.com.au/images/zkindermusikbanner.gif" alt="Kindermusik" border=none></a><br>
                </center><br>
                <else />&nbsp;
                </if>

                The target=new code is ignored and instead of a new browser window opening, the viewer is taken from our site to the advertisers site. Is there any code that I could use to clicking on the ad open a new browser window?

                Thanks

                (Oops, just noticed this is in a version 3.0 section of the forum - I am using 3.5.3 if that makes a difference to the reply)

                Comment


                • #9
                  target="_blank"

                  Comment


                  • #10
                    This is the Pre-Sales forum. Please post in the appropriate forum for support.
                    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


                    • #11
                      I thought it be ok to answer since the it's more of a HTML question than vbulletin.

                      Comment


                      • #12
                        Hi harmor

                        Thanks for the response, that worked!

                        I think the 'post in the correct section' comment from Steve was aimed at me rather than you!
                        Sorry Steve, I only realised after I'd made the post that it was in an inappropriate section - I know how annoying this is and promise not to do it again!

                        Comment

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