integrate with phpbb?

integrate with phpbb?

Postby Vampy on Fri May 28, 2004 12:31 pm

Hi! I've just started playing around with this script and I find that it's great! But I was wondering whether if it is possible to integrate this with phpbb. By that I mean that allo registered members of phpbb to create their own blog directly and use the username and password from the phpbb to create their blog.

It would be a great feature to have since it allows you to offfer blogging to registered members of phpbb forums.
Vampy
 

Postby phunkphorce on Sat May 29, 2004 6:05 am

you should probably take a look at the database structure of phpbb and plog and see first of all if they could use the same table(s) for storing the user information. If so, then you should decide where to make changes (either in plog or in phpbb)

Another option would be to make both use their own user data tables but edit the code so that whenever a user is created in phpbb, then use the pLog API (Users::addUser() and Blogs::addBlog()) to create a new user and blog, and whenever a password is updated, update it in both applications, etc.

It's not that easy but I don't have much time to dedicate to this at the moment...
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Try another way

Postby markwu on Sat May 29, 2004 10:34 pm

Hi All:

Simply idea, I just want to keep pLog and also include pLog plug-in indepent with other system. Therefore, my personally do not prefer this kind of integration, I want to make things simple.

1. I try to install a phpbb-mod to let phpbb has rss-feed
2. add a rss-feed plug-in to pLog to read this (maybe these) rss-feed

So, the idea is to let the pLog has RSS-FEED Manager and News Plug-in, the functions will be
- Use the pLog link & link category to manage these RSS-FEEDS
- Add a function to show the rss-feed by date or by blog
- Add a function to config the rss feeds to show

Then, I think pLog can sync any systems that with RSS feeds, it will keep pLog clean and simple.

How about you think about it? I will try to do this plug-in, maybe take 2 weeks, becasue I will be very busy next week on my company project....
markwu
Lifetype Expert
 
Posts: 920
Joined: Wed Mar 31, 2004 1:59 pm

Postby phunkphorce on Sun May 30, 2004 8:52 am

sounds like a really interesting plugin! Go ahead, please :)
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby Vampy on Tue Jun 01, 2004 11:56 pm

Thank you for your replies. I have a question about the porposed plugin - will it allow users of the forum to have their own blog and also post in their blog. Thanks.
Vampy
 

Postby Vampy on Wed Jun 02, 2004 12:11 am

I just had a quick glance at the user tables of the phpbb forum as well as that of the blog. Although the actual names of fields used in the mysql tables are different but I think if I were to just use the user tables in the forum system, the blog should be able to authenticate the user as well since they are both using md5 hash for the password. My question is that does the blog uses cookies? If so, it would be simpler since the forum uses cookies to "remember" the status of the user.
Vampy
 

Postby phunkphorce on Wed Jun 02, 2004 1:10 am

no, plog uses no cookies at all but native php sessions. We simply offload to php the handling of these things, there's nothing special that we've deloped for this :)
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby bryanclark on Wed Jul 14, 2004 6:12 pm

Anything ever come of this?
bryanclark
 

Postby phunkphorce on Thu Jul 15, 2004 2:22 am

nope. Care to take a look?
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby silex on Tue Jan 11, 2005 12:15 am

This is somewhat related to phpbb integration with pLog (not directly), and I installed this because I wanted to put the "Latest Forum Threads" on my summary.php page.

It's actually just a phpbb addon and it works really well. All you have to do is add Javascript to the index.template in summary to show the latest forum posts. It can also be used as RSS instead of Javascript.

Check it out:

http://www.phpbb.com/phpBB/viewtopic.php?t=72782
silex
 
Posts: 77
Joined: Thu Oct 14, 2004 3:51 pm

Postby Guest on Sun Mar 13, 2005 2:12 am

Vampy wrote:I just had a quick glance at the user tables of the phpbb forum as well as that of the blog. Although the actual names of fields used in the mysql tables are different but I think if I were to just use the user tables in the forum system, the blog should be able to authenticate the user as well since they are both using md5 hash for the password. My question is that does the blog uses cookies? If so, it would be simpler since the forum uses cookies to "remember" the status of the user.


Any update on this. I'm curious since I'm thinking of having it integrated with vb. cookies would indeed make it much easier. How hard would it be to make a module for this?
Guest
 

Postby phunkphorce on Sun Mar 13, 2005 5:38 am

see this thread: http://forums.lifetype.net/viewtopic.php?t=1864 for more information
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby Berlin on Tue Mar 29, 2005 7:21 pm

phunkphorce wrote: you should probably take a look at the database structure of phpbb and plog and see first of all if they could use the same table(s) for storing the user information. If so, then you should decide where to make changes (either in plog or in phpbb)

B: Another option would be to make both use their own user data tables but edit the code so that whenever a user is created in phpbb, then use the pLog API (Users::addUser() and Blogs::addBlog()) to create a new user and blog, and whenever a password is updated, update it in both applications, etc.

It's not that easy but I don't have much time to dedicate to this at the moment...
Most would insist on the second one. But I think it's not really integrating just synching.

However, I insist on something else: dropping plog's user table and using the forum user table instead, not because I think it's any better, it's because most scripts that I use with vb or phpbb integrates using the user table method --4images and photopost just to mention a few. Both scripts use their own tables except for the user tables.

Just from the top of your head, can you determine why someone would choose that way instead of just synching?
Last edited by Berlin on Wed Mar 30, 2005 3:25 am, edited 1 time in total.
Berlin
 
Posts: 22
Joined: Wed Mar 16, 2005 12:29 am

Postby phunkphorce on Wed Mar 30, 2005 3:00 am

I think that integrating is better than synching, but in my previous (older) post I was just bringing new options onto the board...

Also please see the related thread: http://forums.lifetype.net/viewtopic.p ... =vbulletin

Integrating plog with phpbb is not that difficult. Your programmer should just replace the whole Users class (which takes care of dealing with user data) so that it reads from phpbb's db instead of plog's own. As long as the interface of the class is kept the same, that's the only thing that will need to be changed (meaning that if the class behaves in the same way that the rest of the core code is expecting it to behave, there will be no need to make any more changes)

There's only one thing that we should think about: if a new users registers in phpbb, that means that there'll be a new user in plog too. But how about a blog? In plog the registration process has two steps: first we create the user and then the blog but after the registration process in phpbb we only have the user... at which point do we create a blog? Or should we create the new blog as soon as the user first logs in, automatically with some default title and configuration?
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby dranor on Tue Apr 05, 2005 12:15 pm

There's only one thing that we should think about: if a new users registers in phpbb, that means that there'll be a new user in plog too. But how about a blog? In plog the registration process has two steps: first we create the user and then the blog but after the registration process in phpbb we only have the user... at which point do we create a blog? Or should we create the new blog as soon as the user first logs in, automatically with some default title and configuration?



If the user does not have a blog, it should be created when he logs in the admin interface for the first time, just an idea btw
dranor
 
Posts: 13
Joined: Mon Sep 15, 2003 6:05 am

Next

Return to Requests and Suggestions

cron