phpBBforum Integration module
vb - February 3, 2008 - 14:56
phpBBforum Integration module provides integration with phpBB3 Forum http://www.phpbb.com/.
Initial release http://drupal.org/project/phpbbforum
phpBBforum Integration module provides integration with phpBB3 Forum http://www.phpbb.com/.
Initial release http://drupal.org/project/phpbbforum
phpBBforum Integration module features
Features:
usage
I have installed the phpBBforum module and I have it configured to show the forum in a frame on the drupal page. However when I click the menu link it says:
The test in the settings all passed. Why is it not finding the forum?
I have installed phpBB3 to phpBB3/ inside the drupal directory.
Both Drupal 6 and phpBB3 are fresh installs with *only* this module added, no other changes made.
EDIT: I found the problem. It's in phpbbforum.module line 690:
$output = '<iframe id="forumFrame" src="'. $path .'"; // name="phpbbforum"';That $path only outputs /phpBB3 as the url and gives a 404 error.
Which brings me to the next issue. When a user creates an account in Drupal, they get an error saying "Unable to create new phpBB user: error:" I have the hidden authentication block activated, and all the settings are set as you describe in the INSTALL.TXT. Why is this not working?
i had the same problem even
i had the same problem
even if phpbb3 is instaled under /drupal/phpbb3 and passed the test i had to move the phpbb3 directory directly at the root to make the inframe works
hope it helps
pht3k
First of all make the module work in the window
1.First of all make the module work in the window mode and make sure it works well.
Download the latest dev version from drupal.org, replace files in the module dir /phpbbforum
Toworrow i will you give you futher instructions but only after we will do 1st without errors.
>When a user creates an account in Drupal
Which account, how many letters in name and password. How about the valid email address. What i could say if you say only it is no registering.
Did you check user registration settings in phpBB?
Go to the demo http://veberu.hostfabrica.ru/ and test that account. It is the same version under Drupal 6.
Test all work.
If the error occurs i will fix it.
I will download the latest
I will download the latest release and try it. However, just to let you know, I went to the site you link to and created an account and it gave me the same error:
Unable to create new phpBB user: <name> error:I have just registered account
I have just registered account bencko. Go and see.
I repeat.
"Which account, how many letters in name and password. How about the valid email address. What i could say if you say only it is no registering."
You do not answer me. May be it is my english.
Please, could you tell me what username, mail, password did you enter? How i can help you.
I think I figured out what
I think I figured out what the problem is. If you are using phpbb in an iframe, the module expects the directories to look like this:
/public_html/drupal
/public_html/phpBB3
rather than:
/public_html/drupal/phpBB3
Once I installed it like that, it worked fine. It seems kind of odd, but at least it fixed the 404 error and the registration problem. Is there any way to make it so that phpBB3 can be installed inside the drupal directory?
I did not test
I did not test /public_html/drupal/phpBB3
On Demo site works inside
Drupal - ...../public_html/
phpBB3 - ...../public_html/phpBB3
Oh, I see. That works for
Oh, I see. That works for me then, because that's how the site will be once I move it out of testing and into production.
I'm just glad that I got it working. Thanks!
The requested URL /phpBB3 was not found on this server.
I am having this same issue, you stated that the problem was in that line, but you did not say what was done to fix it? Did you find a way to fix the issue? Everything else works just fine.
Thanks in advance.
jeremy
EDIT: I found the problem. It's in phpbbforum.module line 690:
$output = '<iframe id="forumFrame" src="'. $path .'"; // name="phpbbforum"';
That $path only outputs /phpBB3 as the url and gives a 404 error.
help me
http://www.befolks.com
http://drupal.org/node/217369#comment-1014123
will there be anyone to help me..
I would open a Support
I would open a Support Request instead of posting on this thread.
A lot of questions are not being answered on the thread.
Open a new ISSUE for this module and post your question there.
jeremy
How to make phpBB work in frame
1. Go to Administer › Site configuration › phpBBforum settings
phpBB display way:
In the window
X In frame inside Drupal page
Save configuration
2. Go to Administer › Site configuration > Performance
Clear cached data
3. Go to Administer › Site building › Menus › Primary links
See Menu item phpbbforum (disabled)
Enable it.
Save configuration
or
3. Go to Administer › Site building > Menus > Navigation
See Menu item with blank title in state (Disabled)
You may enable it if you do not want phpbbforum in Primary links
If you enable it your forum page will be with title.
Reset will help to remove the page title if you disable it back.
Main page and link to phpBB in frame is
phpbbforum
All links from blocks will have that link instead of real phpbb.
3. Go to Administer › Site
3. Go to Administer › Site building › Menus › Primary links
See Menu item phpbbforum (disabled)
Enable it.
Think this is my problem..i dont see it, there is nothing.
I think im at 99% of the right configuration but somewhere it seems i have missed something...
what works:
I can make account on phpbb3 forum, and then log to drupal, it authenticates with phpbb3 dbase and works
When i make account from drupal it says: no access to phpbb3 dbase to make account.
Also the iframe does not work, cant find link to phpbb3.
Im not really worried that it doesnt work within drupal, but i would like to have drupal be able to make accounts w/o getting error no access forum db ;-)
no rush no hurry, and thanks for the nice mod, im sure mine will work soon too. (hopefully ;-))
First go
First go
3. Go to Administer › Site building > Menus > Navigation
See Menu item with blank title in state (Disabled)
if you do not see this item then
2. Go to Administer › Site configuration > Performance
Clear cached data
If you see Menu item with blank title in state (Disabled) you may go to
3. Go to Administer › Site building › Menus › Primary links
See Menu item phpbbforum (disabled)
If you do not see it, simple enter it with path phpbbforum
(may be i entered it before but forgot)
A couple of attemts and everything will be ok.
>When i make account from drupal it says: no access to phpbb3 dbase to make account.
Go to demo site and repeat, what it will say?
I do not have this message.
You should see in phpBBforum settings
phpBBforum settings
phpBBforum status
Successfully locating phpBB installation.
Successfully locating sites/all/modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
Successfully authenticated phpBB user: admin.
If not, something wrong in your settings and it is no sense to go further.
its working now...my bad for
its working now...my bad for not reading exact whats in the install text ;-)
How to change path phpbbforum in frame
Add URL aliases. Core module Path must be enabled.
Main page and link to phpBB in frame is
phpbbforum
To change this name you may add URL aliases
Add next URL aliases (System path -> URL Alias)
For the path 'forums'
phpbbforum -> forums
phpbbforum/viewtopic.php -> forums/viewtopic.php
phpbbforum/viewforum.php -> forums/viewforum.php
phpbbforum/viewonline.php -> forums/viewonline.php
phpbbforum/memberlist.php -> forums/memberlist.php
phpbbforum/posting.php -> forums/posting.php
phpbbforum/search.php -> forums/search.php
phpbbforum/ucp.php -> forums/ucp.php
phpbbforum/mcp.php -> forums/mcp.php
phpbbforum/faq.php -> forums/faq.php
phpbbforum/report.php -> forums/report.php
phpbbforum/adm/index.php -> forums/adm/index.php
Administer › Site building › URL aliases › Add alias
Existing system path: http://example.com/phpbbforum
Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.
http://example.com/forums
Specify an alternative path by which this data can be accessed.
For example, type "about" when writing an about page.
Use a relative path and don't add a trailing slash or the URL alias won't work.
All links from blocks will have that path 'forums' instead of system phpbbforum.
If you prefer name phpbbforum add these aliases
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
phpbbforum/viewforum.php -> phpbbforum/viewforum.php
phpbbforum/viewonline.php -> phpbbforum/viewonline.php
phpbbforum/memberlist.php -> phpbbforum/memberlist.php
phpbbforum/posting.php -> phpbbforum/posting.php
phpbbforum/search.php -> phpbbforum/search.php
phpbbforum/ucp.php -> phpbbforum/ucp.php
phpbbforum/mcp.php -> phpbbforum/mcp.php
phpbbforum/faq.php -> phpbbforum/faq.php
phpbbforum/report.php -> phpbbforum/report.php
phpbbforum/adm/index.php -> phpbbforum/adm/index.php
You cannot enter directly
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
the paths should be different when creating alias but they can be edited.
First create alias with different paths like
phpbbforum/viewtopic.php -> phpbbforums/viewtopic.php
Save, then edit to the same paths
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
It works with or without Clean URLs enabled.
Still won't iFrame...
I have tried it both WITH and WITHOUT using the URL Alias, pointing phpbbforum to phpbb3
If I DON'T use Alias, it gives me the "Not Found
The requested URL /phpBB3 was not found on this server."
If I DO use Alias, it just opens phpBB3 in place of the entire site, not within the iFrame.
All my settings are exactly as described and set up in the instructions and on this page.
Any thoughts as to why this is happening?
jeremy
1. If your forum under
1. If your forum under /phpBB3 your alias cannot be /phpBB3, choose another name.
2. Check in Menus phpbbforum item without title (Disabled).
My forum is /phpbb3 but I
My forum is /phpbb3 but I have aliased it as /phpbbforum and it still doesn't work.
There are NO errors anywhere else, all the phpbb settings are perfect, everything is "successful" no errors. It just won't load the forum In Frame.
Existing system path: * http://localhost/megalithrecords/www/phpbb3
Path alias: * http://localhost/megalithrecords/www/phpbbforum
If I enter this alias, then the forum just opens up in the whole window and replaces the entire site, it does not open within the frame.
1) Remove this alias I'd
1) Remove this alias
I'd never said do this, i have said that you may set alias from page phpbbforum to something else (not phpBB3 in your case)
page phpbbforum can work without an alias, see readme and posts here
2) do no use localhost as domain, use real name like example.com even in test purposes.
the work under localhost is different und is not supported by the module, i have never tested it and do not see any sense to fix somewhat if there will be the bugs with localhost.
Why should 'localhost' make
Why should 'localhost' make a difference? I don't think that 'localhost' is the issue. But I will try it and see.
This may be OBE, but
I installed this on a local test computer using Apache2Triad under localhost and everything worked fine.
1 Installed Drupal
2 Installed phpBB
3 Installed phpBB module
4 Activated the module
5 copied the functions_user file
6 set phpbb settings under the Drupal admin
7 logged off & back on and everything worked.
Will this module work with
Will this module work with phpBB modules if we install them?
I think so but i did not
I think so but i did not check. This version of the module did not affect phpBB code at all exept of functions_user.php.
If your modules are changing functions_user.php you should analyze this changes and decide wheter to install your modules before or after replacing functions_user.php and maybe you should patch functions_user.php at hand (see my function user_delete).
I was trying to support gender module. Should work.
I am really sorry if it is seems a stupid question but I have to
Hi
I've just read the whole thread more then once and did read the INSTALL.txt file to know how to install this module but really still not able to do so.
The instructions mentioned in the file is really not clear to me at all, so may you please just make it simple?
For example ... which comes first phpbb or drupal?
And there are many instructions mentioned on the file that are really not clear for me
So any one may please simplify this instructions.
Thanks
phpBB user: Anonymous. You are not authenticated in phpBB now.
Hey sorry it might be kinda a dumb questions. Im 14 and in webdesign working on building a podcast so i don't know too much about phpbb and Drupal.
How can i fix this so it says my username?
If you need more info please tell me.
Thanks so much for your help!
Confused...
I really would like to have this working on my site, but have yet to attempt it...due to the fact the INSTALL.txt file is so difficult to follow (understand).
Drupal's core forum leaves a lot to be desired...and integrating another forum into Drupal, such as SMF or phpBB, would be great.
Here are the questions and problems I am having with your module:
I'm really not knocking this module...
It's just that after trying to understand the INSTALL.txt file...and reading this thread...I'm even more confused...and afraid to even attempt it since my site is live and I'm not using a test site. I'm also a little leary of attempting the install...since I may not be able to revert to my current forum, if there should be any installation issues that cannot be fixed.
I know that others have got this to work, but they may be a little more savvy than I. So let's assume I'm new to this (which I am) and hold my hand to walk me (or anyone else for that matter) through this.
Like I said...I currently have Drupal installed in the root of my server located at /public_html/.
Now what?
Thanks for all your help guys...
No Access to /forums/
Hi everyone,
I've read through most of this thread and couldn't find my answer.
I'm using D6.2, phpBB3.0.1, and beta3 of the integration module. No matter what I do, I cannot seem to get the 'blank' Navigation link to show up. I did it once, but I had no clue how it 'randomly' appeared. Also, when I attempt to make a Primary Link going to /forums/ the system returns me I do not have access to this location and cannot create the link.
Thoughts?
Thanks all.
authentication problem
Ave,
I have a problem with bridge. I read the install.txt, this topic, but it seems that my problem is unique: drupal can connect to the phpBB3 forum database, but authentication fails.
suppose the drupal is installed at: "http://drupal/" phpBB3 forum was installed from the address "http://drupal/phpBB3/" Both works standalone.
at http://drupal/admin/settings/phpbbforum the phpBBforum status:
Successfully locating phpBB installation.
Successfully locating sites/all/modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
phpBB user: Anonymous. You are not authenticated in phpBB now. Please login to phpBB and test again.
Both drupal, and phpBB3 have the same password and admin username. (not "admin")
I tried logging both drupal, and phpBB3 forum, than running "phpBB authentication test". Clearing cache, and again running the test. running update.php, and again test, clearing cache, and test...
Everything fails.
The installation is correct. functions_user.php in phpBB3 is overwritten, As you can see from above phpbb_api.php is found.
bridge (phpbbforum) is configured to display it in the new window:
"phpBB display way:
X In the window
In frame inside Drupal page"
When I turn "in frame" mode, there's no link "phpbbforum" at http://drupal/admin/build/menu-customize/primary-links
When I turn any phpBBforum bridge element (for example phpBBforum: Hidden authentication) at the Block menu I got logout, and cannot login to drupal, but I can login to phpBB3 forum without any problems. I have no php errors in the logs
I hope I was clear ^^ If not, ask. sorry, but English is not my native language.
SOLVED
It was problem with phpBB3 cookies. Changed it to default and the problem with authentication is gone.
Almost the same problem
I've exactly the same problem.
What do you mean by problem with phpBB3 cookies?
When I installed phpBB3, I left the cookies at their default values and didn't change anything.
I've tried installing phpBB3 database tables into my drupal database. Tables were prefixed "phpbb_". Didn't work.
I've tried installing phpBB3 tables into it's on database. Didn't work too.
Same problem-> "Anonymous. You are not authenticated in phpBB now. Please login to phpBB and test again."
I'm using same username and password for both drupal and phpBB3.
Anyone has any ideas?
Cron Password Sync Same Users Over and Over
[edit] moved further down the thread...
PHPBB OG integration
Is there anyway I can integrate the PHPBB forums into Organic Groups so that I can use PHPBB forums. The default forums in Drupal isn't good.
ucp.php?mode=login Page Not Found
phpBB 3.0.2 & Drupal 6.3 & phpbbforum 6.x-1.03
Is the module supposed to authenticate you in both systems when you sign into one? So if I sign into Drupal should I be signed into phpBB automatically, and vice versa? The module recognises me when I am signed into both systems and I don't have any errors, but when I try to log into drupal with an account from phpBB it says the account does not exist.
Anonymous. You are not authenticated in phpBB now
I love Drupal - I love phpBB3 - I'd love to integrate the two.
Installed phpbbforum-6.x-1.03 in Drupal 6.4 as per directions in INSTALL.txt.
I keep getting the dreaded:
"phpBB user: Anonymous. You are not authenticated in phpBB now. Please login to phpBB and test again." error
Drupal 6.4 and phpBB3.0.2 have the same admin name "Dummy" and password.
Installed phpBB3 3.0.2 two ways:
1) Same level as Drupal 6.4
2) Inside Drupal 6.4
I followed the directions in INSTALL.txt and copied over:
1) functions_user.php
2) functions_user-3.01 (and made it functions_user.php)
I've cleared caches, read all the posts here and still get the above error message.
Can anyone give me some suggestions?
Thanks for any feedback...
Hi VB
http://www.befolks.com
i am a beginner to drupal and have recently launched my site.
i am using drupal 5.10
i don hv any idea abt installing PHPBB.Got little bit confused with all those posts here
To my assumptions are correct,
to run phpbbforum i need
i)to download phpbbforum. i got it from http://vgb.org.ru/download
ii)downloaded phpbb3 from the official site.
placed PHPBB33 in webserver/apache/htdocs/drupal5.10/phpbb3
then i did as it told as my reference here in http://drupal.org/node/217369#comment-870844
WHEN i was about to copy functions.user.php as it was said before from the above link it displayed do i need to copy and replace the file as it was already there a file with the same name in weberver/apache/htdocs/drupal5.10/phpBB3/includes .and i replaced it.
then copied the phpbbforum to drupal/all/sites/modules/
then did i told.
then went to Administer->Site Configuration->phpBBforum settings
once i click it it displays as i have to install it.. got no idea after this
i have attached the screen shot..
http://drupal.org/files/issues/Capture_21.JPG ( i am testing this in my local server)
pls could u help me wat should i do after this and to run phpforum on my site..
hi vb
http://www.befolks.com
http://www.befolks.com
i am a beginner to drupal and have recently launched my site.
i am using drupal 5.10
i don hv any idea abt installing PHPBB.Got little bit confused with all those posts here
To my assumptions are correct,
to run phpbbforum i need
i)to download phpbbforum. i got it from http://vgb.org.ru/download
ii)downloaded phpbb3 from the official site.
placed PHPBB33 in webserver/apache/htdocs/drupal5.10/phpbb3
then i did as it told as my reference here in http://drupal.org/node/217369#comment-870844
WHEN i was about to copy functions.user.php as it was said before from the above link it displayed do i need to copy and replace the file as it was already there a file with the same name in weberver/apache/htdocs/drupal5.10/phpBB3/includes .and i replaced it.
then copied the phpbbforum to drupal/all/sites/modules/
then did i told.
then went to Administer->Site Configuration->phpBBforum settings
once i click it it displays as i have to install it.. got no idea after this
i have attached the screen shot..
http://drupal.org/files/issues/Capture_21.JPG ( i am testing this in my local server)
pls help me wat should i do after this and to run phpforum on my site..
Wow!
This looks to be a great piece of work and I am sure that many people will benefit from it.
I have two questions before I can try to install this on my test site:
1) My Drupal is already bridged to Gallery 2. Do you expect any problems when used in association with this bridge?
2) How does this work with Private messaging - obviously phpBB has it's own system but I don't want to replace the one in the core as this is useful for articles - I don't want two inboxes for each user!
Many thanks,
Gareth
Go ahead
1) i am sure, no problems
2) you may disable phpBB Personal Messages block
Just installed on my site.
Just installed on my site. I am running drupal 6 RC3 and phpBB latest version.
Changed phpbb install directory setting to "phpbb" instead of the default "phpBB3"
Get this error on the module settings page now:
fatal error: Cannot redeclare user_delete() (previously declared in /home/chichog8/public_html/widowssonschicago/modules/user/user.module:1550) in /home/chichog8/public_html/widowssonschicago/phpbb/includes/functions_user.php on line 565
FYI
Read INSTALL.txt 2) Install
Read INSTALL.txt
2) Install phpbb mod phpbbdrupal.
Go to the directory .../phpbbforum/contrib/phpbbdrupal/
See and follow the instructions in phpbbdrupal/install.xml (not completed)
You must at least patch file functions_user.php to avoid name conflict
in function user_delete.
You should do this
You may simple to copy content of directory phpbbdrupal/root/ to your phpbb
root directory.
Works. Thanks!
Works.
Thanks!
had same problem
but i dont know how to follow your instructions.
1. Read install.txt? What install.txt?
2. cant find a mod to phpbb called "phpbbdrupal" - google search produces nothing valid, nor do searches
on phpbb.com, drupal.org, or phphacks.com - where is this module for phpbb? Can I get a url please?
thanks again,
Grant
Installing and INSTALL.txt
Ave,
download the mod for drupal phpbbforum. At this day (for drupal version 6.x) the latest is here: http://ftp.drupal.org/files/projects/phpbbforum-6.x-1.0-beta4.tar.gz
unpack it.
go to phpbbforum, read INSTALL.txt.
lets say that You have installed drupal at /home/www/drupal/ You should install forum in /home/www/drupal/phpBB3/
Than You have to move functions_user.php file, from /where/you/unpacked/phpbbforum/contrib/phpbbdrupal/root/includes/functions_user.php to /home/www/drupal/phpBB3/includes/functions_user.php
Or, You can move all content /where/you/unpacked/phpbbforum/contrib/phpbbdrupal/root/* to /home/www/drupal/phpBB3/
copy /where/you/unpacked/phpbbforum/ to /home/www/drupal/sites/all/modules/
login drupal, go to Administer->Site Building->Modules and enable the phpbbforum module
configure it at Administer->Site Configuration->phpBBforum settings
good luck.
Hi!
It's great works! Thanks for your work.
I selected drupal by this module.
But i want to search content on drupal with phpbb.
Is it works too hard?
i want to search content on drupal with phpbb
I did not analyze this and even cannot say if it is possible.
me too
i would love this too :)
How to connect?
What is the normal way to connect to phpbb from the main drupal site? What would I put in the menu item when I add one (just /phpbb_directory?)
Thanks,
Ted
Menu links to phpBB
If you have chosen the mode Dispalay way in the window, simple make link in menu to /phpbb
In the mode in the frame inside Drupal menu link is hardcoded /phpbbforum
It should appear in menu list with blank title or may appear in Primary links.
With a couple of attempts it appears or you may enter it. You may need to clear cache in Performance settings.
Hi!
I installed drupal 6.0 RC3 with this module.
It's working well.
But i saw error in My account menu.
Error message is
Fatal error: Cannot use object of type user as array in /home/xxxx/public_html/drupal/sites/all/modules/phpbbforum/includes/phpbb_api.php on line 229
What's wrong?
Have a nice day..
phpbb_api.php on line 229
Thanks for the issue.
Change the line 229
!empty($username) && $username_clean == utf8_clean_string($phpbb_user['username'])) {to
!empty($username) && $username_clean == utf8_clean_string($phpbb_user->data['username'])) {I will include this in the next dev release.
Updated
I have made a commit to HEAD Drupal 6. Within 24 hours it should be released.
You may download this or D5 dev version right now from http://vgb.org.ru/download page.
hi, this is a much
hi,
this is a much appreciated module
however i have this error:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of _phpbbforum_login_alter(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/.mauler/pht3k/example.com/drupal/sites/all/modules/phpbbforum/phpbbforum.module on line 228
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of _phpbbforum_login_alter(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/.mauler/pht3k/example.com/drupal/sites/all/modules/phpbbforum/phpbbforum.module on line 311
any idea?
thanks,
pht3k
Committed to cvs HEAD
Committed to cvs HEAD phpbbforum.module 1.7
take it from cvs or wait a bit till next automatic dev release
sweet! thanks!
sweet!
thanks!
Encapsulation in Drupal's theme
There is a way to encapsulate the phpbb3 in the drupal's theme ??
My dream is to preserv the drupal's menù, the drupal's header and the drupal's footer in the phpbb's page.
Is it possible ??
Thanks
yes
yes the module have the option to have the board in a frame
Problem with settings
Hello.
During the configuration of phpbbforum on drupal 5.6 and phpbb3 (6th point of INSTALL.txt) I obtain:
Error locating phpBB installation. Please fix your settings!
Error locating . Please fix your settings!
Unable to connect to the phpBB database. Please fix your settings!
But the path of phpbb is right (and the permissions are of webserver user)
What's wrong?
I'm trying also to modify these lines in drupal5/modules/phpbbforum/phpbbforum.module
//define('PHPBB_PATH', '/phpBB3/');
change to
define('PHPBB_PATH', '/forum/');^M
define('PHPBB_PAGE', 'phpbbforum');^M
But nothing changes...
My php board is in /www/site1/forum
My drupal is /usr/share/drupal5
Thanks a lot
See INSTALL.txt the paths
See INSTALL.txt the paths and what and where to enter.
Download the latest dev version from drupal.org, replace files in the module dir /phpbbforum
Do not change constants in the module, enter the right paths in the settings.
Yo have the strange layout.
Try first simple layout as in INSTAL.txt
www/drupalsite.com - your drupal installation
www/drupalsite.com/phpbb - your forum
I'm trying to display the
I'm trying to display the forum within the Drupal layout. When I do so whenever I click a forum title the iframe comes up with a 404.
The iframe is linking to www.domain.com/phpBB/
When it should be linking to www.domain.com/folder1/drupal/phpBB/
Is there no way of setting this or making changes to the code?
Thanks for a otherwise great module!
See this comment above
http://drupal.org/node/217369#comment-732147
Workaround: use a symbolic link
I had the same issue but fixed it by creating a symbolic link to the proper directory:
In a shell account: (DrupalDir is in MySite.com directory, phpBB3 is inside drupal directory)
cd MySite.com
ln -s DrupalDir/phpBB3 phpBB3
Unable to connect
"Unable to connect to the phpBB database. Please fix your settings!"
So, where do i define the db parameters ?
If your phpBB forum works in
If your phpBB forum works in standalone mode all you need it is enter the absolute path to forum
Example
phpBB forum root path:
/home/vb/www/example/public_html/phpBB3/
After some troubles with
After some troubles with READING ;-) yea read and I have read it 100 times again...its working now.
Just one piece of text i overlooked I almost decided to give up...
Well thx for the great mod.. Thumbs up!
Works for me too!
Great job vb! It works fine
If someone want to see it in action, you check http://www.slackware-italia.com
Just one thing: it seems to be working only with "phpBB3" settings as dir. I'm trying to change it in "forum" but doesn't work...
It should work. On my site
It should work.
On my site root is
/home/vb/www/example/public_html/phpbb/
I think this path will work either, i simple not see the reason why not.
/home/vb/www/example/public_html/forum/
Did you disable core drupal forum?
Try the test installation on local computer.
It is the only one path i'd not recommend /phpbbforum
Still no db connection
It does succesfully locate my phpbb install:
Successfully locating phpBB installation.
Error locating phpbb/phpbb_api.php. Please fix your settings!
Unable to connect to the phpBB database. Please fix your settings!
When I fix the path to the php_api.php I get a blank screen when selecting phpbbforum settings.
drupal is in /site
Phpbb is in /site/phpbb
Thanks for a great mod !
use phpBB3 instead of phpbb
piotrusc try to use phpBB3 instead of phpbb
(in my case I had "forum" instead of phpBB3 and I must rename it)
phpBB3 - default value that
phpBB3 - default value that is locating automatically
but you can enter
.../forum/
or
.../phpbb/
or something you like
Please see comment above and
Please see comment above and try again.
Sometimes Drupal is not like beeing in subdir /site without changes in .htaccess
Try combination
drupal is in .../
Phpbb is in .../phpbb
But you must know absolute path .../ to enter in phpBBForum settings .../phpbb/
Do not forget trailing slash.
Still no go
Ok, thanks for the suggestions. I've tried the following and in both cases it can locate my phpbb install but not connect to the db. Phpbb Settings in drupal gives a blank page:
/home/vhosts/mysite.nl/httpdocs/site/phpbb/
and
/phpbb/
result in both cases:
Successfully locating phpBB installation.
I dont feel like changing the paths to the default phpBB3 cause I think the mod should work with any path. Thanks again !
>I dont feel like changing
>I dont feel like changing the paths to the default phpBB3 cause I think the mod should work with any path.
I repeat again if you did not read this topic, it works in any path.
Your path settings should look like this
phpBB forum root path:
/home/vhosts/mysite.nl/httpdocs/site/phpbb/
Path to forum directory. Enter the full directory path where phpBB is installed.
Path to phpBB api file:
sites/all/modules/phpbbforum/includes/
Enter the full directory path where phpBB api file is located.
phpBB api file name:
phpbb_api.php
Enter phpBB api file name.
look at your subdir
sites/all/modules/phpbbforum/includes/
/home/vhosts/mysite.nl/httpdocs/site/sites/all/modules/phpbbforum/includes/
Are there files phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php?
If not, copy them to this directory. Delete them in other locations.
There should be only one installation of these files.
Does phpBB3 itself work in standalone mode?
www.mysite.nl/site/phpbb/
Reread INSTALL.txt again.
Tell me please what is unclear in INSTALL.txt? Which item?
Bad instructions bad english or you did not understand something.
Did you do step by step exactly as written?
What I should change. Suggest your words, understandable for everyone.
I simple do not understand why people cannot perform so simple installation.
Installation Instructions
Hi vb —
I also had troubles getting the phpBBforum module working with Drupal 6. I got phpBB3 working on my website in STANDALONE mode but when I attempted to access the “phpBBforum settings” admin area within DRUPAL 6, I got the error:
Fatal error: Cannot redeclare user_delete() (previously declared in [mywebsite.com]/d6/modules/user/user.module:1569) in [mywebsite.com]/d6/phpBB3/includes/functions_user.php on line 565
The phpBBforum module installation instructions in “Install.txt” are a bit hard to follow for those of us perhaps not as technically savvy. Also, unless I’m mistaken (and I sincerely apologize if I am!), it seems that English might be a second language for you. So, the instructions are a LITTLE hard to follow. I’ll go line by line and try to explain what’s hard to understand, and how I finally got it working:
This instruction was easy!:2) Install phpbb mod phpbbdrupal.
And this one was easy enough, too:Go to the directory .../phpbbforum/contrib/phpbbdrupal/
This is where it got hard to understand:You must at least patch file functions_user.php to avoid name conflict
in function user_delete.
For those of us not-so-technically-savvy, it isn’t obvious what the above comment means. “Patch,” could mean: “copy some code from File A to File B. Or “patch” could mean something else. Either way, “patch” makes one think more user intervention is required than is actually necessary!This next instruction is in broken English, which makes it hard to understand, ESPECIALLY for the technically-challenged(!):You may simple to copy content of directory contrib/phpbbdrupal/root/ to your phpbb
root directory.
This is where everything went wrong for me. I was eventually able to decipher this and get the module working. I suggest you change it something like this:
Copy the file “function_user.php” located here:
[phpbbforum > contrib > phpbbdrupal > root > includes] ... to ...
[phpbb3 > includes] ... replacing the existing “function_user.php” file there.
Then, copy the four icons named:
“icon_home.gif,” “icon_members.gif,” “icon_pages.gif,” “icon_ucp.gif” ... from ...
[phpbbforum > contrib > phpbbdrupal > root > styles > subsilver2 > theme > images] ... into ...
[phpBB3 > styles > subsilver2 > theme > images].
In addition, one must DELETE the “INSTALL” directory inside the phpBB3 directory post-installation. It is not specifically clear in the instructions THAT or how this should be done. Otherwise, errors continue to pop up within the admin > modules > phpbbforum page within Drupal.
HTH
thanks!
thanks!
Outstanding!
I just came across this and it was PERFECT!! Thanks!
thanks for the info
thanks for the info man..
http://drupal.org/node/310299
above is my previous issue..
i can get u til the 2nd step..
For those of us not-so-technically-savvy, it isn’t obvious what the above comment means. “Patch,” could mean: “copy some code from File A to File B. Or “patch” could mean something else. Either way, “patch” makes one think more user intervention is required than is actually necessary!wht u meant by patch man. do i have copy the functions_user file to functions-3.01.php or what should i do..pls say me i don have an idea..
and i copied those above to subsilver theme in phpbb3.. but what abt prosilver theme. should i leave it just like that??
i read in install.txt in phpforum module that i sud not copy along with subdirectory of contrib to /sites/all/modules/.. ( line 34-36)
then from line 31-32 as it said i replaced all the contents in phpbb3..(i tried without doing this step also but could not get the output)
then i went to admin\modules and enabled it..
the prob starts here
then i went to admin\settings\phpforum
it says as here in the photocopy http://drupal.org/files/issues/Capture_21.JPG
i went to phpbb3\config.php and opened it in editor
to my suprise its blank and got no content..
should it contain some values.. pls do help me.
Installs but then gives error
I have just installed this module, and followed the instructions well (I hope).
Anyway, after installing phpBB3 and then creating the menu item, when I load phpBB it gives me this error:
SQL ERROR [ mysql4 ]
Table 'phpbb3.phpbb_config' doesn't exist [1146]
[Edit: there is no phpbb3.phpbb_config table in my database. There is a phpbb3_config table...?]
I have set phpBB3 to load within a Drupal window, and it generates this error when I try to use the menu item to get to phpBB3.
However, if I go directly to the forum (aka /domain/phpBB3/), it loads up without issue.
What did I neglect to do?
Never met this situation and
Never met this situation and even do not know what to say at a glance.
Look at phpBB config.php
$table_prefix = 'phpbb_';
>What did I neglect to do?
I can imagine what you have done.
update
Yes, the table_prefix is set properly, and the phpBB config file looks golden. As I said, it loads fine when you go directly to the forum.
i.e.
http://www.spite.ca/drutest/ is the drupal side
http://www.spite.ca/drutest/phpBB3/ is the forum (** works **)
http://www.spite.ca/drutest/phpbbforum is both of them (** error **)
Before you posted, I wiped all of the phpbb tables and reinstalled the whole shebang from scratch. I figured I made a mistake along the way and missed something very obvious.
Unfortunately, I still get the same error.
I am not a MySQL expert, in fact it has been years since I started to learn the language, but I thought maybe I had an idea as to the problem.
The error refers to phpbb3.phpbb_config
Does this mean that:
phpbb3 is the db
phpbb_ is the prefix
and config is the field?
Because my database is not phpbb3. It is correctly defined as something completely different in the config.php file.
Since it runs when you go directly to the forum (domain/phpBB3/) am I correct in assuming the issue is not with the phpBB installation, but with the interface or bridge between Drupal and phpBB?
I greatly appreciate the work done on this module, I think it is perhaps one of the most important modules available for Drupal.
About activating menu item phpbbforum
http://www.spite.ca/drutest/phpbbforum is both of them (** error **)
see starting from http://drupal.org/node/217369#comment-732147
Yes, I followed those
Yes, I followed those instructions and added the menu item as instructed.
I should note though that I did have to follow the extended instructions and head into navigation, and enable it the blank menu, and then I added it in the primary links.
I went to your testsite but
I went to your testsite but cannot understand something seeing on main page.
Enable blocks.
Give screenshot or text of phpbbforum settings page
Set in the window mode and
Set in the window mode and enable blocks
On my demo site inframe mode does no give this error, you can see. http://veberu.hostfabrica.ru/phpbbforum
It is the last version of the module like on drupal.org
Which blocks do you want me
Which blocks do you want me to enable? I threw up the phpbbforum ones, such as top posters and whatnot.
The site is a fresh D6 install and the latest version of the module downloaded off of Drupal.org.
Settings ok Block Recent
Settings ok
Block Recent post, Forum statistics
Did you examine php.ini settings (memory limit ...)
MySQL
MySQL database 5.0.24a
PHP 5.2.3
PHP memory limit 90M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.8 mod_ssl/2.8.22 OpenSSL/0.9.7e
Memory limit ok, but It
Memory limit ok, but
It seems like lack of recources
Switch off inframe mode, set in the window mode.
Absolutely, here is a
Absolutely, here is a screenshot of the settings page.
Thanks again!
Screenshot
Did you replace
Did you replace functions_user.php
It seems you did not
+/phpbbdrupal (phpBB forum root path: /home/vb/www/example.com/public_html/phpBB3/)
+/root ---------------------> +/phpBB3/
+/includes -----------------> +/includes
******* functions_user.php ----------> functions_user.php (replace or patch)
I did update the file, but I
I did update the file, but I will redo it again just to be sure.
I am working on setting the window mode, but I am having a very difficult time pointing to my phpbb installation in the path settings. Perhaps that is the issue? I was just reading some of the other posts, but then I read that it doesn't matter.
Right now, I have
/drutest is drupal
/drutest/phpBB3/ is phpbb
Another question as I ran
Another question as I ran multiple searches on the functions_user.php file.
In step 2, I have to find $db->sql_transaction('commit');
Well, technically it is in three specific places in the file. In mine, after step 1 it is on line 568, 849, and 2932. The documentation doesn't say to do all of them, so I only did it in the first location last time (I assumed it was only in one spot).
This instruction how to
This instruction how to patch.
But you may simple replace with already patched function.
Take unchanged phpBB3 files do not change any line exept replace file functions_user.php with the supplied file.
I am going to move the
I am going to move the phpBB3 installation to the same level as Drupal (as suggested) and I will also just use the supplied file.
However, I would imagine that when others say the instructions are hard to follow, that could be one instance. If you added a line number to that step (approximately line xxx) then it might solve a lot of issues!
(Then again I could compare the two and just figure out which one it was too).
Will update in a bit!
Sorry I must go. Tomorrow
Sorry I must go. Tomorrow will see.
>difficult time pointing to
>difficult time pointing to my phpbb installation in the path settings
strange
I'd recommend / is
I'd recommend
/ is drupal
/phpBB3/ is phpbb
try on a local computer to make sure that everything works
It appears the entire issue
It appears the entire issue revolved around having phpBB3 at the same level as Drupal, and not below it.
The documentation should be updated to reflect this, it will save some headaches.
Looks great now though! Time to do some fiddling!
Thanks again
usage problem (not for install)
hello, i'm *succefully* (i guess) installed this great patch just with the readme inside the file. but i'm have a problem or maybe is a bug, anyway, when an user logout from phpbb3 it does not logout from drupal, so, profile's edit from drupal doesn't affect phpbb3. The problem doesn't exist when the user logout from drupal, but just from phpbb3.
my cms are on mysite.net/drupal6 and mysite.net/phpBB3 and i have the register with "phpbb master"
EDIT: it's seems to be solved by stripping away the logout from de phpbb3 template and keeping only the login from drupal.
Latest from forum
Hi.
I've added "Latest topic" in homepage.
It works great for anonymous user (they can see it), for administrator but not for register user.
When a register user login into drupal the block doesn't appears.
The permissions seems to be right.
Could someone explain me how to view this block for all?
Thanks a lot.
phpBB has your own policy of
phpBB has your own policy of displaying recent topics. The module uses this feature.
phpBB does not show outdated topics to a registered users.
Post something and you will be watching your fresh post or topc during a number of days
You are right, vb. I'm using
You are right, vb.
I'm using a new user created for testing drupal/phpbb and doesn't show nothig.
If I try with an old user, works fine.
Thanks again.
Well, after getting it to
Well, after getting it to work in a Drupal-Window, I attempted to register a new user in Drupal and received the same error as another before me that it could not create the user account in phpBB.
So, I went over and registered in phpBB with the same information and everything worked fine. After syncing the passwords everything seems to work fine. However, I can't ask new users to go through the same.
My domain structure is:
domain/subdirectory/drupal/
domain/subdirectory/phpBB3/
Does this have anything to do with the visual confirmation that phpBB requires to be passed?
Also, I have noticed on the phpbbforum site that when you register, you can choose your own password. Perhaps this is required to be enabled for it to set the same password in phpbb. I need to know how to do this, my base drupal install generates a password for me.
Go to User settings (*)
Go to User settings
(*) Visitors can create accounts and no administrator approval is required.
Clear checkbox
[ ] Require e-mail verification when a visitor creates an account
If this box is checked, new users will be required to validate their e-mail address prior to logging into the site, and will be assigned a system-generated password. With it unchecked, users will be logged in immediately upon registering, and may select their own passwords during registration.
Go to phpBB Admin and set
Go to phpBB Admin and set
User registration settings
Account activation: () Disable (*) None () By User () By Admin
This determines whether users have immediate access to the board or if confirmation is required. You can also completely disable new registrations.
If you set By User, user must to login first to phpBB and after that you will see that he is registered.
Set to None for test purposes.
Username length:
Minimum and maximum number of characters in usernames. [1] [30]
Password length:
Minimum and maximum number of characters in passwords. [5] [30]
Security settings
Check IP against DNS Blackhole List: () Yes (*) No
You may switch off
Check e-mail domain for valid MX record: () Yes (*) No
If enabled, the e-mail domain provided on registration and profile changes is checked for a valid MX record.
All this are not the module matters. You should see all settings that may affect the behavior of the module.
>Does this have anything to do with the visual confirmation that phpBB requires to be passed?
Module skips this test while registering.
But you may try a valid username with valid email and valid password with or without captcha settings and report an issue.
Everything is possible.
I set up the settings as you
I set up the settings as you stated, and I still get an error, albeit an additional error.
When I create an account in Drupal, I get these errors:
Unable to create new phpBB user: testuser2 error:
Unable to create new phpBB user: testuser2 error: You have specified an incorrect username. Please check your username and try again. If you continue...
Now, if I go to the phpBB directly, I can create this username and password without issue. It works like a dream.
http://spite.ca/pballcanada/drupal/ - drupal
http://spite.ca/pballcanada/drupal/phpbbforum - bridge
http://spite.ca/pballcanada/phpBB3/ - direct forum
[Edit: is there a way for Drupal to use the generated password to populate phpBB's password? I don't really want to have people able to log in without email verification. I have old phpBB boards that receive 50 bot registrations a day]
You are right. In visual
You are right. In visual verification validation was a bug.
hotfix right now, official update will follow tomorrow
file phpbb_api_subs.php
starting from line 267
please comment
//'email_confirm' => $email,
//'confirm_code' => '',
and
//'email_confirm' => array('string', false, 6, 60),
//'confirm_code' => array('string', !$config['enable_confirm'], 5, 8),
$data = array(
'username' => $username,
'new_password' => $password,
'password_confirm' => $password,
'email' => $email,
//'email_confirm' => $email,
//'confirm_code' => '',
'lang' => basename($config['default_lang']),
'tz' => (float) $timezone,
);
// Check and initialize some variables if needed
$error = validate_data($data, array(
'username' => array(
array('string', false, $config['min_name_chars'], $config['max_name_chars']),
array('username', '')),
'new_password' => array(
array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
array('password')),
'password_confirm' => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
'email' => array(
array('string', false, 6, 60),
array('email')),
//'email_confirm' => array('string', false, 6, 60),
//'confirm_code' => array('string', !$config['enable_confirm'], 5, 8),
'tz' => array('num', false, -14, 14),
'lang' =