PDA

View Full Version : Is there a way to include a file in a template?



bchertov
Thu 8th Jun '06, 2:43am
Please excuse me if I am showing my relative ignorance of HTML, but is there a way to include a file in a template, so that if I have some custom code that I want in several places, I just call out to it?

I presume I could hack the code/make a pluggin and load a new custom template into a php var and then add that var into the template instead of the include, but I was looking for a way to not hack the code.

Thanks!
Barry

Zachery
Thu 8th Jun '06, 2:46am
you can include the file via a plugin and assign it as a varible, then just use the varible where you want in the templates.

Zidane007nl
Sun 11th Jun '06, 6:25pm
I think this how-to thread will help ya if you haven't come out of it yet:
http://www.vbulletin.com/forum/showthread.php?t=173937

bchertov
Tue 13th Jun '06, 7:55pm
Thanks, Ms. Z!