MyBB Community Forums

Full Version: Variables in template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My problem is that I want to insert a php-script into my forum. I know that I can't insert it in a template but is there a way to use a variable?

For example $hello in the template outputs the script <?php echo "hello" ?>.

Thanks a lot!


Try this http://www.mybboard.com/community/showth...p?tid=1636

I guess so you can outsource php code to the global.php and than use it in the board.
Modify the .php files with your script, then any output make it into a variable before the template is eval().