PDA

View Full Version : Accessing new template



pdmedia
Wed 15th May '02, 7:55pm
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
Wed 15th May '02, 8:19pm
Check out my hack at vB.org its for this very thing.
http://www.vbulletin.org/forum/showthread.php?s=&threadid=33386

pdmedia
Wed 15th May '02, 9:47pm
Thanks for the link but I think what I need is info on how I access the template I allready Made

c-prompt
Wed 15th May '02, 11:03pm
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.

pdmedia
Wed 15th May '02, 11:25pm
I found it Thanks For anyone else wonderin the code to put in global.php is

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

Animaniac1217
Fri 17th May '02, 10:36pm
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...

pdmedia
Mon 20th May '02, 3:25pm
Then what would be a better way to do it?

eva2000
Mon 20th May '02, 3:39pm
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

pdmedia
Mon 20th May '02, 3:41pm
Thanks, I am allready a member over there..