Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Julie - joulukuu 19, 2005, 08:50:42 IP

Otsikko: Hide/Load different index.template.php
Kirjoitti: Julie - joulukuu 19, 2005, 08:50:42 IP
I'm programming a blog mod and I would like people to be able to choose their own custom templates which will be shown when people view their blog (similar to the one on MKPortal).

I want to program the blog display as part of the mod that runs within the forum rather than a stand alone ap, but using LoadTemplate() seems to load the main index.template.php by default.

Is there a way I can load the custom template for the blog without loading the default index.template.php aswell?
Otsikko: Re: Hide/Load different index.template.php
Kirjoitti: Julie - tammikuu 01, 2006, 01:02:26 AP
OK might elaborate on all that a bit more to make it clear...

I want to access the page by index.php?action=blog&id=1

This is easy enough and I've got it working however doing it this way loads the current header and footer as set in index.template.php

Can I choose to load a different template and therefore a different header & footer when the module runs?

Thanks!
Julie