Mehdi's Bridge for Phpbb2 (not 3 yet ...)

Discuss the integratoin of phpbb and Joomla! here.

Moderator: General Support Moderators

Forum rules
Locked
maffia100
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jul 10, 2006 5:26 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by maffia100 » Tue Aug 22, 2006 11:45 am

Ok, thnx anyway.. And thnx for a realy great bridge, its by far the best one  ;D

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Fri Sep 08, 2006 4:36 pm

8 september 2006, redirection bug fix.
The only issue I know yet related to this bug is: see this post (little arrow bug)
But this might have a more serious impact. Update anyway.

FAQ updated.
especially question related to define ( 'RG_EMULATION', 0 )
and also: How can I set different modules to be shown with my phpbb forum? How I can assign a different template ?  etc ....

quickmerge script improved (errors are more explicit)

maffia100
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jul 10, 2006 5:26 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by maffia100 » Fri Sep 08, 2006 5:35 pm

Thnx alot for the update  ;D
Last edited by maffia100 on Fri Sep 08, 2006 5:37 pm, edited 1 time in total.

theflori
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Sep 09, 2006 4:53 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by theflori » Sat Sep 09, 2006 5:09 pm

i think i have problems with the CSS, the phpBB don't show any graphics!

my url: http://87.230.6.119
forum url: http://87.230.6.119/phpBB2

my config:



i hope anyone can help me!

gzip is disabled! browser cache is empty...!
You do not have the required permissions to view the files attached to this post.

maffia100
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jul 10, 2006 5:26 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by maffia100 » Sat Sep 09, 2006 7:43 pm

You could try to link to your default template class, template_css.css. like this:

$patternCss="%JOOMPHPBB_STYLESHEET%"; //at least 3 characters, don't enclose in brackets
$integrateCss="template_css.css";
$defaultCss="subSilver.css";

and put the css code in there from the subSilver.css
Last edited by maffia100 on Sat Sep 09, 2006 7:44 pm, edited 1 time in total.

Etherfast
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jul 12, 2006 10:13 pm
Location: Bucharest, Romania
Contact:

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by Etherfast » Sun Sep 10, 2006 10:26 pm

Hello guys.
First, I'd like to thank Mehdi for this Bridge.

Second, I already have a Joomla installation and a clean (no users, no posts) phpBB forum.
I have a database with phpBB users/posts that are also merged in Joomla. (from the phpBB component)

The only way I can perform operations to my SQL database is through phpMyAdmin (including SQL query). However, I'm not too good in SQL.
What should I do in order to insert the users AND the posts in the new phpBB forum?

Also, a few other bugs I can't sort at this moment,
I've tested this Bridge on two website (http://etherfast.evogames.ro and http://gameover.evonet.ro) . The first one has an all-page-wide template with a left column, and the second one is stretched in the middle with a left column. On etherfast, when I click FORUM, the website's template changes, and there are no more graphics at all (take a look). On gameover, everything is ok with the template, but the forum is too narrow in the middle of the page and looking inestethical.

LATER EDIT:
I sorted out the template issue (it was from the .css files) and I merged the both, but however, the website logo isn't displaying, aswell as an important module of the website (Who's online) isn't loading.
Is there any template file I have to edit?
Last edited by Etherfast on Sun Sep 10, 2006 10:44 pm, edited 1 time in total.
Signature rules: http://forum.joomla.org/index.php/topic,65.0.html
Only exact url's allowed

User avatar
dtab55
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Jun 25, 2006 5:21 pm
Location: Alexandria, Virginia
Contact:

[solved]Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by dtab55 » Tue Sep 12, 2006 4:53 pm

Problem -> quickmerge

Everything else works flawlessly, except for the quick merge.  I execute it, and it finnishes with a blank page.  None of the phpbb users are put into joomla.  Anyone else who registers works fine, just not the originals?  Any ideas?

[solved] Make sure you are using the updated download.
Last edited by dtab55 on Tue Sep 12, 2006 5:22 pm, edited 1 time in total.

ShadowMaster
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jul 11, 2006 4:46 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by ShadowMaster » Mon Sep 18, 2006 2:36 am

I've just downloaded and installed the bridge, and am having the following issue.

When I click on Reply from a post in the forum, the post a reply box comes up fine, but in the topic review box where it should show the original message that I am replying to, I get:


Fatal error: Call to undefined function: checkinputarray() in /homepages/xx/xxxxxx/htdocs/awttw/forums/joomphpbb_engine.php on line 203. I put the x's in there to mask part of the url, it does display the proper path.

I have Joomla 1.0.11 installed, with a fresh install of phpBB 2.0.21 with only the default message in the forum.

Can I get a little help on this??
:'(

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Sun Sep 24, 2006 4:13 am

hi shadowmaster
Fatal error: Call to undefined function: checkinputarray()
Well, I think you didn't update globals.php file, that would explain ...

Eeef
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Sun Sep 24, 2006 1:11 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by Eeef » Sun Sep 24, 2006 1:18 pm

Mehdi, quick noob question.

I've got an existing forum, but want to expand it to a joomla driven site. If i install the bridge, will all my phpbb users be 'joomla' users? If not is there any easy way round it?

ta

Eeef

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Sun Sep 24, 2006 1:42 pm

will all my phpbb users be 'joomla' users? If not is there any easy way round it?
A script is provided to copy all phpbb users into joomla database (i.e same username/password/email).
Note we assume , that all users won't play at changing their username  in joomla,
before visiting the forum at least once (being logged in joomla).
Because the first time (i.e first visit to forum being logged),
phpbb user/joomla users are bound according to username.

Eeef
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Sun Sep 24, 2006 1:11 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by Eeef » Sun Sep 24, 2006 2:03 pm

Thanks for that. I realised I'd posted this in the wrong place so put it in a new post. It's got some more questions in it, would you mind having a look?

http://forum.joomla.org/index.php/topic,97753.0.html

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Sun Sep 24, 2006 3:35 pm

mehdi , thanks about this bridge !

Quick question : if i dont need to "join" my joomla Users and my PhpBB users [ i just want phpbb users ]  can i skip the bridge , install phpbb with no mods and hacks and changes and just link to it from my joomla site to a new blank browser window?

I really dont need Joomla user management ...

Thanks in advance for your reply

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Sun Sep 24, 2006 4:22 pm

hi se-eida,
Quick question : if i dont need to "join" my joomla Users and my PhpBB users [ i just want phpbb users ]  can i skip the bridge , install phpbb with no mods and hacks and changes and just link to it from my joomla site to a new blank browser wind
you mean you are interested only by visual integration or what ?

I didn't implemented a "visual integration only" bridge.
Maybe I'll do it later ...

As soon as you bridge the forum,
there's a kind of master/slave scheme for login access in phpbb, where joomla stay the master.
In order to connect to the forum, the user must exist in joomla (although it is systematically duplicated in phpbb, if there's no corresponding phpbb user)
However, managements of rights stay  for each user independent in phpbb and joomla.
For instance you can have an administrator in joomla, who have just a  "basic" registered account in phpbb.

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Sun Sep 24, 2006 4:31 pm

mehdi thanks for the quick immediate reply!...

yes i read this on the dedicated FAQ .. i see lots of public request for this "just visual implementation , not user DB linking" hehe ! :)

anyway , what i was thinking was moving to a completely independent installation of phpbb and just linking it to a menu item...

i must admit though that the visual integration was pretty nice... but the redirection and Administation Panel access problems seem hard to resolve ! ... [although some of the Redirection issues solved when i "$joomIntegrate = false. "

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Sun Sep 24, 2006 4:43 pm

anyway , what i was thinking was moving to a completely independent installation of phpbb and just linking it to a menu item...
If it's the question, then there's no need to ask me, you just don't use any bridge at all.
but the redirection and Administation Panel access problems seem hard to resolve ! ...
Some people complain of problems, but I hope it's not the majority.
It would be a bit discouraging to see people people requesting "visual integration" only,
just because they have a basic redirections problem. Most  of the times problem are solved by reading the FAQ.
Some people are less lucky though .... Anyway uninstallation is straightforward : just restore old phpbb file.
It doesn't harm to try my bridge anyway !

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Sun Sep 24, 2006 4:46 pm

yes mehdi , no direct or indirect bad comment about your work of course , i found some redirection hints in your forum i'll try them and i ll see how it goes!

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Mon Sep 25, 2006 6:06 am

mehdi could you point me to a link where the redirection issue is dealt with ?
[when i login after hiting the se-eida.com/forum link it doesnt take me to the forum index but to the page index]

and then , if i have the template implemented phpbb the redirect doesnt work even at posting e.t.c.


thank you!

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Mon Sep 25, 2006 12:03 pm

hi
I've just played withyour install,
since I was not sure about which redirection issue you are talking off (so many redirections for this bridge to work).
I'm a bit surprised to see the page "if your browser does not redirect automatically click here".
I would personally say "if your browser does not redirect automatically, then change your browser"  :laugh:
Joomla istelf perform a redirection when you login, and I don't see the point in
displaying such page.

So I guess your redirection issue is about this:
http://www.mehdiplugins.com/forum/viewt ... =2194#2194
where I explain how to hack core joomla com_login.
cheers

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Mon Sep 25, 2006 12:09 pm

I forgot a thing
how did you disable user detail profile editing for joomla part , se-eida ?
I mean of course when I type the link myself i.e
option=com_user&task=UserDetails&Itemid=888888

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Tue Sep 26, 2006 5:03 am

ok i just saw your edit on the mehdiforum telling where the change is..hehe..i'll try that later
this is one issue , the other is that when the forum is visually implemented in the joomla template it doesnt redirect after posting..:( [IE7 RC1,IE 6]

ps:i didnt understand the last question!..sorry

------------------------
edit : made the changes :

Code: Select all

if( !$my->id && strcmp($phpbbCurPage, "login")==0 && !isset($_GETPOST['logout']) ) {
			    $target = "/index.php?option=com_login&Itemid=88888888&backapp=1";
			    header('Location: '. $joomUrl . $target);
			    exit();
to /forum/joomphpbb_engine.php

and

Code: Select all

$params->def( 'back_button', $mainframe->getCfg( 'back_button' ) );
$backapp=intval(mosGetParam( $_REQUEST, 'backapp')); 
if($backapp==1) $params->def( 'login', 'http://link-to-the-forum' ); 
else $params->def( 'login', $mosConfig_live_site );
$params->def( 'logout', $mosConfig_live_site );
to /components/com_login/login.php

but still the redirection after LOGIN doesnt send you to the forum index but to the page index
Last edited by se-eida on Tue Sep 26, 2006 10:55 am, edited 1 time in total.

Force
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon May 29, 2006 1:34 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by Force » Tue Sep 26, 2006 12:10 pm

hey

i got a problem with the bridge {PHPBB_BODY_HTML},

i have joomla 1.0.11, than i have installed phpbb 2.021 and after this the phpbb joomla bridge.
I followed the instruction from mehdis website ... everything works fine.

Now i linked the phpbb component inside joomla administration to make
a navigation point and a sitemap entry.

If i click at this navigation point i got a site with my template and the code {PHPBB_BODY_HTML},
see here.

If i go at the the direct path http://cms.floeha.de/forum/ it works
but i will need the direct link because of the Itemid.  :-\

I also removed the trailing slash in phpbb administration for the script path
and i also disabled cookies.

can anybody help me pls

here is my joomphpbb_conf.php

Code: Select all

$joomUrl="http://cms.floeha.de"; //no trailing slash at the end
$joomRel= "../"; // relative path from phpbb,unlike previous setting this one should end with a slash
$joomIntegrate = true;

//-------------------
$patternCss="%JOOMPHPBB_STYLESHEET%"; //at least 3 characters, don't enclose in brackets
$integrateCss="subSilverInteg.css";
$defaultCss="subSilver.css";

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Wed Sep 27, 2006 5:35 pm

@ se-eida
sorry I almost forget this post.
I'm not sure you took a close look at the hack,
when I say to  write: http://link-to-the-forum
Off course "this is link to your forum", you don't have to copy this "as it is".
the other is that when the forum is visually implemented in the joomla template it doesnt redirect after posting.
I don't understand what this mean, or what redirection you are expecting.
I've just tested, this work exactely the same way as if phpbb was not bridged.
ps:i didnt understand the last question!..sorry
well  after login,
I cannot go to:
http://www.se-eida.com/index.php?option ... id=8888888
and change my username for instance.


@Force
If i go at the the direct path http://cms.floeha.de/forum/ it works
This is how it is intended to work.
but i will need the direct link because of the Itemid.
See the faq, question: "How can I set different modules to be shown with my phpbb forum? How I can assign a different template ? Menu item is not highlighted ! etc ...."
and i also disabled cookies.
cookies are a requirement for joomla to work and thus also for the bridge.

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Wed Sep 27, 2006 5:42 pm

sorry ! stupid mistake !corrected this..but still no redirection :( [you can check it out @ http://www.se-eida.com/forum ]

when i was talking about "redirection" in general i meant after POSTING and in other cases [ loggin to the admin panel , etc]

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Wed Sep 27, 2006 6:08 pm

I think you didn't hack properly the com_login component.
Anyway the login module works fine...
You can just remove the login link from the forum,
and force your users to use the login module of Joomla.

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Wed Sep 27, 2006 6:14 pm

I attached the 2 files

No it doesnt work.. when you LOGIN from PHPBB login module it still sends you to the root Index and not to the Forum index.[both IE,FireFox]
You do not have the required permissions to view the files attached to this post.

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by mehdi » Wed Sep 27, 2006 6:24 pm

all right, hack the login.htm.php file instead,
in function loginpage

replace the line:
$return = $params->get('login');
by :
$backapp=intval(mosGetParam( $_REQUEST, 'backapp'));
$return= $backapp==1 ? "http://www.se-eida.com/forum/" : $params->get('login');
this times this should work.

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Wed Sep 27, 2006 6:34 pm

i replaced it with the 2 lines ..
but unfortunately..

se-eida
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sun Sep 24, 2006 3:32 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by se-eida » Wed Sep 27, 2006 6:39 pm

WORKING!!!!!!!!!!!!!!!!!!!!!!!!!
MEHDI RULEZ

Force
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon May 29, 2006 1:34 pm

Re: New Bridge for Phpbb 2.020 available (from Mehdi)

Post by Force » Thu Sep 28, 2006 6:02 am

@Force
If i go at the the direct path http://cms.floeha.de/forum/ it works
This is how it is intended to work.
but i will need the direct link because of the Item id.
See the faq, question: "How can I set different modules to be shown with my phpbb forum? How I can assign a different template ? Menu item is not highlighted ! etc ...."
and i also disabled cookies.
cookies are a requirement for joomla to work and thus also for the bridge.
[/quote]

thx mehdi, now i understand it,
and i have not disabled cookies for joomla,
i have only disabled cookies in the forum administration  8)
Last edited by Force on Thu Sep 28, 2006 6:11 am, edited 1 time in total.


Locked

Return to “phpbb - Joomla! Integration”