Accessing new template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pdmedia
    New Member
    • May 2002
    • 7

    Accessing new template

    I am creating different footers for different sections...

    for instance on in the showthread template the original footer is called with

    $footer

    I have created a new footer template and called it "footer_new"

    I have tried calling it with

    $footer_new

    but alas it does not work...

    O know I must have to tell php somewhere that $footer_new points to the "footer_new" template but I don't know where.

    Thanks for the help!

    -Matt
  • c-prompt
    Senior Member
    • Apr 2001
    • 1309

    #2
    Check out my hack at vB.org its for this very thing.

    Comment

    • pdmedia
      New Member
      • May 2002
      • 7

      #3
      Thanks for the link but I think what I need is info on how I access the template I allready Made

      Comment

      • c-prompt
        Senior Member
        • Apr 2001
        • 1309

        #4
        And that hack explains how to do that. Just ignore the parts about adding templates. It tells you how to make the forum see the template. We cant post it here cause its a hack, and all hacks are at vB.org.

        Comment

        • pdmedia
          New Member
          • May 2002
          • 7

          #5
          I found it Thanks For anyone else wonderin the code to put in global.php is

          eval("\$variablename = \"".gettemplate('templatename')."\";");

          Comment

          • Animaniac1217
            New Member
            • Sep 2001
            • 29

            #6
            Originally posted by pdmedia
            I found it Thanks For anyone else wonderin the code to put in global.php is

            eval("\$variablename = \"".gettemplate('templatename')."\";");
            That would allow it to be used on all pages and add an extra SQL querey to every page...

            Comment

            • pdmedia
              New Member
              • May 2002
              • 7

              #7
              Then what would be a better way to do it?

              Comment

              • George L
                Former vBulletin Support
                • May 2000
                • 32996
                • 3.8.x

                #8
                Originally posted by Animaniac1217


                That would allow it to be used on all pages and add an extra SQL querey to every page...
                for hacking related questions you'd need to ask at http://vbulletin.org/

                in order to use and post in certain forums at vBulletin.org you need to

                1. register using the same username and email address you used at vBulletin.com's forums
                2. activate and confirm your registration email
                3. then enter your forum username at http://www.vbulletin.com/members/vbulletin.org.php to show that you're a licensed vB owner
                :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                :: Nginx SPDY SSL - World Flags Demo [video results]
                :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                Comment

                • pdmedia
                  New Member
                  • May 2002
                  • 7

                  #9
                  Thanks, I am allready a member over there..

                  Comment

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