OK,
no errors showing in the reports
Bottom line no snippets of any type are getting called on this page. (I tried duplicating the Doc and using other snippets with the same result. Weird.)
Here's my call
Here's my snippet
<?php
require_once('http://www.hotbuttonmarketing.com.au/assets/libraries/functions.jsconnect.php');
$clientID = 'xxx'; // I do have actual numbers here put your client ID here
$secret = 'xxxx'; // put your secret code here
$user = array();
if ($modx->user->isAuthenticated('web')) {
$profile = $modx->user->getOne('Profile');
$email = $profile ? $profile->get('email') : '';
$user['uniqueid'] = $modx->user->get('id');
$user['name'] = $modx->user->get('username');
$user['email'] = $email;
}
$secure = true; // false for test only mode - will skip the ID and secret tests
WriteJsConnect($user, $_GET, $clientID, $secret, $secure);
I've checked the functions file and it is in the directory.
It is uncached and it has no template (empty)
When you say resource do you mean Static Resource or Document? And do I have to save it as a particular Content Type?
PS The hello test worked.
[ed. note: markg last edited this post 11 years, 6 months ago.]