Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: GC - tammikuu 26, 2006, 10:34:02 IP

Otsikko: Making a new function? help please.
Kirjoitti: GC - tammikuu 26, 2006, 10:34:02 IP
How do you make a new function. Like function template_before() and function template_after(), and I want to make a function template_middle()
Otsikko: Re: Making a new function? help please.
Kirjoitti: Thantos - tammikuu 26, 2006, 11:35:15 IP
function template_middle()
{
}

done
Otsikko: Re: Making a new function? help please.
Kirjoitti: GC - tammikuu 27, 2006, 12:41:58 AP
don't you need to add it to like subs or something?
Otsikko: Re: Making a new function? help please.
Kirjoitti: Thantos - tammikuu 27, 2006, 01:00:33 AP
You can put it where ever you'd like really.  I'd recommend one of the template files.  The main issue is calling it.