System for embedding Phorum in other applications (early preview)

Posted by Maurice Makaay 
Re: System for embedding Phorum in other applications (early preview)
February 21, 2006 04:13PM
Maurice,

I download the latest 0.12 and everything work!

I just want to suggest to change on line 8 of phorum.php
$PHORUM_DIR = "../phorum";

To make this relative so that once it is installed it don't have to be edited everytime.

I will take a more closer look with this mods.

Would you consider this is a final release?
If you are ready to create the connector for the other CMS that we chat on IRC a few days ago and need any information please let me know.

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 21, 2006 04:26PM
It's getting pretty close to a final release indeed. At least I have all functionality that I need in my gitaar.net site running and I'm now going through all functionality to see if things work correctly. If the integration with my site and Mambo are completed, I'll continue on "the other CMS" :)

About the other $PHORUM_DIR in phorum.php: no problem. I changed it like you proposed. As you can read in that source, I'd like to have an admin page for it in Mambo, where you can specify the path where Phorum is installed. "../phorum" is a good default value. The changed default will be in the next release.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: System for embedding Phorum in other applications (early preview)
February 21, 2006 05:24PM
Yes, it would be nice to have the admin page for that!

I am focusing the fundamental function of this at the moment to make sure it works then we can move to dressing it up a little bit later. I think!

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 21, 2006 09:23PM
Hey, what's happen? I can not download the latest 0.12 anymore!

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 22, 2006 03:07AM
Oops... I cleaned up the packages directory and let all my modules build new packages. This automatically uses the version that is in the README file and I set that to 0.0.13 already. So 12 was gone and 13 was created. I updated the link in the first post point to the new 0.0.13.

Tip:
You can always open the URL http://phorum-dev.gitaar.net/packages to see all files in the packages directory on my server.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: System for embedding Phorum in other applications (early preview)
February 22, 2006 09:46AM
That's work!

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 24, 2006 03:46AM
Can you feed this modle the users "buddylist" as well?

I've been embedding phorum similar to this for some time now.
[www.phorum.org]

Through the magic of FOAF I was able to import all my user's friends by spidering their networks on tribe.net

I'm upgrading to 5.1 now and noticing there is some nice buddylist functionality in sending PM's to multiple users.

Could this module build the buddylist array in the same way it builds to user?
Re: System for embedding Phorum in other applications (early preview)
February 24, 2006 04:17AM
To do that, changes have to be made to make the master application fully master of that data. That requires some changes to templating and code (add user as a buddy shouldn't be available anymore in Phorum). That might be done in a later version. I do not see it happen in the current releases, because I first want to make this codebase as stable and good as possible. Of course, you can write code yourself to insert the buddies in the PM buddies table from your master application.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: System for embedding Phorum in other applications (early preview)
February 24, 2006 04:51AM
i'm not sure i would want to try to keep buddies synchronzed between the two systems.

seems it would be easier to just intercept the buddylist getter with module functions that get it from my master system. providing there are hooks in the right places.

perhaps in the core code you could say to only get the buddylist if it's not already set? that would make it even easier.
Re: System for embedding Phorum in other applications (early preview)
February 24, 2006 06:06AM
The database layer does not have (and should not have) hooks for intercepting things like retrieving the list of buddies, adding buddies and deleting buddies. The philosophy in my embedding system is that the master application should feed data to the Phorum database and when it feeds data, Phorum should not tamper with that data anymore. At all times only the master or the slave has the right to change certain data. Nowhere the master and the slave (Phorum) should be allowed to tamper with the same data. If you want the database layer to directly use your database (because that's what you're asking for here), then you have to modify the appropriate functions in the database layer. If the database layer knows and uses your database structure, then you have full integration. That is not the goal of the embed_phorum mod.

I do not see what you mean with the core code remark. Apart from the fact that there are no core changes made for this system to work, it sounds a bit like the death-stab for a synchronization system. It sounds like "only sync on the first access". If you have a buddy system in your master application and you want the buddies to be used in Phorum, then the only good way to implement this IMO is keeping the buddies completely in sync and disabling buddy management functions in Phorum completely. If you're going for a more sloppy implementation of this, then you're own your own, because it does not fit my project.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login