View Full Version : Help with calling new template please


darnoldy
11th December 2004, 07:28 PM
folks-

In my forumhome template, I put the code:
<tbody>
<tr>
<td valign= "top" colspan="2">
Stuff goes here
</td>
</tr>
</tbody>
which displayed as expected.

However, "Stuff" will be somewhat extensive and changing, so I want to move this to a separate template.

I created a new template, and named it "forumhome_fhp" and pasted the above code into it.

In the forumhome template, I replaced the original code with the call "$forumhome_fhp". nothing displayed in that spot.

What did I do wrong?

--don

Aros
12th December 2004, 12:50 AM
You will need to define it in global.php;
Open up global.php and search for:
eval('$header = "' . fetch_template('header') . '";');
Right above add:
eval('$forumhome_fhp = "' . fetch_template('forumhome_fhp') . '";');
Save, upload and you're all set.

darnoldy
12th December 2004, 12:58 AM
You will need to define it in global.php;

Very kewl! I don't have access to the php, but I'll forward this to the guy who does. Thanks

--don