Log in

View Full Version : How do I put this php code in a templeat?


DrewM
02-08-2006, 06:55 PM
I want to put the fowling code in a templeat
output_News(5,4);
I tried a plugin but it only displays at the top.

harmor19
02-08-2006, 07:12 PM
I'm not sure what template you want it in but you put the code in the plugin that is most appropriate and add a variable to it.

function output_news($n1, $n2)
{
//do something
}

$news = output_News(5,4)

Now take the variable "$news" and place it where you want it in the template.

DrewM
02-08-2006, 07:48 PM
thanks!