[RSS Feed/News] Integrate XenForo footer and header for stand alone .php file

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm trying for few days to integrate the footer and header of XenForo on a standalone PHP file but stuck.

The same thing was done before here for XenForo 1
xenforo.com

Unmaintained - Kotomi - Generic script bridge

This is mainly intended for developer use. It lets you embed a non-XenForo/non-MVC script (just about any PHP script should work) into the XenForo page and use XenForo functions such as permissions while still accessing the script from a standard...
xenforo.com
xenforo.com

In file separate.php
Code:

Code:
$container = true;
$fileDir = dirname(__FILE__)."/{$indexFilePath}";
$dir = __DIR__;
require($dir . '/src/XF.php');

\XF::start($dir);

require "{$fileDir}src/AddonPath/Header.php";

Header.php
Code:

...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom