Help - Search - Members - Calendar
Full Version: Mysql Help: Working On Phpbb Mod
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
EMOruffino
Hey everyone...

I'm currently working on a AJAXIM / phpbb3 integration, and i have the integration 1/2 complete.

I am MYSQL illiterate, and need some help.

phpbb- http://phpbb.com

ajaxim - http://www.unwieldy.net/ajaxim/

official thread = http://www.phpbb.com/community/viewtopic.p...70&t=587260

if any one wants to help, ill be glad to include you on the mod's "team" or in the credits...
Luke
I volunteer!!! After my recent MySQL issues I assume you don't want me... fine. Well I' volunteer to test for bugs as you know I'm great at that job, but I still like to keep my hands clean. I'll leave the squashing up to you! tongue.gif
EMOruffino
here is the thread on the phpbb forums, any help would be appreciated!

http://www.phpbb.com/community/viewtopic.p...70&t=587260
MrTouz
you want to include the phpbb database inside your content ?

CODE
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
$mode = request_var('mode', 'allmaps');
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');


this is from my annoncer.php page which is an external page for my phpbb, i used the same database and the user content so it has the same permissions as a forum smile.gif

i think the part you mostly need is :

CODE
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');


[/code]

oh btw this is for a rc2 but i changed to rc5 and it worked correctly... so i think its gonna be same for rc6 7.. and so on...


hope its what you wanted.
EMOruffino
this is the test site:

http://ajaxim.contentzero.com


http://ajaxim.contentzero.com/im

so the above will integrate the two databases?

What im trying to do, is to have the IM script work of the phpbb user table instead of its own. So the users can user their login name and pw to IM others on the forum.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.