First of all, let's make clear something. Yes, (unfortunatelly) vBulletin does not allows PHP in templates. But don't stuck on this. Extend your imagination. "If you can't go left, go right. Just don't stand" :)
The solution for this problem is much more easier than you can think. "If you can't add PHP in the templates, add templates to PHP" :) You just need a "echo" command in your PHP file. Yes it's so simple, the result will be exactly what you want, and most important, you can use vboptions, vbphrases, datamanager and everything you want.
............Here you can add any PHP code that you like..............
// Footer Block
$templater = vB_Template::create(php_footer');
$templater->register_page_templates();
$footer_block = $templater->render();
echo $footer_block;
As you can see you can use ANY vB template in the PHP file. Just assign it to a variable and then use echo to show it in the screen.
Hope that this short tutorial will be useful to those who have stuck with this vB limitation. I love to use the Smarty template engine with PHP.
That is a way I searched for a lot!
Thanks Nick
For What?
For What?
For what it needs? Just a word can explains it: AJAX