How to integrate phpBB without making users sign up again

Discussion forum for MOD Writers regarding MOD Development.
Locked
vagex
Registered User
Posts: 4
Joined: Wed Apr 27, 2011 6:16 am

How to integrate phpBB without making users sign up again

Post by vagex »

Dear phpBB community,

I was wondering if someone can help me.

I am integrating phpBB on my site to upgrade from our current makeshift forum.

Basically I already have a database full of users and don't want to make them sign up again for the forum, so I decided to make them all post as guests, and using their current usernames as the guest username.

It all works great.. in FireFox. But when I try it with Ineternet Explorer, phpBB seems to be killing my site's session and therefore not passing over the username to fill the guest username field.

This is the basis of my coding:

Added the following to the top of session.php

Code: Select all

require_once(dirname(__FILE__) . '/../../../includes/ses.php');
mysql_close;
This is what's in ses.php:

Code: Select all

<?php

require_once(dirname(__FILE__) . '/connection.php');
session_set_cookie_params(86400*30, null, '.'.$domain);
session_start();
if (!isset($_SESSION['uid'])) {
	header('Location: /login.php');
	exit();
}
$ud = $C->staa('*', 'user', 'where id='.$_SESSION['uid']);
$nameid = $ud['name'];

?>
Then I just added these variables to functions_display.php and successfully loaded these new variables into parts of the script. Eg, I put the $nameid variable into posting_editor.html to make the default username for guest posting the same as the session's $nameid.

It all works great except that it doesn't work with the new versions of IE. Old versions of IE work. I commented out all guest session removal code from session.php and it still doesn't work with IE.

I went even more basic. I put the following at the top of posting.php

Code: Select all

session_start()
$nameid = ($_SESSION['uid']);
Works for FF but not IE. Other people confirm IE is the problem.

Anyone know any other methods of integrating my current user list without making them sign up again for the forum? Or can someone help me with this current method to preserve my site's session when using IE?

Thanks,

Vagex

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: How to integrate phpBB without making users sign up agai

Post by Erik Frèrejean »

Moving to MOD writers discussion
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

vagex
Registered User
Posts: 4
Joined: Wed Apr 27, 2011 6:16 am

Re: How to integrate phpBB without making users sign up agai

Post by vagex »

nevermind I just added my database of users using the user_add(); command.

Locked

Return to “[3.0.x] MOD Writers Discussion”