scotty2260
01-04-2006, 05:11 PM
Hello all,
I recently switched from PHPBB to vBulletin, and I need some help.
I used a code on every page of my site to integrate the login with my site. This also gave me access with PHP to call any sessionvariables I needed at any time. I need to do this with vBulletin.
It allows me to welcome people to my site by name, show links to registered users only, and unlock content to people based on posts. Below is the code I used for PHPBB, is there soemthing similar out there for vBulletin?
I code PHP, so I can make slight alterations if necessary.
Thank You!
define('IN_PHPBB',true);
$phpbb_root_path = "mgdb/"; // set path to phpBB files
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_LOGIN); // initiate session
init_userprefs($userdata); // load user prefs
//
// End session management
//
$userid = $userdata['user_id'];
$sql = "SELECT * FROM mgdb_users WHERE user_id = '$userid'";
$result = $db->sql_query($sql);
$isauth = 0;
while (@$row = $db->sql_fetchrow($result))
{
extract($row);
if ($isauth != '1')
{
extract($userdata);
I recently switched from PHPBB to vBulletin, and I need some help.
I used a code on every page of my site to integrate the login with my site. This also gave me access with PHP to call any sessionvariables I needed at any time. I need to do this with vBulletin.
It allows me to welcome people to my site by name, show links to registered users only, and unlock content to people based on posts. Below is the code I used for PHPBB, is there soemthing similar out there for vBulletin?
I code PHP, so I can make slight alterations if necessary.
Thank You!
define('IN_PHPBB',true);
$phpbb_root_path = "mgdb/"; // set path to phpBB files
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_LOGIN); // initiate session
init_userprefs($userdata); // load user prefs
//
// End session management
//
$userid = $userdata['user_id'];
$sql = "SELECT * FROM mgdb_users WHERE user_id = '$userid'";
$result = $db->sql_query($sql);
$isauth = 0;
while (@$row = $db->sql_fetchrow($result))
{
extract($row);
if ($isauth != '1')
{
extract($userdata);

