MyBB Community Forums

Full Version: include something in template !
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

i need to include a page into my forum then i added a
<?php include("mypage.php"); ?> 
to my xml template in the position that i need. but when i active the template i get nothing in that position !

i also used SSI include tag but it doesnt work too !

is there anyway to insert php code in xml template or we are limited to $post and mybb vars ?
Nope...you can't do it via that method.

The methods of adding php to templates are by adding plugins or editing core php files. The template system does not allow for execution of php.

There are very easy methods for adding extra pages to mybb...you can search the forum for them. There are plugins and tutorials.