View Full Version : Switching from PHPBB.. couple questions.
scotty2260
Mon 2nd Jan '06, 9:12pm
I am thinking of switching from PHPBB, but I have a problem.
MY whole site is integrated with my forums, through custom PHP coding that I did myself. I used the sessions and auto-login of PHPBB to integrate my site.
So will I be able to get session info from VBulletin to use on my site?
Also, is there a way I can use VBulletin's auto-login feature to work on any page of my site like I do with PHPBB?
Thank You. Sorry if it is confusing.
Steve Machol
Tue 3rd Jan '06, 12:58am
Integrating vBulletin with a non-vB member system would require a rather extensive modification of the code. Of course, we cannot provide official support for code modifications. What most people do is modify their current system to use the vB member system.
Either way the place for help with this would be over at the mod site: http://www.vbulletin.org/
Once you register you can post in the Pre-Sales forum there.
scotty2260
Wed 4th Jan '06, 8:35pm
well what I mean is, I need every page of my site to act like a page in the forums. With PHPBB, I use this script
<?php
define('IN_PHPBB',true);
$phpbb_root_path = "/"; // 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);
?>
See how the script makes PHPBB think that the page is part of the forums? Then throughout the contetn of the page I can cal on different variables as needed.
Is there something similar I could do with VBulletin?
Brad.loo
Wed 4th Jan '06, 9:30pm
Doing the same thing with vBulletin is just as easy, although the php code required to do it is not exactly the same as the code you are using for PHPBB.
Once you are a licensed member you can access the modifications over at vBulletin.org. There are alot of threads related to this over there and you should be able to find something to suit your needs or point you in the right direction.
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.