MyBB Community Forums

Full Version: How to integrate 1.8.5 into a Processwire php template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I have spent a few hours trying to find code to integrate mybb into a Processwire template but to no avail. I tried the mybb integrator class and some other code I found like

define("IN_MYBB", 1);
chdir("../../efriendsbb/"); // path to MyBB
require "global.php";

 but both give me a "Error: Cannot use object of type Config as array (line 10 of /home/dozyykt7/public_html/efriendsbb/inc/config.php) ". I am wondering if 1.8.5 needs a different code?

Can anyone demonstrate the code to integrate mybb into a php template (with this appearing in the template http://befriend.org.au/efriendsbb/) ? I just need it to display in the template page. 

This has been extremely frustrating. Any help would be great.

many thanks!
Ivo