System for embedding Phorum in other applications (early preview)
Posted by Maurice Makaay
|
October 18, 2007 01:36PM |
Admin Registered: 21 years ago Posts: 8,532 |
For reference, could you tell us what caused the problem for you? That way we have an option for helping out better in case a future user runs into the same kind of problem.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: System for embedding Phorum in other applications (early preview) October 18, 2007 02:31PM |
Registered: 18 years ago Posts: 6 |
The Problem was this
i followed the instructions as per manual and copied the files to the mod directory in the embed_phorum folder and the templates folder
but the Embeded Mod was not showing up in the module section of admin which i did not pay much heed to later finally when i was upto my neck frustrated when i redid the whole installation this time i took care to copy all the files other than php also to the embed_phorum folder in the mods directory that the module section started showing the Embeded mode which i turned On and everything started working fine.
Thanks
Matt
i followed the instructions as per manual and copied the files to the mod directory in the embed_phorum folder and the templates folder
but the Embeded Mod was not showing up in the module section of admin which i did not pay much heed to later finally when i was upto my neck frustrated when i redid the whole installation this time i took care to copy all the files other than php also to the embed_phorum folder in the mods directory that the module section started showing the Embeded mode which i turned On and everything started working fine.
Thanks
Matt
|
October 18, 2007 02:50PM |
Admin Registered: 21 years ago Posts: 8,532 |
So the basic problem here was that the embed_phorum module was not enabled. You can still call the wrapper like you did, but it will miss the functionality that is implemented in the module. Thanks for the explanation and have a lot of fun with the mod!
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: System for embedding Phorum in other applications (early preview) October 25, 2007 04:43PM |
Registered: 18 years ago Posts: 3 |
First off, I'd like to say thank you for building this module. We've been looking at various ways to integrate forum software into our customer systems for a little while now, and this was the first package that offered actual integration where we could control the authentication and registration mechanisms instead of the other way around.
I did have one question for the short term, and one long term one, however...
Since the forum package is now running under the embed module, I've actually moved the system out from the document root directory and into a lib directory for our MVC architecture. However, that means that access is cut off to the admin page, which still runs outside of the embedded forums. Is there any way to changes this, so that the entire forum stack can run through the processor?
On a long term note, from my attempts to set up and configure phorum and the embed module, I've noticed that most failure conditions tend to die rather than throw errors and was wondering if that might change down the road? It would be extremely helpful for someone like me to have a chance to catch errors and display my own items rather than the blank page with a (mostly) non user-friendly message.
I did have one question for the short term, and one long term one, however...
Since the forum package is now running under the embed module, I've actually moved the system out from the document root directory and into a lib directory for our MVC architecture. However, that means that access is cut off to the admin page, which still runs outside of the embedded forums. Is there any way to changes this, so that the entire forum stack can run through the processor?
On a long term note, from my attempts to set up and configure phorum and the embed module, I've noticed that most failure conditions tend to die rather than throw errors and was wondering if that might change down the road? It would be extremely helpful for someone like me to have a chance to catch errors and display my own items rather than the blank page with a (mostly) non user-friendly message.
|
Re: System for embedding Phorum in other applications (early preview) October 25, 2007 06:29PM |
Registered: 18 years ago Posts: 3 |
|
October 26, 2007 09:19AM |
Admin Registered: 21 years ago Posts: 8,532 |
Quote
Diane_Syneron
Okay, I think I just hit a snag with the integration.
When making a post, it appears that the post script is sending an HTTP redirect that is outside of the embed module's control.
Any suggestions for getting around it?
The module has a chance to format the URLs to load. So that could be a place to work at. But can you explain the exact problem that you run into here?
admin from other dir
Running the admin embedded isn't really an option. I have something like it working on my site, but it's ugly:
<?php
ob_start();
require_once("./site_frame/common.php");
site_frame_header();
chdir("./phorum/");
include("admin.php");
site_frame_footer();
?>
It has my own header and the admin header, so it ends up with multiple <html> starts in the source code. For me it's okay and it works, but it is not a nice solution. Maybe you can try to put something like it in your site's document root to see if it works for you as well? For me, the phorum dir is still inside the document root, so I'm not sure if things are missing if you'd do this.
handling errors gracefully
We try to use trigger_error() for all errors in Phorum. Those errors could be caught by an exception handler. There might still be die() calls in there. If you find any that get in your way, then please tell us. We can change them to trigger_error(). Maybe a future idea for the embed_phorum mod could be to offer such an error handler and a callback method. I'll keep that in mind.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: System for embedding Phorum in other applications (early preview) October 29, 2007 07:28PM |
Registered: 18 years ago Posts: 3 |
The culprit in question is phorum_redirect_by_url, and it appears to get short-cut through after attempting to make a post.
As far as the errors go, there are a number of die statements in the db folder, one or two of which I happened to run across while setting up the system. Nothing major and it should never come up in normal usage, but being able to format and handle those errors would be nice.
For the admin section, since it would only be available to IT personnel, I've created a RewriteRule to send requests to the admin page from a predetermined url. That should keep things simple enough for now.
Of course, all of this is on the latest stable, so much of it may not be an issue in 5.2.
As far as the errors go, there are a number of die statements in the db folder, one or two of which I happened to run across while setting up the system. Nothing major and it should never come up in normal usage, but being able to format and handle those errors would be nice.
For the admin section, since it would only be available to IT personnel, I've created a RewriteRule to send requests to the admin page from a predetermined url. That should keep things simple enough for now.
Of course, all of this is on the latest stable, so much of it may not be an issue in 5.2.
|
October 29, 2007 08:05PM |
Admin Registered: 21 years ago Posts: 8,532 |
Quote
Diane_Syneron
The culprit in question is phorum_redirect_by_url, and it appears to get short-cut through after attempting to make a post.
I'm sorry, but I do not yet see the problem that you run into with this. phorum_redirect_by_url() is called after posting a message. What exact part of it is problematic for you?
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: System for embedding Phorum in other applications (early preview) December 28, 2007 07:20PM |
Registered: 18 years ago Posts: 7 |
I've successfully installed phorum 5.2.4 RC2 version and mod_embed_phorum 1.0.1, but I have problems with the template. I've read posts about the issue and I need help setting the template.
What I did so far, I copied the "emerald" template into the embed_phorum templates folder and tried to correctly set the "header.tpl" in order to include required [element ... parts. I tried with style and body_data, but without success... the front page still displays "The Phorum output is missing [element ...] sections." error.
Can anyone point me in the right direction?
Regards,
Mario
What I did so far, I copied the "emerald" template into the embed_phorum templates folder and tried to correctly set the "header.tpl" in order to include required [element ... parts. I tried with style and body_data, but without success... the front page still displays "The Phorum output is missing [element ...] sections." error.
Can anyone point me in the right direction?
Regards,
Mario
|
December 28, 2007 09:03PM |
Admin Registered: 21 years ago Posts: 8,532 |
Make sure that that template is used. Do you have a get_template() method in your connector that returns the template name? And is the template available in the "templates" directory?
I am working on an embedding solution for "CMS Made Simple" currenctly and while I'm doing that, I am converting the emerald template for embedding as well. So I think that a compatible template for 5.2 embedding will be coming from me soon too.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
I am working on an embedding solution for "CMS Made Simple" currenctly and while I'm doing that, I am converting the emerald template for embedding as well. So I think that a compatible template for 5.2 embedding will be coming from me soon too.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.


