System for embedding Phorum in other applications (early preview)

Posted by Maurice Makaay 
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 08:47AM
Maurice,

Do I just make a copy of those file in connector for mambo into mambo components folder and use it in Mambo?

Or do I have to do something special?

I take a second look at those files and I think I can use them to create a Mambo installer package and install it in Mambo. I will let you know what I will find out.

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong



Edited 1 time(s). Last edit at 02/07/2006 08:56AM by chanh.
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 09:58AM
I put the first version of these files (all, except connector.php) in a zip and let that install in Mambo. After the first install I have edited the installed component in components/com_phorum/phorum.php directly. I'm really a n00b with Mambo, so I don't know exactly what I'm doing there yet ;) But I guess zipping them up and feeding it to Mambo will do.

BTW: there's no control panel within Mambo (yet), so you have to edit the phorum.php component file to point $PHORUM_DIR to the installation directory of Phorum.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 10:23AM
Ok, I will check it out! Thanks

By the way do you know of any converter that I can take a look to see how to convert from Simpleboard into Phorum?

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 10:39AM
I don't know about a simpleboard converter, so that probably has to be written. The phorum 3 -> phorum 5 conversion script could be a good start for this.

BTW: did you already have a chance to look at the updated templates.php script for fixing your timeout errors? If this change works I can commit it to the development tree.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 02/07/2006 10:41AM by mmakaay.
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 10:58AM
You must miss my previous respond.

I did and it works!

Where can I find that converter from 3 to 5?

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 11:00AM
I indeed missed that post. This thread is getting long ;-) Thanks for the feedback. I'll add the fix to the development tree!

The converter is packaged with Phorum5 in the scripts directory. In docs/upgrade.txt you can read how the script is supposed to be used.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 11:01AM
its in the download-archiv of phorum.
scripts/phorum3to5convert.php
using
scripts/phorum3_in.php

it was meant as a framework were only the phorum3_in.php would need to be changed for your forum but I guess its too specific to phorum3.


Thomas Seifert
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 11:12AM
I will take a look at both.

Thank you both.

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 04:54PM
I install the latest version of your embed mod and create a quick zip file to install the component into Mambo just to see how this thing work. When I click on the link to access to Phorum from Mambo I got this message instead of the actual phorum.

Duplicate entry 'admin' for key 2: insert into phorum_users set user_id=62, username='admin', email='chanhong@u.washington.edu', admin=1, password='3d8512d4006de1c00f1b2a20dbc1bb1e', active=1, password_temp='3d8512d4006de1c00f1b2a20dbc1bb1e', date_added=1139352594, date_last_active=1139352594

===============
Answer and question: I got this error because phorum has the user_id=1 but Mambo has the user_id=62 for the admin account. When I change the phorum.user_id=62 then it work. Now the question is how can the mods be change so that it will pick the mambo.user_id and update phorum.user_id?
===============

When I click on the forum it will bring me to [localhost] whereas my install is on [localhost] so I edit the connector to add mambo in front of the URL just to see what will happen. Now that I click on the forum I will get this:

embed_phorum module error: page element "style" is missing in the templates

So what well am I missing?

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong



Edited 2 time(s). Last edit at 02/07/2006 05:20PM by chanh.
Re: System for embedding Phorum in other applications (early preview)
February 07, 2006 07:04PM
In your setup, both Mambo and Phorum have a user named "admin" in the database. But these have a different user id. What the Mambo connector tries to do here is synchronize the admin user of Mambo to Phorum, keeping Mambo's user id. The connector sees that there's no user in Phorum for Mambo's id 62 and tries to insert a new user using that id. This fails, because the username "admin" is already taken by the Phorum admin user.

You could update the user_id of the user "admin" in Phorum to 62 by hand. After that the thing should work.

How this should work is that you install Phorum with an admin username different from any user that you are using in Mambo. Once you have logged into Mambo with a Mambo Super Administrator account and visited the forum, that account will be synchronized to Phorum. Super Administrators will get admin rights for admin.php in Phorum too. So after you visited the forums, you can login using the Mambo account in Phorum's admin.php script. Then you can delete the admin account that you created during install.

The message about the style missing, means that Phorum did not output a page or did use a non-embedding template. Mind that the format of the template tags has changed a little bit. If you have selected the embedding template, then please copy the new templates from the distro to the templates dir.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login