I understand this, but I had a different question...Brf wrote:Mods for phpBB 3.0 will not work with 3.1.
Same here: which "redirects"?zorbas2 wrote:Also it seems that I need to manually edit my ucp.php in phpBB to get the redirects working properly when bridging.
Code: Select all
While executing query 'SELECT *, username AS user_name, user_email AS user_email, user_regdate AS user_regdate, user_from AS user_location, user_website AS user_website FROM `db466936751`.phpbb3_users WHERE user_id = '2'' in bridge/udb_base.inc.php on line 413 the following error was encountered:
Unknown column 'user_from' in 'field list'
Code: Select all
'location' => 'user_from', // name of 'location' field in users table
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$redirect_target = '../CoppermineFolder'; /* Path to Coppermine! */
$user->session_begin();
$auth->acl($user->data);
if(!$user->data['is_registered'])
{
login_box($redirect_target);
}
else if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
{
$user->session_kill();
}
redirect($redirect_target);
Code: Select all
.
.
.
function login_page()
{
global $CONFIG;
$redirect = urlencode($CONFIG['site_url']);
$this->redirect("/redirect.php");
}
function logout_page()
{
global $CONFIG;
$redirect = urlencode($CONFIG['site_url']);
$this->redirect("/redirect.php?mode=logout&redirect=$redirect&sid=" . $this->session_id);
}
.
.
.