6

Is there a way to integrate CodeIgniter with phpBB3? I would like to use the user system as a base for my future CodeIgniter Application.

Is it a good idea to use phpBB as a base user system?

niton
  • 8,771
  • 21
  • 32
  • 52
MarioRicalde
  • 9,131
  • 6
  • 40
  • 42
  • 1
    Take care! I fell into this pit once! PhpBB automatically creates user accounts for robots like Googlebot. You can tell, I was surprised when I found the heart of my application, where only hand-selected people should have access to, at the Google cache, visible for everyone. **Don't use an external user authentication system, if you don't really understand how it works!** – Boldewyn Jul 19 '09 at 18:33
  • ...I did, by the way, the same thing you're up to: Using PhpBB's authentication for my own site, although not CI based. – Boldewyn Jul 19 '09 at 18:34
  • 1
    Thanks for the warning. Hmm maybe there's a way to disable the googlebot account D:! How did it work besides that small fluke? did it work as expected? Anything else I should be aware about besides that tragic incident? – MarioRicalde Jul 19 '09 at 18:49
  • I deleted them, then they're gone and do no harm anymore. But in the first place, you have to know they exist. Actually they are described in the PhpBB docs, but you have to make the mental connection between their existence and the bots being able to read your protected content. – Boldewyn Jul 19 '09 at 20:37
  • Oh, for the rest: It works just fine now. I still use it, and there were no complaints from the users (except for when I forgot to put the "get a new password" link on my custom login page...) – Boldewyn Jul 19 '09 at 20:39

2 Answers2

1

kuroir. You can look into http://codeigniter.com/wiki/phpBB3_library/ which is in the CodeIgniter wiki.

Teej
  • 12,764
  • 9
  • 72
  • 93
1

As Thorpe pointed out, you can use phpBB3 Library available on CodeIgniter's website.

Along with that, you could create a phpBB user group and assign only "real" users to that group and have your CI authentication check for that group. This way, you won't get Googlebot peeking where it's not supposed to.

Community
  • 1
  • 1
matpie
  • 17,033
  • 9
  • 61
  • 82