PDA

View Full Version : Making my own template...



nocturnix
Mon 30th Sep '02, 4:01am
I made my own custom template...

my plan is to have images linking to specific categories...kinda like www.yaxay.com/yack the 2d, 3d galleries, and such.

I plan to make the forumdisplays for each category 0 so they dont show up twice.

Anyways...i made this template and i want to call it in the forumhome template...right before all the forum displays start...

i called the template displaybox

so in the forumhome template I put

"$displaybox" hoping it would call the template and everything would work fine.

But the template doesnt show up...how do I call a custom template i make in another template? :confused:

Thanks,

-Nocturnix

nocturnix
Thu 10th Oct '02, 3:42pm
ok, no one can answer this question? This should be pretty simple.

c-prompt
Thu 10th Oct '02, 5:43pm
Define the variable in the php includes template. Just using the variable doesnt work because the php doesnt know what it means.

nocturnix
Fri 11th Oct '02, 12:07am
Ok great thanks...so how would i declare it? I just want it to be a template, nothing special...just a little html. Do i like have to use functions or somethin? If you could just give me some quick syntax, like an example or something...of how to declare a simple html template, that would help me out alot!

Thanks,

-nocturnix

neotalon
Sun 10th Nov '02, 7:23am
this is the way that I did it.

in the phpinclude template

$GLOBALS['yourhtmltemplate'] = gettemplate('yourhtmltemplate');

and then in your header template (or whichever template you want to place it in) put this

$GLOBALS['yourhtmltemplate']

wherever you want it to go.

I did that on my board and it placed the template right in there.

this may not be the best way to do it, or it may be the best way to do it. I don't know. all I know is that this is the way I ended up doing it after spending a little while trying to figure it out. and it should work fine for you too.