phpbbforum install paths

Ole Martin - February 8, 2008 - 16:06
Project:phpBBforum Integration module
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Ole Martin
Status:active
Description

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.

#1

vb - February 8, 2008 - 17:31

>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

vb - February 8, 2008 - 17:57

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

vb - February 8, 2008 - 18:08

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

vb - February 10, 2008 - 08:42
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

my evil twin - February 17, 2008 - 21:06

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

vb - February 17, 2008 - 21:39

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

my evil twin - February 17, 2008 - 22:32

got it now.
thanks a lot!

 
 

Drupal is a registered trademark of Dries Buytaert.