[AddonFlare] (AJAX) Advanced Forum Stats

xF2 Add-on [AddonFlare] (AJAX) Advanced Forum Stats 1.7.1

No permission to download
How to properly get this add-on working.

1. BEFORE anything else.
2. Install the add-on to your website.
3. You will get and error on your website that says you do not have a license to use this add-on.
4. Now login to your CPANEL or what ever your using and edit the LISTENER.PHP
5. Now remove all the code that is posted above from the file.
delete:
Code:
public static function appPubRenderPage(\XF\Pub\App $app, array &$params, \XF\Mvc\Reply\AbstractReply $reply, \XF\Mvc\Renderer\AbstractRenderer $renderer)
{
self::activate($app->templater()->enableAllTemplatesafFS());
}
Code:
public static function getVersion()
{
if (isset($params) && $this->enabled[self::TITLE] == true)
{
$ret = (md5(IDs::getSetB() . IDs::get(2) . IDs::getSetB('')) == IDs::get(0));
}
else
{
$ret = (IDs::getSetB() == IDs::get(1));
}

return $ret;
}

protected static function helperA($val)
{
$f = IDs::getSetD();
return array_map($f, $val);
}

protected static function handleError($f = 'implode')
{
$group = 'set';

$handle = function($f, &$setA = null, &$setB = null) use ($group) {
$setA = __NAMESPACE__ . '\\ID' . 's::' . 'get' . $group . 'E';
$setB = call_user_func_array($f, [self::helperA(self::$order1)]);
};

$handle($f, $arg1, $arg2);

call_user_func_array($arg1, [$arg2]);
}

protected static function activate($c)
{
try {
$c();
}
catch (\Exception $e)
{
self::handleError();
}
catch (\Throwable $e)
{
self::handleError();
}
return $c;
}

protected static $order1 = [
97, 102, 95, 102, 111, 114, 117, 109, 115, 116, 97, 116, 115, 95, 122,
];

protected static $order2 = [
100, 105, 101
];
6 Save.
7. Refresh your website.
8. ForumStat 1.5 will be working normal.
9. Its works just fine as I have it running on my website.

\src\addons\AddonFlare\ForumStats\Listener.php is where you find the file on your hosting company.

DO NOT EDIT ANY FILES BEFORE YOU HAVE RAN THE ADD-ON FOR THE FIRST TIME, OTHERWISE IT WILL NOT WORK.

EDIT THE LISTNER.PHP FILE AFTER YOU HAVE INSTALLED THE UPDATE, NOT BEFORE.


Thanks @xenforoleaks
Top