[REQ]Tutorial on .org - PHP Functions with params

If you were more clear about your project, you might get a better answer but from what you have provided, you need to be thinking plugin to use php code in templates.

Code:
eval('$special_event_notice = "' . fetch_template('special_event_notice'). '";');
Once you have created this plugin, you can use the variable $special_event_notice pretty much anywhere and it will display the content of the template.

But the question you are asking goes a little deeper than just calling a template.

PHP code needs to be added to a plugin in order to use it and some of the PHP calls can not be used, like echo. For example, you can not use :

Code:
echo " this is what I want to display";
But you CAN use:


Code:
$displayme = "this is what I want to display"
and just place the variable name where you want it to display in your template or any of the other vBulletin templates for that matter depending on what hooks you use.

HTH
 
Top