Jake Evans
New member
Hello folks, I am running a Wordpress/xenForo bridge and making attempt to initialize xenForo inside my Wordpress templates. The only option I know of to integrate my xenForo into the Wordpress theme is by copying over the identical html & css into xenForo's footer & header, though I don't like the idea of this. Something I am trying right now is to load xenForo entirely on an external page, though the default code to load xenForo redirects me to my website index page:
If somebody has suggestions to load xenForo entirely on an external page, or a better idea to integrate xenForo inside Wordpress, please let me know!
edit: Keep in mind I am a newbie to xenForo, discovered it a few years back though this is the first time I've used it!
PHP:
$startTime = microtime(true);
$fileDir = '/home/aggres12/public_html/forums';
require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);
$fc = new XenForo_FrontController(new XenForo_Dependencies_Public());
$fc->run();
If somebody has suggestions to load xenForo entirely on an external page, or a better idea to integrate xenForo inside Wordpress, please let me know!
edit: Keep in mind I am a newbie to xenForo, discovered it a few years back though this is the first time I've used it!