News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

SMF function question

Started by OnzeDanny, February 23, 2012, 06:46:33 AM

Previous topic - Next topic

OnzeDanny

I'm busy to develop a mod, to understand the way SMF works, i have next question.

When i look into the index.template.php i see different functions like this here:

function template_body_above()
{......
}

How does SMF execute this function? (  template_body_above() )
I did not find any executing off this function  ???

Many thanks in advance ;)

emanuele

(Short and far from perfect explanation)

These functions come in pairs:
* template_something_above
* template_something_below
and are templates for layers.

See here: http://www.simplemachines.org/community/index.php?topic=462649.msg3233063#msg3233063

So you can use:
$context['template_layers'][] = 'something';
to execute them (provided that the template is loaded).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: