Customizing SMF > Portals, Bridges, and Integrations
External Logout..?
(1/1)
Ingwie:
Hey there.
I have a little problem, when using the variable that contains the logout link from another site...
When it is clicked, it direcs to the forum, and says "Session verification failed".
Here's the function that does the list of functions. I will make the line bold where it actually places the link. BTW, all other links work...
--- Code: ---function disp_menu() { global $user_info, $context, $txt, $scripturl;
$BIRD_menu = '<ul id="BIRD">
<li><img src="/style/images/home_button.gif" width="30px"></img>
<ul>
<li><a href="/">Drachennetz - Home</a></li>
<li><a href="#">Language (WIP!)</a></li>
<li><a href="#">Settings (WIP!)</a>
<ul>';
if($user_info['is_admin']) {
$BIRD_menu .= ' <li><a href="/admin/BIRD.php">BIRD Admin</a></li>
<li><a href="/admin/chat.php">DragonChat Admin</a></li>
<li><a href="'.$context['menu_buttons']['admin']['href'].'">SMF Admin</a></li>';
}
if($context['user']['is_mod'] || $context['user']['can_mod']) {
$BIRD_menu .= ' <li><a href="'.$context['menu_buttons']['moderate']['href'].'">SMF Moderator</a></li>';
}
$BIRD_menu .= '</ul>
</li>';
if(!$user_info['is_guest'])
[b]{$BIRD_menu .= '<li><a href="'.$context['menu_buttons']['logout']['href'].'">'.$context['menu_buttons']['logout']['title'].'</a></li>';}[/b]
$BIRD_menu .= '</ul>
</li>';
echo $BIRD_menu;
disp_dragonsinn_list("echo");
disp_menu_charabase("echo");
disp_menu_chat("echo");
disp_menu_TEAM("echo");
if(!$user_info['is_guest']) { disp_userinfo("echo"); } else { disp_login("echo"); }
disp_menu_dragonsinn_search();
echo '</ul>';
}
--- End code ---
Andre N:
Just delete the SMF cookie and the user will be logged out. You can hardcode something to do this, or you can use the API and call the smfapi_logout() function
Navigation
[0] Message Index
Go to full version