Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Hide/Load different index.template.php

Aloittaja Julie, joulukuu 19, 2005, 08:50:42 IP

« edellinen - seuraava »

Julie

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?

Julie

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

Advertisement: