Project:phpBB Forum Integration
Version:6.x-2.0-beta12
Component:User interface
Category:support request
Priority:normal
Assigned:TE5LA
Status:closed (fixed)

Issue Summary

I know that this place are for D6 but it was no other place to post.
I came to this point:

Error locating /hsphere/local/home/drupal/ubercart.drupal.no/phpBB3/phpbb_api.php. Please fix your settings!
Unable to connect to the phpBB database. Please fix your settings!

And yes, I know that I have to copy all the api-file to root and "includes", but then I get White Screen of Death.
And I know also that I have to modified phpbb_api.php, but not to put what code.
This are the code I have to put somewhere in the file, but where?
my full url are here"

3) Include phpbb_api.php in your php code.

require_once(dirname(__FILE__) .'/phpbb_api.php');

Advanced

1) Move phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php
to directory of your choice.
2) Define global $phpbb_boarddir; and set it to phpbb root.
4) Include phpbb_api.php in your php code.

global $phpbb_root_path;
$phpbb_root_path = 'path to your phpbb root';
require_once ('path to your directory' .'/phpbb_api.php');

I will be verry greatfull for help.

Comments

#1

>I know that I have to copy all the api-file to root and "includes",

includes should not be copied for 1st time (but you can if you know how and what to do with it)

In INSTALL.txt
"You may simple to copy content of directory phpbbdrupal/root/ to your phpbb root directory."

Nothing about the includes subdir
Only phpbbdrupal/root/ need to be copied to /phpBB3

Leave /includes and its content phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php

Should be
/hsphere/local/home/drupal/ubercart.drupal.no/sites/all/modules/phpbbforum/includes/phpbb_api.php.

Do not forget to delete /phpBB3/phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php

and everything will be ok automatically

This for independent use of phpbb_api.php

3) Include phpbb_api.php in your php code.

require_once(dirname(__FILE__) .'/phpbb_api.php');

Advanced

1) Move phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php
to directory of your choice.
2) Define global $phpbb_boarddir; and set it to phpbb root.
4) Include phpbb_api.php in your php code.

phpbbforum.module already do this all

phpbb_api.php - it is universal api for phpBB3

Sorry for not explaining in some docs.

#2

In your case
If you move phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php to /phpBB3/

You can simple enter in field Path to phpBB api file: the same path as in

phpBB forum root path:
/hsphere/local/home/drupal/ubercart.drupal.no/phpBB3/

Path to phpBB api file:
/hsphere/local/home/drupal/ubercart.drupal.no/phpBB3/

phpBB api file name:
phpbb_api.php

#3

Try simple to clear field
Path to phpBB api file:
/hsphere/local/home/drupal/ubercart.drupal.no/phpBB3/

and save the settings, module will find

/hsphere/local/home/drupal/ubercart.drupal.no/phpBB3/

or

/hsphere/local/home/drupal/ubercart.drupal.no/sites/all/modules/phpbbforum/includes/

phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php must be in one this place

#4

Title: Drupal 5.7 » phpbbforum install paths

Module -------------------------> Your site paths
+/phpbbforum -----------------> +/sites/all/modules/phpbbforum
(Path to phpBB api file: sites/all/modules/phpbbforum/includes/)
+/includes -------------------> +/sites/all/modules/phpbbforum/includes/
phpbb_api.php ----------------> phpbb_api.php (phpBB api file name:)
phpbb_api_subs.php -----------> phpbb_api_subs.php
phpbb_api_recent.php ---------> phpbb_api_recent.php
+/contrib
+/phpbbdrupal (phpBB forum root path: /home/vb/www/example/public_html/phpBB3/)
+/root ---------------------> +/phpBB3/
+/includes -----------------> +/includes
functions_user.php ----------> functions_user.php (replace or patch)
+/styles -------------------> +/styles

#5

sorry for hijacking the thread, but what does:

3) Include phpbb_api.php in your php code.

require_once(dirname(__FILE__) .'/phpbb_api.php');

mean?

please specify a filename. in which file do i have to include the statement above?

index.php of phpbb3?
template of drupal?

i'm lost here.

t.i.a.

#6

It is advanced usage of the phpbb_api.php package if you are using it separately from the module
(phpbb_api includes phpbb_api.php, phpbb_api_subs.php, phpbb_api_recent.php, README.txt)
phpbb_api.php is a product that can be used without the module. In this case it has its own readme.
If you are using it with the module phpBBforum you do not need to follow the README.txt in phpbb_api package.
phpbbforum module does all steps needed for this package itself.
You must follow the INSTALL.txt in which no word to do something else.
Read this issue and topic http://drupal.org/node/217369

#7

got it now.
thanks a lot!

#8

Assigned to:Ole Martin» Oglan12

Sorry if this is a noob question and I am sure it has been asked before, With that being said I am really new to all this and I am having troubles setting this all up, I thought I had the right path but mabe I dont. Could someone walk me through this? Only then will I get an understanding of how all this works. I did read the install.txt and It is difficult for me to follow. Thanks for any help.

Below is the errors I get

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!

#9

Component:Documentation» User interface

#10

Version:6.x-1.x-dev» 6.x-2.0-beta12
Assigned to:Oglan12» TE5LA

Drupal 6.12 and phpBB 3.0.7

Nearly everything seems to be working. When I go to phpbbforum settings, everything at the top passes. I have cleared the cache. I have it set for phpBB to open inside Drupal frame.

When I use a link to the forum, it opens a "Page not found" in the Drupal frame. The browser address shows the link as:

http://mydomain.com/phpbbforum/viewforum.php?f=2

My path structure is:

www/drupalsite/
www/drupalsite/phpbb3/

Should the URL be "phpbbforum" and not "phpbb3"?

My forum loads properly and works if I change URL to:

http://mydomain.com/phpbb3/viewforum.php?f=2 (replacing phpbbforum with phpbb3)*

*Of course, this launches forum in a full page.

What am I missing?

Also, if I get this working properly, will it work if I switch the phpBB3 style? Or will that require some more modification?

#11

I tried this all again with totally fresh installs and used Drupal 6.12 and phpBB 3.0.5 and I got exactly the same result. The frame in Drupal opens my website with the header and everything and reports "Page not found".

Clarify something for me: Should both Drupal and phpBB3 be installed before doing any of the phpbbforum mod? I'm thinking so but want to make sure. Also, is there a problem using different databases with both or is this how it should be done?

Please, there must be a common problem here and a simple solution. I'm hoping at least :)

#12

Status:active» closed (fixed)