Announcement

Collapse
No announcement yet.

How to exclude banner from homepage?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kalisekj
    New Member
    • Dec 2006
    • 25

    How to exclude banner from homepage?

    How to add banner and text to all forums but exclude from homepage (index.php)

    Thank you.
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Code:
    <if condition="THIS_SCRIPT != 'index'">
    your banner code here
    </if>

    This means : If the value for THIS_SCRIPT does not equal index, display this code.

    So on every page except index.php it will show the banner code.

    I hope this is what you're looking for.

    Comment

    • kalisekj
      New Member
      • Dec 2006
      • 25

      #3
      Hi Floris,

      Its not working?

      Its not exactly banner but image (.jpg) and text.

      Are there different <if condition=" codes for it?

      Thank you.

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59100

        #4
        How isnt it working? What code did you use? Where is the link to your forums?

        Comment

        • kalisekj
          New Member
          • Dec 2006
          • 25

          #5
          Right now it showing on all forums and index.php but I need it
          exclude from the homepage. When I add the code:
          <if condition="THIS_SCRIPT != 'index'">your banner code here</if>
          it still show on the homepage? I put all the code in navbar.
          The codes are between:
          <!-- Movie Download Reviews & Ratings -->
          <!-- / Movie Download Reviews & Ratings -->

          Thanks
          Last edited by kalisekj; Wed 20 Jun '07, 7:37am.

          Comment

          • Zachery
            Former vBulletin Support
            • Jul 2002
            • 59100

            #6
            Did you notice the "your banner code here" part? You need to take floris's example and make it work for your needs.

            Comment

            • kalisekj
              New Member
              • Dec 2006
              • 25

              #7
              Yes, I did notice the "your banner code here" part?

              I add it like this:
              <!-- Movie Download Reviews & Ratings -->
              <if condition="THIS_SCRIPT != 'index'">
              My HTML code here
              </if>
              <!-- / Movie Download Reviews & Ratings -->

              Comment

              • Floris
                Senior Member
                • Dec 2001
                • 37767

                #8
                That's great.. Now on all the pages but index.php it will say in the top : my html code here.

                Of course, replace the "text" with your actual html code for your banner.

                Comment

                • kalisekj
                  New Member
                  • Dec 2006
                  • 25

                  #9
                  I did but still don't work. I think it may be because I use vBadvanced as a homepage. Are there different code for this?

                  Comment

                  • kalisekj
                    New Member
                    • Dec 2006
                    • 25

                    #10
                    I get help on vBadvanced forum and its:

                    <if condition="THIS_SCRIPT != 'adv_index'">your banner code here</if>

                    Thanks.

                    Comment

                    • kalisekj
                      New Member
                      • Dec 2006
                      • 25

                      #11
                      How to exclude from archive

                      How to exclude from archive (archive/index.php/)?

                      I did try:
                      <if condition="THIS_SCRIPT != 'archive'">your banner code here</if>
                      but it didn't work.


                      Thank you.

                      Comment

                      • Floris
                        Senior Member
                        • Dec 2001
                        • 37767

                        #12
                        archive/index.php has this code:

                        define('THIS_SCRIPT', 'archive');

                        Your latest conditional should work. If it doesn't I recommend to ask the community on vBulletin.org for more detailed support on customizing your vbulletin community.

                        vBulletin Templates are not used on the archive/ you will have to customize the .php source code with your custom PHP conditionals (not template conditionals)

                        Comment

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