Hello boys,
I've got it working. Unfortunately, no one could really help. I hope this code actually helps some people.
// Set XenForo directory
$dir = '/var/www/public';
// Require XenForo
require($dir . '/src/XF.php');
// Load XenForo
XF::start($dir);
$app =...
Bump.
I found this in XF/Admin/Controller/UserUpgrade.php
public function actionManual(ParameterBag $params)
{
$upgrade = $this->assertUpgradeExists($params->user_upgrade_id);
if ($this->isPost())
{
$username = $this->filter('username', 'str')...
Hello,
I'm currently coding an external page with PHP and I need to be able to upgrade/downgrade users through the XF framework. Unfortunarely I can't find any references for user upgrade/downgrades.
Can someone share some code for User upgrades/downgrades through the XF framework? :) Currenty...
Is there no help for this?
It seems like that it's possible to do that through the XenForo Framework
$startTime = microtime(true);
$fileDir = '/path/to/xenforo/root';
require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir ...
The problem is that my PHP File is mixed with HTML, and data is submitted via POST submit. I don't really know how I can do that with XenForo. In XF1 there was an addon that I could do custom pages easily on my own, without classes etc.