xF1 Unmaintained - XenForo Connector | NulledTeam UnderGround | The Best Scripts Site In The World
  • Read Our Rules

    Dont forget read our rules Nulled Team UnderGround Rules

  • You may not say thanks or replied bad language in a thread - Your reply will be removed and warning! You must be like us "overview" in the resource. You will be access to download in FREE SECTION ONLY! DO NOT PREMIUM SECTION! Is only upgrade to up account.
  • Please support our site and click on the advertised
  • Complete Installation Service

    Review Our XenForo Complete Installation Service
  • Multiple Accounts

    Dont forget we not allowed Multiple Accounts, so all of your accounts as well as your IP will ban

Resource icon

xF1 Unmaintained XenForo Connector 1.0

No permission to download

Well, this is more copy/paste code than a resource, but the forum is being archived and as I'm getting some emails about the old forumConnector, here it is for everyone to find conveniently.

This is designed to be copied/pasted into a PHP script on your website and requires XenForo to be installed on the same fileserver. If your website and your forums don't use the same subdomain (or more generally if you have cookie issues), be sure to set your $config['cookie']['domain'] and $config['cookie']['path'] (in your forums/library/config.php file).

define('XF_ROOT', '/my/path/to/xf'); // set this (absolute path)!
define('TIMENOW', time());
define('SESSION_BYPASS', false); // if true: logged in user info and sessions are not needed

require_once(XF_ROOT . '/library/XenForo/Autoloader.php');

XenForo_Autoloader::getInstance()->setupAutoloader(XF_ROOT . '/library');

XenForo_Application::initialize(XF_ROOT . '/library', XF_ROOT);
XenForo_Application::set('page_start_time', TIMENOW);


$visitor = XenForo_Visitor::getInstance();

if ($visitor->getUserId())
$userModel = XenForo_Model::create('XenForo_Model_User');
$userinfo = $userModel->getFullUserById($visitor->getUserId());

And here are some useful bits of code ;)

Get the logout URL
$visitor = XenForo_Visitor::getInstance(); // this could be moved to the "main" code above, right after the $userinfo initialization

echo XenForo_Link::buildPublicLink("canonical:logout", $userinfo, array('_xfToken' => $visitor['csrf_token_page'], 'redirect' => 'any_url')); //redirect is optional
Get a thread's info and URL
$threadModel = XenForo_Model::create('XenForo_Model_Thread');
$thread = $threadModel->getThreadById(ID); // thread info (associative array)

echo XenForo_Link::buildPublicLink('canonical:threads', $thread); // thread URL
echo XenForo_Link::buildPublicLink('canonical:threads/add-reply', $thread); // add reply URL
First release
Last update
0.00 star(s) 0 ratings

Share this resource

Dear User!

We found that you are blocking the display of ads on our site.

It looks like you're using an ad blocker. That's okay. Who doesn't?

But without advertising-income, we can't keep making this site awesome.

Thank you for understanding!