Forum
Notifications
Clear all
Topic starter
In Vbulletin, the logout hash is loaded into the global userinfo array, so it's available to you when you've included the global.php file.
A very basic example of creating a page with just the logout link might look like this (assuming your script is in the vBulletin directory):
<?php
include('./global.php');
if($vbulletin->userinfo['userid'] > 0)
echo '<a href=""login.php?'" . $session[sessionurl] . 'do=logout&logouthash=' . $vbulletin->userinfo['logouthash'] . '">Logout</a>';
?>
Posted : 30/04/2012 10:36 pm