I had a custom plugin developed for XF1, and this needs to be ported to XF2
It basically sends all users a trending content email once a week (based on their permissions).
This needs to be upgraded to XF2
PM for a copy of the code if you want to give me a quote.
Thanks
Blake
@LPH Thanks - Big fat 0 again
Is it due to the location of the script? Root folder?
Is there some sort of permission that is blocking this?
Is it because I'm a super admin?
I wont have much hair left if this keeps going on :)
Thanks Guys,
Yes, I am logged in. This code appears in a file called api.php in the root of my XenForo Installation
Here's the code...
<?php
$dir = __dir__;
require($dir . '/src/XF.php');
XF::start($dir);
$app = XF::setupApp('XF\Pub\App');
$app->start();
$session = $app->session()...
I'm trying to get the user_id and permissions of the current logged in user for use in another application
I'm trying this... but all I get is 0.
$dir = __dir__;
require($dir . '/src/XF.php');
XF::start($dir);
$app = XF::setupApp('XF\Pub\App');
$app->start();
$session = $app->session()...
Here's the setup
Forum A
Forum B
User Group A
User Group B
User Group A and B have the same permission set.
Forum A - Registered users are revoked, While User Group A has Access
Forum B - Registered users are revoked, While User Group B has Access
Fred is a member of both groups A and B...
Thanks.. yeah .. I have no idea what caused it.
The tables was showing in the list of tables under mysql
But didn't exist.
I copied all the tables to a new temp database. Added the xf_error_log table.
I then deleted the original database and then created it again.
I then copied the...