Announcement

Collapse
No announcement yet.

Different headers for different pages

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

  • Different headers for different pages

    Is it possible to use different header templates on different pages? I want to have a different header for the forum pages than for the calendar pages, for example.

    If $header inserts the header template, is there a way to have $header1 and $header2?

  • #2
    This can be done with template conditionals. Here is the online documentation for using template conditionals:

    http://www.vbulletin.com/docs/html/m...e_conditionals
    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


    • #3
      I've read through this but I can't find the command for what I want. Can you point me to the exact page?

      I want a different header for private.php, calendar.php, the forum pages, usercp, etc.

      Comment


      • #4
        The correct conditional for the forumhome page would be:

        <if condition="THIS_SCRIPT == 'index'">
        </if>

        Calendar.php:

        <if condition="THIS_SCRIPT == 'calendar'">
        </if>

        PM:

        <if condition="THIS_SCRIPT == 'private'">
        </if>
        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


        • #5
          Oh yeeeeeeeees!

          I think I love you.

          Comment


          • #6
            What would I need to add to make something appear on both calendar OR private pages, but not any other pages?

            Comment


            • #7
              Solved it.

              In case anyone wonders, it's this:

              Code:
              <if condition="(THIS_SCRIPT == '1') OR (THIS_SCRIPT == '2') OR (THIS_SCRIPT == '3') OR (THIS_SCRIPT == '4')">

              Comment

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