xF1 Unmaintained - XenForo SDK | 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 SDK 0.0.1

No permission to download
Compatible XF Versions 1.x
1.2
Simple SDK to allow using the XenForo Classes, Helpers, Templates etc.. outside of the XenForo Scope.

Features:
  • Check if user is logged in
  • Login
  • Logout
  • Validate Login Information
  • Verify Username
  • Verify Email
  • Encrypt/Validate Passwords
  • Create Users
  • Get current user/visitor information
  • Get forum/forums (using ids or conditions)
  • Get thread/threads (using ids or conditions)
  • Render Public/Admin Templates
  • Get all options
  • Get single option
Contribution/Suggestions are welcome. Please use the following repository for changes:
https://github.com/VinceG/xenforo-sdk

PHP:
<?php

require_once('XenForoSDK.php');
$sdk = new XenForoSDK;

$loggedIn = $sdk->isLoggedIn();
if($loggedIn) {
echo 'Logged In';
} else {
echo 'Guest';
}

// Validate loing
$valid = $sdk->validateLogin('[email protected]', 'password', $rememberMe, $loginUserIfSuccessful);

if($valid !== true) {
echo $valid; // will display the error
}

// Login user
$user = $sdk->login($userId, $rememberMe); // no validation

// Logout
$sdk->logout();

// Hash password
$passwrod = $sdk->setPassword('test123', 'passward_confirm'); // returns array scheme_class and data

// Add new user
$newUser = $sdk->addUser('[email protected]', 'myusername', 'mypassword', array('someotherdata' => 'someothervalue'));
if(is_object($newUser)) {
// user was not created show error
echo $newUser;
} else {
// user created, $newUser holds id
echo 'New User ID: ' . $newUser;
}

// Get all forums
$forums = $sdk->getForums();

// Get one forum
$forum = $sdk->getForumById(2);

// Get all threads
$threads = $sdk->getThreads(array()); // will show all so make sure to add conditions

// Get one thread
$thread = $sdk->getThreadById(2);

// Get current user
$user = $sdk->getUser();

// Get other user info
$user = $sdk->getUser(2);

// Get current visitor/session info
$visitor = $sdk->getVisitor();
$session = $sdk->getSession();

// Get options/option
$options = $sdk->getOptions();
$option = $sdk->getOption($key);

// Render public/admin template
$output = $sdk->renderPublicTemplate('template_name', array $params);
$output = $sdk->renderAdminTemplate('template_name', array $params);

Author
Josh
Downloads
0
First release
Last update
Rating
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!