pattycake2
Active member
I have this script to pass variables to another php script
Everything works except the last item - location... all other variables get passed except the location - location is always blank and, the location is definitely set in the users profile but, I cannot get this one item to display.
Also wanted to get custom field called "trackname" and unable to get that even though it's set in the users profile.
Help please
Code:
$dir = __DIR__;
require ($dir . '/src/XF.php');
\XF::start($dir);
$app = \XF::setupApp('XF\Pub\App');
$app->start();
$visitor = \XF::visitor();
$da_visitor_id=$visitor->user_id;
$da_username=$visitor->username;
$da_userid=$visitor->user_id;
$da_email=$visitor->email;
$da_trackname=$visitor->location;
Everything works except the last item - location... all other variables get passed except the location - location is always blank and, the location is definitely set in the users profile but, I cannot get this one item to display.
Also wanted to get custom field called "trackname" and unable to get that even though it's set in the users profile.
Help please