EllisLab text mark
Advanced Search
1 of 7
1
   
phpBB3 library
Posted: 13 October 2009 12:21 PM   [ Ignore ]   [ # 11 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-03
69 posts

If I understand you correctly, you need to verify a user based on his phpBB account and then set a CodeIgniter user session data?

If that is the case, it shouldn’t be too hard.

You need to verify the user credentials (check how phpBB3 hashes user passwords and build query which checks the user credentials and if the user belongs to the group “Administrators”) and if the query returns a row, set the CodeIgniter user session data.

 Signature 

Open Blog
Kick-ass Blog application built using the CodeIgniter PHP Framework

Official website | My website | Demo | Getting started

 
Posted: 16 October 2009 03:13 AM   [ Ignore ]   [ # 12 ]   [ Rating: 0 ]
Joined: 2009-10-13
5 posts

Thanks to you for replying…...

Basically what i want is maintain the same account for my back end of site which is in CI and BB administrator. So when admin is logged in back end of site ,He also gets access to PhpBB administrator panel with same account. Any way am trying it, mean while if any suggestions .. Please post it.

 Signature 
 
Posted: 16 October 2009 05:16 AM   [ Ignore ]   [ # 13 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-03
69 posts

Yes, and the logical solution would be to use the phpBB user system.

It is a bad idea to have the same data in two places (phpBB user table and separate table for your application) - database should be non-redundant.

You can also create new tables to store additional user information (adding new fields to phpBB user table can cause problem with the future phpBB updates) but you should reference the phpBB user table.

 Signature 

Open Blog
Kick-ass Blog application built using the CodeIgniter PHP Framework

Official website | My website | Demo | Getting started

 
Posted: 22 October 2009 05:38 AM   [ Ignore ]   [ # 14 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-27
3 posts

I’ve got an error like this:

Fatal errorCannot redeclare redirect() 
(
previously declared in /var/www/portal/system/helpers/url_helper.php:530
in /var/www/portal/forum/includes/functions.php on line 2184 

any idea what went wrong?
i’m auto-loading the url helper, could it be that’s the problem?
if it is, how can i fix this?

 Signature 

Don’t waste time or time will waste you

 
Posted: 22 October 2009 07:45 AM   [ Ignore ]   [ # 15 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-03
69 posts

Yes, URL helper is causing the problem.

One solution would be to rename the redirect function in the URL helper (for example to something like CI_redirect()).

 Signature 

Open Blog
Kick-ass Blog application built using the CodeIgniter PHP Framework

Official website | My website | Demo | Getting started

 
Posted: 22 October 2009 08:18 AM   [ Ignore ]   [ # 16 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-27
3 posts
Kami_ - 22 October 2009 11:45 AM

Yes, URL helper is causing the problem.

One solution would be to rename the redirect function in the URL helper (for example to something like CI_redirect()).

Thanks for reply,

I’ve renamed the function to CI_redirect(), and it works. I’m successfully logged in.

But somehow it didn’t match to the correct account. I entered the admin’s username and password, but I’m logged in as an anonymous user.

- I’ve made the Bb library like in post#9,
- follow the modifications as in post#7,
- and last one i renamed the url_helper’s redirect() function.

Where am i missing?

Any response appreciated.

Edit
oops.. so sorry.. got mixed up with the integration with phpbb thread.

 Signature 

Don’t waste time or time will waste you

 
Posted: 24 October 2009 06:10 AM   [ Ignore ]   [ # 17 ]   [ Rating: 0 ]
Joined: 2009-09-18
3 posts

Hi guys,
Can i ask where you are supposed to unzip phpbb within your codeigniter directory so you can install and navigate the user to the index.php of phpbb via your existing site.

Thanks in advance.

 
Posted: 24 October 2009 12:56 PM   [ Ignore ]   [ # 18 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-03
69 posts

It doesn’t matter.

phpBB can be located anywhere in your public directory.

Only thing you should keep in mind is to change the FORUM_ROOT_PATH constant which is pointing to the phpBB root path (and of course to make appropriate changes to the .htaccess file if you are using one).

 Signature 

Open Blog
Kick-ass Blog application built using the CodeIgniter PHP Framework

Official website | My website | Demo | Getting started

 
Posted: 24 October 2009 01:00 PM   [ Ignore ]   [ # 19 ]   [ Rating: 0 ]
Joined: 2009-09-18
3 posts

Thanks for the reply Kami_!
I have extracted PHPBB into a folder called forums onto the root of the directory. Having it in this position allowed me to navigate to the install directory.

So if i want to create a URL to point the user to the forums i simply nav them to base_url/forums.

Thanks again!

 
Posted: 17 November 2009 11:57 AM   [ Ignore ]   [ # 20 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-12
420 posts

I’m just gonna bump this for a sec. Very simple bridge, I like the concept.

I have installed a phpbb3, no problem. Can access it and everything. The moment I reference the library in my code by loading it, the page fails though.

parent::Controller();    
        
$this->load->model('model_persoon'''TRUE);
        
$this->load->model('model_karakter'''TRUE);
        
$this->load->model('model_inschrijving'''TRUE);
        
$this->load->library('phpbb_library'); 

That is the include bit of the constructor of the controller in which I want access to the phpbb_library library. My suspicion is that I am not putting down the correct FORUM_ROOT_PATH. I have tried quite a few options there though. It is located at http://www.symbols-larp.com/phplarp/phpBB3

This did not work:

base_url() . '/phpBB3/'
'/www/phplarp/phpBB3/'
'/www.symbols-larp.com/phplarp/phpBB3/'
'/symbols-larp.com/phplarp/phpBB3/'
'/phplarp/phpBB3/' 

Or it could be something else all together. Any clue?

 Signature 

- Simon

 
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
123 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

 
1 of 7
1