EllisLab text mark
Advanced Search
2 of 7
2
   
phpBB3 library
Posted: 17 November 2009 02:51 PM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Avatar
Joined: 2008-11-13
111 posts

@Maglok

have you tried doing this:

define('FORUM_ROOT_PATH''/path/to/your/phpbb3/installation/');
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH FORUM_ROOT_PATH

To clear things up, do you have a successful installation of PHPBB3 running on the server?
If so, the forum path is in the config.php file of the forum installation directory.

cool hmm bEz

 
Posted: 18 November 2009 05:55 AM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

What you quoted is the basic, but I still need to put in the url then.

Yes I have a successful phpbb3 running. http://www.symbols-larp.com/phplarp/phpBB3.

The config file does not have the forum installation directory, it has this:

<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms 'mysql';
$dbhost 'localhost';
$dbport '';
$dbname 'CENSOR';
$dbuser 'CENSOR';
$dbpasswd 'CENSOR';
$table_prefix 'phpbb_';
$acm_type 'file';
$load_extensions '';

@
define('PHPBB_INSTALLED'true);
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
?> 
 Signature 

- Simon

 
Posted: 18 November 2009 09:44 AM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

update: Could it be that CI is tripping over the fact the server runs PHP 4.4.9 and does some get_instance?

 Signature 

- Simon

 
Posted: 24 November 2009 06:18 AM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
758 posts

i have a site build on CI with DX_auth having multiple users on it and i want to add phpbb forum in my project like phpbb3 is it possible my CI site user after login can access phpbb3 without login. and if admin try to login to backend is it possible with the same library or not.

 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
Posted: 30 December 2009 06:45 AM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Joined: 2007-08-21
124 posts

Did you get it to work Maglok? I’m having the same problem.. I installed the forum at http://www.mydomain.com/forums (this is actually a subdomain, so - forums.mydomain.com). My CI based site is at the root - http://www.mydomain.com I’ve .set FORUM_ROOT_PATH to ‘forums/’ and I get:

You are not logged-in.

(I am using the test code found in the Wiki.)

Any idea’s?

Thanks!

 Signature 

ATOMIC Web Hosting - Quality shared and reseller website hosting
Codeigniter friendly
Install Codeigniter instantly with Softaculous within cPanel

 
Posted: 14 January 2010 07:06 AM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

I actually have access to php5 now.

Not working just yet:

Fatal errorCannot redeclare redirect() (previously declared in /home/content/85/5336885/html/test/system/helpers/url_helper.php:530in /home/content/85/5336885/html/forum/includes/functions.php on line 2439 

Apparantly the url_helper and the forum functions.php both have a function redirect(). Crap. raspberry Will keep posted.

It does at least instance now, which would be php5 at work. *Goes back to figgling*

 Signature 

- Simon

 
Posted: 14 January 2010 03:09 PM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Avatar
Joined: 2008-01-18
49 posts

To fix that problem you have to open forum_functions.php and search for

function redirect( ... )
{
....

Once you find that replace add this around the function.

if( ! function_exists('redirect') )
{
    
// Original Function
    
function redirect( ... )
    
{
        
....
    
}
    
// End of Original Function
 Signature 

Chris Miller
New to the Codeignitor Forums not CI

 
Posted: 15 January 2010 05:26 AM   [ Ignore ]   [ # 28 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

Well yes. Here’s a thing though: Let’s say I have a Controller in which I use the CI redirect(), but the page also has a login box which will redirect you back to this page using the forum redirect(), thus needing access to both, no?

 Signature 

- Simon

 
Posted: 15 January 2010 06:03 AM   [ Ignore ]   [ # 29 ]   [ Rating: 0 ]
Avatar
Joined: 2008-01-18
49 posts

Yes/no, I do believe the ci function works the same as the forum one. I have not opened up the file for awhile to check but rarely will you have to use the forum redirect when integrating with the website. I have done this before and did not run into any problems.

 Signature 

Chris Miller
New to the Codeignitor Forums not CI

 
Posted: 15 January 2010 06:08 AM   [ Ignore ]   [ # 30 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

Alright thanks for the tip. I will try to work around it like that. Let’s see now *cracks knuckles*

EDIT: Seems to work so far. The issue now is that the forum is in a 2nd database and the library uses $this->CI->db to approach the database, while normally I’d use $this->db_forum->something from controllers.

I can imagine people use the forum db as a 2nd db more often.

 Signature 

- Simon

 
Posted: 15 January 2010 06:27 AM   [ Ignore ]   [ # 31 ]   [ Rating: 0 ]
Joined: 2007-08-21
124 posts

Hey ChrisMiller, you able to help me out on my problem? http://ellislab.com/forums/viewthread/125350/P20/#688879

 Signature 

ATOMIC Web Hosting - Quality shared and reseller website hosting
Codeigniter friendly
Install Codeigniter instantly with Softaculous within cPanel

 
Posted: 15 January 2010 06:37 AM   [ Ignore ]   [ # 32 ]   [ Rating: 0 ]
Avatar
Joined: 2008-01-18
49 posts
LifeSteala - 15 January 2010 11:27 AM

Hey ChrisMiller, you able to help me out on my problem? http://ellislab.com/forums/viewthread/125350/P20/#688879

Try this, Enter your Forum Admin Control Panel, go to the general tab then server configuration under that you will see cookie settings enter into that section and chance Cookie Domain to your root domain so instead of forum.yourdomain.com its yourdomain.com and it should work after re-logging in. If not let me know maybe a few other settings may have to be modified.

Note: make sure the cookie path is also set to /

 Signature 

Chris Miller
New to the Codeignitor Forums not CI

 
Posted: 15 January 2010 09:13 AM   [ Ignore ]   [ # 33 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

This is annoying: CI’s libraries do not load databases in the same way as Controllers do.

In a MY_Controller I load the forum database as:

$this->db_forum $this->load->database('forum'TRUE); 

So that in the controller I can use it with $this->db_forum->something.

But in the library they talk to the database as $this->CI->db->something. How do I use the db_forum database? This only uses the application database (which is preloaded by default).

EDIT: I loaded the database in the library, kind of sloppy, but could also add it to a config file and use that. Regardless now it works. Gonna toy around with it, looks neat so far.

 Signature 

- Simon

 
Posted: 15 January 2010 12:49 PM   [ Ignore ]   [ # 34 ]   [ Rating: 0 ]
Avatar
Joined: 2008-01-18
49 posts

A quick idea for the library maker you should make a configuration option to allow a Database Library to be passed to the class and if its not passed or a vaild databse object then use the default database?

 Signature 

Chris Miller
New to the Codeignitor Forums not CI

 
Posted: 15 January 2010 05:59 PM   [ Ignore ]   [ # 35 ]   [ Rating: 0 ]
Joined: 2007-08-21
124 posts
ChrisMiller - 15 January 2010 11:37 AM

Try this, Enter your Forum Admin Control Panel, go to the general tab then server configuration under that you will see cookie settings enter into that section and chance Cookie Domain to your root domain so instead of forum.yourdomain.com its yourdomain.com and it should work after re-logging in. If not let me know maybe a few other settings may have to be modified.

Note: make sure the cookie path is also set to /

Thank you very much. Worked like a charm! smile

 Signature 

ATOMIC Web Hosting - Quality shared and reseller website hosting
Codeigniter friendly
Install Codeigniter instantly with Softaculous within cPanel

 
2 of 7
2