有没有人有使用这个插件的经验?我已经获得了 php 的客户端库,并在我的控制器中设置了适当的功能。当我从香草的插件设置页面单击“测试”时,我得到了有效的响应,但现在我被卡住了......我从这里去哪里?
为了更清楚地了解这个问题,我不知道我的下一步是什么。我的意思是,我知道我一定遗漏了一些东西……这是我用作插件端点的控制器功能(或页面):
// 1. Get your client ID and secret here.
$clientID = "1234";
$secret = "1234";
// 2. Grab the current user from your session management system or database here.
//so i check to see if the user is logged in to my codeigniter's auth
//all works fine
// 3. Fill in the user information in a way that Vanilla can understand.
$user = array();
if ($signedIn) {
// i then set these according to the user info of the logged in user
$user['uniqueid'] = '123';
$user['name'] = 'John PHP';
$user['email'] = 'john.php@anonymous.com';
$user['photourl'] = '';
}
// 4. Generate the jsConnect string.
$secure = true;
WriteJsConnect($user, $_GET, $clientID, $secret, $secure);
http://vanillaforums.org/docs/jsconnect是文档站点,它没有提及在我当前的点之后要做什么。