News:

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

Main Menu

Help beyond index.template.php

Started by d6veteran, October 11, 2005, 04:44:47 PM

Previous topic - Next topic

d6veteran

I've written the html for a whole new forum theme.  I was then able to integrate that new html into index.template.php.  At this point I am now confused/unclear on how SMF reads/organizes templates.

In index.template.php I see that the main display area is contained between main_above() and main_below(); but I do not understand the correlation between the remaining templates and the main display area.  For example, at this point I want to modify the display of the forum categories (http://7dr.squadleaders.org/smf/index.php).

What template controls that display?

Basically it would be nice to have a template map.

Because my next questions will be what template controls:
1) post list display http://7dr.squadleaders.org/smf/index.php?board=1.0
2) post display http://7dr.squadleaders.org/smf/index.php?topic=87.0

I used SMF to create my new theme but all I have is an index template.  What do I name the other templates and what controls them?

Thanks.

xenovanis

Quote from: d6veteran on October 11, 2005, 04:44:47 PM
I've written the html for a whole new forum theme.  I was then able to integrate that new html into index.template.php.  At this point I am now confused/unclear on how SMF reads/organizes templates.

In index.template.php I see that the main display area is contained between main_above() and main_below(); but I do not understand the correlation between the remaining templates and the main display area.  For example, at this point I want to modify the display of the forum categories (http://7dr.squadleaders.org/smf/index.php).

What template controls that display?

BoardIndex.template.php

Quote from: d6veteran on October 11, 2005, 04:44:47 PM
1) post list display http://7dr.squadleaders.org/smf/index.php?board=1.0

MessageIndex.template.php

Quote from: d6veteran on October 11, 2005, 04:44:47 PM
2) post display http://7dr.squadleaders.org/smf/index.php?topic=87.0

Display.template.php

Quote from: d6veteran on October 11, 2005, 04:44:47 PM
I used SMF to create my new theme but all I have is an index template.  What do I name the other templates and what controls them?

Thanks.

Here's a link that might help you:
Information on theme modification and creation
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: