Craigjb12
05-17-2010, 06:23 PM
can anyone tell me how to retrieve the following template variables in a php direct execution widget?
{vb:raw session.sessionhash}
{vb:raw bbuserinfo.securitytoken}
Thanks!
--------------- Added 1274124841 at 1274124841 ---------------
one down...
$sessionhash = $_COOKIE["bb_sessionhash"];
--------------- Added 1274125493 at 1274125493 ---------------
Solved for future searchers:
$securitytoken = vb::$vbulletin->userinfo['securitytoken'];
$sessionhash = $_COOKIE["bb_sessionhash"];
{vb:raw session.sessionhash}
{vb:raw bbuserinfo.securitytoken}
Thanks!
--------------- Added 1274124841 at 1274124841 ---------------
one down...
$sessionhash = $_COOKIE["bb_sessionhash"];
--------------- Added 1274125493 at 1274125493 ---------------
Solved for future searchers:
$securitytoken = vb::$vbulletin->userinfo['securitytoken'];
$sessionhash = $_COOKIE["bb_sessionhash"];