MyBB Community Forums

Full Version: Include php code only on showthread.php?!?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

How can I include php code directly on the showthread.php page? When I include the code now, I just end up with a blank page. If someone could walk me how to this I would greatly appreciate it.

FYI: The php code works on all the other websites I have implemented it on.
You're ending up with a blank page becuase display_errors is probably disabled. Wink

You can enter your code in the templates show_thread.
How can I enable this?
hostivo Wrote:How can I enable this?

You're probably going to get an error saying something like "You can't modify the header! Header information already modified on line 'some number'!

try this:

You can enter your code in the templates show_thread.
You can't put raw PHP code in templates, you need to either use plugins or edit showthread.php.
Worked like a charm... Thanks a lot!