logout link on extranal page solved now
I have reading lot about the suggested solution to make a link for logout on extranl pages but most of the guys was compaling that solution offer is not working i have worked on that and few hours re search i got the solution which i want to share to help others here is detail
require_once('path/global.php'); require_once('path/includes/functions_login.php'); $hh=$vbulletin->userinfo['logouthash']; $url1=" <ahref= \"http://url/forum/login.php?$session[sessionurl]do=logout&logouthash=".$hh."\">logut out</a>"; after that you can put link any where you want in your code if its php then just <? echo $url1?> and you are done |
basically what i have as well
Code:
global $me,$bbuserinfo,$vbulletin; i couldnt get global to work but require_once('/home/virtuser/diablo2.com/public_html/forum/includes/init.php'); works fine when including a file for userinfo, just wont have bbcode quotes. $bbuserinfo = &$vbulletin->userinfo; and $me = ($bbuserinfo['userid'] ? $bbuserinfo['username'] : ''); this is in php obviously. Thats the jist of it. |
instead of using
$bbuserinfo['userid'] or $bbuserinfo['username'] why you dont use $vbulletin->userinfo['userid'] and $vbulletin->userinfo['username']; ..??? |
Quote:
$bbuserinfo = &$vbulletin->userinfo; i use it in other areas, obviously you dont have to do that. but i just assigned that whole thing to one variable instead of doing that every time. |
All times are GMT. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|