MyBB Community Forums

Full Version: Have PHP in templates?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I currently own a minecraft server, along with a forum. Im trying to make a Bukkit -> PHP that it lists the online players, I've done the bukkit to MYSQL, but I cant display the MYSQL results on my homepage as of PHP not working in templates.

How do I enable it or is there an updated working plugin that can do this?
I tried that, and I get an error:

Parse error: syntax error, unexpected $end in /home/minequak/public_html/index.php(662) : eval()'d code(42) : eval()'d code on line 14

Parse error: syntax error, unexpected '}' in /home/minequak/public_html/index.php(662) : eval()'d code(47) : eval()'d code on line 2

and underneath that it displays my forum. Is there a way to fix?
Obviously one of your templates contains a syntax error. Could you paste the exact PHP code you're attempting to use?
I would suggest Zinga Burga's PHP in Templates plugin found here:

http://mybbhacks.zingaburga.com/showthread.php?tid=260

You can also get support for the plugin and your coding there.