PDA

View Full Version : modifying forumhome template


Ted2
03-02-2002, 05:44 PM
I am going to modify my forum home template so that there is an narrow column on the left side, next to all the forums so that I can add links, buttons, etc.

I know how to add the correct code in the correct spot, but I was wondering if I could instead place a reference to another, new template where I can add the code instead. The end result would appear the same, but I'd be putting my code in a new file keeping things less confusing. Not sure if I am making myself clear... know what I mean?

If you DO know what I mean, how do I make the call for another template from within a template? Thanks for any help.

TWTCommish
03-03-2002, 08:08 PM
You'll want to, I think, open you global.php file and find this (around line 270):

$header='';
$footer='';
Right after it, put this:

eval("\$leftcolumn = \"".gettemplate('leftcolumn')."\";");
Then, create a template called leftcolumn, put whatever you want in it, and use the $leftcolumn variable as you please. I think that ought to work; though I haven't tried it myself. :) I might be missing something.

DFX
03-04-2002, 05:23 PM
I gave that a try and it put the text above the main forums table and not to the left. :(

Ted2
03-04-2002, 05:42 PM
Thank you I will try that.

I gave that a try and it put the text above the main forums table and not to the left.
Well that sounds like you are simply placing the $leftcolumn variable in the wrong place, no?

Scott MacVicar
03-04-2002, 10:04 PM
correct it is in the wrong place, it simply parses the template into $leftcolumn you have to put it in the right place with the appropriate html in that variable in the appropriate part of the page.

DFX
03-05-2002, 11:52 AM
Yep you are correct :) It's working now, thanks.

Vivi Ornitier
03-20-2002, 08:28 PM
Im sorry for the late repsonse but would do something like on http://forums.ffrepublic.com except on the left? if not could u temm me how to please

afterlab
03-24-2002, 02:44 PM
Err.. :\

solent
06-25-2002, 12:28 PM
ok i have done that but i cannot even get my leftcoloum to be displayed at all.

any ideas??

xeon
06-26-2002, 01:52 PM
Did you create the lefcolumn template and then use the $leftcolumn variable to place the column in your forum home?