• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Integrate XenForo footer and header for stand alone .php file

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
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:

کد:
$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
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا