Community Build + phpbb_connecttor: Some problems?

Discuss the integratoin of phpbb and Joomla! here.

Moderator: General Support Moderators

Forum rules
Locked
melodies
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Jun 15, 2006 2:34 pm

Community Build + phpbb_connecttor: Some problems?

Post by melodies » Thu Jun 15, 2006 3:19 pm

Hi, firstly I must say that English is not my native language, so sorry about that.

I've installed CB+php_connector with Joomla 1.0.8 and Phpbb 2.0.18 in the same database (localhost).

I've got a problem with CB User Profile: before integrate phpbb into Joomla it runs quite well; but here's what I got after integration:

Image

Location of my Joomla: http://localhost/forumtest/
Location of my Phpbb: http://localhost/forumtest/forum/

I'm a newbie, so please help me.

And I've got another question about log in and log out:

Log in and log out run in only one direction, i.e. when I logged in (or logged out) Joomla, I also automatically logged in (or logged out) phpbb, but it's not the same in the opposite direction: when I logged in (or logged out) Phpbb, nothing happened to Joomla (I logged in Joomla, opened phpbb in the same window, logged out phpbb, turned back to Joomla in the same window, and I still didn't logged out Joomla; or in the other way: I logged in phpbb, went to Joomla in the same window, and I still didn't logged in Joomla!)

Please help my, I'm so tired searching a module to combine Phpbb and Joomla.

Hey, an another quetion (thank you for continue reading):
How to combine two profile module (of CB and Phpbb) into one, so when I click on Profile of CB and Phpbb, it will lead to only one page ?

Thanks in advanced, and have a good time to help me! :P

geeffland
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 172
Joined: Sat Oct 29, 2005 1:43 pm

Re: Community Build + phpbb_connecttor: Some problems?

Post by geeffland » Thu Jun 15, 2006 6:10 pm

Melodies,

First probably better to post these questions about the phpBB Connector here http://www.joomlapolis.com/component/op ... /catid,34/ as it gets checked more often.

I have seen this array_merge 2 other times from other users... neither has followed it through to the root cause.  If I recall correctly it is even mentioned on the phpbb.com website. (although very difficult to find)

That line in phpBB's common.php file is merging various global variables, $_GET, $_POST, etc...

When does this error occur? Login, logout, userprofile, etc... (list all that apply)  Will come up with some code to try...

What are your site specifics? server, php version, mysql version, etc.

Login and our only work one direction because this plugin does not hack phpBB... therfore the phpBB links remain as they were when originally installed... you can however modify phpBB or its templates to point the register, profile, etc. links to the appropriate CB links.

The upcoming Ver. 2.0 of the connector does include the ability to edit your phpBB profile data from the CB user profile.

Hope this helps,
Greg
Thanks,
Greg

melodies
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Jun 15, 2006 2:34 pm

Re: Community Build + phpbb_connecttor: Some problems?

Post by melodies » Fri Jun 16, 2006 9:08 am

Thanks, here something you want to know:

This error occurred when I logged in Joomla and use the component CB Profiler to view my profile (as you can see below those debugging lines is admin's profile). And as I said, it happened only after the integration.

About the site specifics, I use package AppServ ver 2.5.5 (localhost) with
# Apache Web Server Version 2.0.55
# PHP Script Language Version 5.1.1
# MySQL Database Version 5.0.16
# phpMyAdmin Database Manager Version 2.6.4-pl4
Appserv site: http://www.appservnetwork.com/

Hope it'll help then.

geeffland
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 172
Joined: Sat Oct 29, 2005 1:43 pm

Re: Community Build + phpbb_connecttor: Some problems?

Post by geeffland » Mon Jun 19, 2006 2:11 pm

Here is something that you may try...

edit your phpbbconnector.php file...

change the includephpBBFiles function to this... it should make sure that those variables are set and are arrays....
Greg

--------------------------------------

Code: Select all

	function includephpBBFiles() {
		global $phppBBsessionID, $phpBBforumPath;
		global $db, $phpEx, $phpbb_root_path;
		global $lang, $table_prefix, $theme, $style, $board_config, $userdata;
		$phpbb_root_path = $this->forumPath();
		// set these variables to make sure and avoid the argument is not an array error with array_merge in common.php
		if (!isset($HTTP_GET_VARS) || !is_array($HTTP_GET_VARS))
		{
			$HTTP_GET_VARS = array();
		}
		if (!isset($HTTP_POST_VARS) || !is_array($HTTP_POST_VARS))
		{
			$HTTP_POST_VARS = array();
		}
		if (!isset($HTTP_COOKIE_VARS) || !is_array($HTTP_COOKIE_VARS))
		{
			$HTTP_SESSION_VARS = array();
		}
		if (!isset($HTTP_SERVER_VARS) || !is_array($HTTP_SERVER_VARS))
		{
			$HTTP_SERVER_VARS = array();
		}
		if (!isset($HTTP_SESSION_VARS) || !is_array($HTTP_SESSION_VARS))
		{
			$HTTP_SESSION_VARS = array();
		}
		if (!isset($HTTP_ENV_VARS) || !is_array($HTTP_ENV_VARS))
		{
			$HTTP_ENV_VARS = array();
		}
		if (!isset($HTTP_POST_FILES) || !is_array($HTTP_POST_FILES))
		{
			$HTTP_POST_FILES = array();
		}
		include_once($phpbb_root_path . 'extension.inc');
		include_once($phpbb_root_path . 'common.'.$phpEx);
		return true;
	}
Thanks,
Greg


Locked

Return to “phpbb - Joomla! Integration”