Log in

View Full Version : Add custom templates in FORUMHOME


SNATCH3R
01-04-2008, 12:30 PM
Hello All

I am facing a problem. I made a custom template with some image and hypertext links and i would like the template to appear on my Main Forum Home Page.

I edited the FORUMHOME template and mentioned $<custom_template> below the $navbar line. But I am not able to see the template contents when I load the page.

When I copy the custom template contents and paste directly in FORUMHOME, it displays properly.

This template needs editing frequently and I don't want to modify FORUMHOME each time. So kindly help to work on this with a custom template.

Thanks

Lynne
01-04-2008, 01:43 PM
One way to do it is to create a hook in the FORUMHOME where you want your template to go ("$template_hook[my_forumhome_hook] ") and then create a plugin (at forumhome_start or forumhome_complete) to call the template and put it in the place of your template hook:

eval('$template_hook[my_forumhome_hook] .= " ' . fetch_template('custom_template') . '";');