<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
        <description> Hi all, 

I&amp;#039;m working on the Integration of Phorum into Joomla with the addphp plugin (http://www.run-digital.com/loesungen/open-source/addphp/25-addphp.html). The plugin allows to integrate Php-code in Joomla content items. I use the the plugin to integrate the Phorum portable code into a Joomla article. (I want to mention that I don&amp;#039;t use the Joomla! 1.5 plugin for Phorum integration discussed elsewhere here in the forum because user integration is not the priority objective).  
 
I&amp;#039;ve changed the custom_url- Function in the portable code to add and extract the necessary data from the joomla-type urls and hacked my joomla-template to transfer some Variables from the Phorum-Array into the Joomla Environment (e.g. HTML-Title, Head-Information links to css and  javascripts) 

Nearly everything seems to work now, only after posting the redirection to the initial forum does not work. Instead Phorum always shows the index page and the forum_id in the Phorum-Array is set to zero even though the posted article was added correctly to the relevant forum.

Any suggestions or help on this behaviour would be appreciated.  

Kind regards
P.</description>
        <link>https://www.phorum.org/support/read.php?28,141427,141427#msg-141427</link>
        <lastBuildDate>Wed, 16 Sep 2026 17:30:15 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,144053#msg-144053</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,144053#msg-144053</link>
            <description><![CDATA[ Hi again,<br />
<br />
I have integrated the module in my website now. There are still some small changes to do before a first module release - but if someone wants to see the results, look here:<br />
<br />
[<a href="http://www.electronic-thingks.de/en/forum.html?list,8" target="_blank"  rel="nofollow">www.electronic-thingks.de</a>]<br />
<br />
If you switch the languages (German &lt;-&gt; English) you will also recognize my problem described above: the new language do not appear instantly in phorum but only in the date values. After reloading the site all is ok.<br />
<br />
Best regards,<br />
Christoph (working hard on first module ;-)]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 14 Apr 2010 01:02:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143997#msg-143997</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143997#msg-143997</link>
            <description><![CDATA[ Hi again :-)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
In my Drupal plugin for my External Authentication module, I used the &quot;common_post_user&quot; hook to set the $GLOBALS[&quot;PHORUM&quot;][&quot;language&quot;] field based on the url visited.  In Drupal, localization is added to the query string (eg. w<b></b>ww.drupal.com/node/1/en or ww<b></b>w.drupal.com/node/1/ru)</div></blockquote>
<br />
I have created a small module now which should translate my Joomla settings to the forum.<br />
As you can see, I use the JoomFish component and therefore get its language variable which gives me &quot;en&quot; or &quot;de&quot;.<br />
<br />
Well, it does the right setting - but only the date formatting - e.g. of the forums list - is switched to the new language. The template texts (&quot;Topics&quot;, &quot;Login&quot; etc.) are not changed until I reload the page (Iceweasel (Firefox) 3.5.6 under Linux). Using WinXP and IE8 after switching language I also have to reload the page to get the complete translated forum pages.<br />
So it seems that there is a template caching.<br />
<br />
I already noticed this behaviour before when I modified the CSS files of Phorum: to get the changes working I always had to clear the browsers cache :-/<br />
<br />
This is strange because e.g. Joomla itself loads completely new when clicking the reload button (so CSS modifying was easier).<br />
<br />
I also have turned off all caching in the Phorum &quot;Cache settings&quot; section - but it still creates me some files in the Phorum cache folder.<br />
<br />
Are there any hints to this behaviour?<br />
<br />
My module:<br />
<br />
[code=&quot;php&quot;]<br />
&lt;?php<br />
<br />
if (!defined (&quot;PHORUM&quot;)) return;<br />
<br />
/* phorum module info<br />
title: Set Joomla language<br />
desc: This module gets the current Joomla language setting and sets it for Phorum, too.<br />
version: 1.0<br />
release_date: 2010-04-06<br />
require_version: 5.2.0<br />
category: integration<br />
hook: common_post_user|phorum_mod_joomla_language_common_post_user<br />
*/<br />
<br />
function phorum_mod_joomla_language_common_post_user ()<br />
{<br />
    global $PHORUM;<br />
<br />
    switch ($_REQUEST[&#039;jfcookie&#039;][&#039;lang&#039;])<br />
    {<br />
      case &#039;en&#039;: $PHORUM[&#039;user&#039;][&#039;user_language&#039;] = &#039;english&#039;;<br />
                 $PHORUM[&#039;language&#039;] = &#039;english&#039;; break;<br />
      default:   $PHORUM[&#039;user&#039;][&#039;user_language&#039;] = &#039;german.utf-8&#039;;<br />
                 $PHORUM[&#039;language&#039;] = &#039;german.utf-8&#039;;<br />
    }<br />
}<br />
<br />
?&gt;<br />
<br />
[/code]]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 07 Apr 2010 02:41:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143988#msg-143988</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143988#msg-143988</link>
            <description><![CDATA[ Hi guys,<br />
<br />
I have some good news :-)<br />
<br />
First I wrote a Joomla search plugin for integrating the phorum database into the usual Joomla search function (I have integrated some preferences in the administration area for accessing Phorums data base etc.) - it seems to work :-)<br />
I attached it for your tests (together with README and another file for creating the special URLs).<br />
<br />
Second I have done many further steps in writing the &quot;Small thread  thumbs&quot; module: the administration area is working, the generation of thumbs for older messages is working (thank you Joe for the &quot;template&quot; :-) - and the template modification also work. So at this point you&#039;re at least able to do a scanning of all threads in the admin section to update the thumbs: it works.<br />
<br />
I&#039;m working now on the different hooks - some already work, some are missing at this moment. But it seems that I will finish the complete module before the weekend. :-)<br />
<br />
Searching of the latest attached images of a thread should take place within the following hooks<br />
(please correct me if I missed one or have listed one I don&#039;t need!):<br />
<br />
- after_approve<br />
- after_merge<br />
- after_split<br />
- hide_thread  (may be we have to delete its thumbs then so one one can access them through URL?)<br />
- before_delete<br />
- after_post<br />
<br />
Edit: Oops, I have a problem for handling &#039;after_split&#039;. It solely gives me the thread id of the new thread - but I also need to know the old thread id to update its last thumbs. How could I get this data?<br />
<br />
Best regards,<br />
Christoph]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 05 Apr 2010 11:39:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143954#msg-143954</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143954#msg-143954</link>
            <description><![CDATA[ Jogger,<br />
<br />
I once had to do a conversion from FireBoard to Phorum, and documented it here:<br />
<br />
<a href="http://www.phorum.org/phorum5/read.php?14,129349,129349" target="_blank" >http://www.phorum.org/phorum5/read.php?14,129349,129349</a><br />
<br />
Fireboard was a Joomla forum module, which has long been defunct - I think Kunena is the 2-generations-forward evolution of it, but possibly in name only.<br />
<br />
Anyhow, give that thread a read for some of the nuts and bolts of what I needed to do to make another forum DB &quot;speak phorum&quot; - you might glean some general insights from it.]]></description>
            <dc:creator>Sean Phelan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 01 Apr 2010 10:32:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143925#msg-143925</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143925#msg-143925</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
One problem I recently ran into was that the updated version checking code did not like my generic &quot;require_version: 5.2&quot; but needed &quot;require_version: 5.2.0&quot;.  You may have this or some other unsupported information in that file.</div></blockquote>
<br />
Yeah - that was the fault - I also used &quot;5.2&quot; instead of &quot;5.2.0&quot;. Now I can continue further development :-)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
Your module concept sounds great and your proposed structure should work just fine.  As for the hooks needed, my module should give you a pretty good idea of what is necessary as it also triggers on posting/editing/merging/splitting/deleting of messages.  It can also show you how to save/read the meta data of the thread starting messages.<br />
You may also want to look at providing those thumbnails for each individual message in the list_threads view, and possibly even the read_threads and read_hybrid views.</div></blockquote>
<br />
Yes, I have already rewritten the template section to my needs :-)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
Ah the joys of module development truly never end :-)</div></blockquote>
<br />
Hehe, I hope it is not too addictive to me. But I really like it :-)<br />
<br />
BTW: because of the nice admin interface - shouldn&#039;t it be best to write any conversion scripts (e.g. from miniBB to Phorum - I have done this yesterday, but in a separate script) as a module? You would be able to use the phorum functions (db layer!) and you can let users set some parameters (database, password etc.) - if they are needed.<br />
My dream would be a monster module &quot;Forum conversion&quot; with two drop down lists : &quot;Please choose source forum type: Phorum, miniBB, phpBB, Kunena, SMF ...&quot; and &quot;Please choose destination forum type&quot; and a big button &quot;Do it!&quot; :-)<br />
<br />
Well, if we want to push Phorum, we should delete the &quot;Phorum&quot; entry from the source list and set destination list to only &quot;Phorum&quot; ;-)<br />
<br />
Ok, that&#039;s all for now - back to module-ing ...<br />
<br />
Chris]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 31 Mar 2010 08:07:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143924#msg-143924</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143924#msg-143924</link>
            <description><![CDATA[ First a word of caution, module development can be addictive. ;-)  Secondly, the DOCS section on this website will be very helpful as you go forward.  The Developer Manual explains most of the hooks that are available and has some basic information on module/template building.  The Phorum API section does a great job of explaining many of the API functions that are built into Phorum.  Finally, if you can&#039;t find an API to get or save some information in the database, the DB Layer offers powerful functions for interacting with the database.<br />
<br />
As for not being able to enable your module, I would start with checking your info.txt file.  Near the end of the Developer Manual you will find a link to the <a href="http://www.phorum.org/docs/html/developer/ch02s03s02.html#modules.moduleinfokeys" target="_blank" >Keys and values in module information table</a> which explains the different information possible in that file.  One problem I recently ran into was that the updated version checking code did not like my generic &quot;require_version: 5.2&quot; but needed &quot;require_version: 5.2.0&quot;.  You may have this or some other unsupported information in that file.  Please also note that you cannot have multiple lines for things like &quot;desc&quot;.  Each item should be on a single line.<br />
<br />
Your module concept sounds great and your proposed structure should work just fine.  As for the hooks needed, my module should give you a pretty good idea of what is necessary as it also triggers on posting/editing/merging/splitting/deleting of messages.  It can also show you how to save/read the meta data of the thread starting messages.<br />
<br />
You may also want to look at providing those thumbnails for each individual message in the list_threads view, and possibly even the read_threads and read_hybrid views.  Ah the joys of module development truly never end :-)]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 31 Mar 2010 07:45:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143922#msg-143922</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143922#msg-143922</link>
            <description><![CDATA[ Hi Joe,<br />
<br />
thank you very much for the hint to your CAI module - it seems to be the perfect start for  writing my &quot;small thread thumbs&quot; module :-)<br />
<br />
I already have rewritten the settings.php - which now let you determine thumbnail size, number of shown thumbs per thread  and your warning of a not modified template (for now I only use list.tpl). But I have a problem: I can set all paramters and they are saved in DB but I am not able to enable the module at the modules list (with On/Off). This field is disabled for my module and I don&#039;t know why :-( Any suggestions for the reasons from your side?<br />
<br />
My way would be the following:<br />
<br />
When a message is posted/edited (I don&#039;t know of all hooks I need - may be you can give me some help) I will check it for attached images, create thumbs of them in directory &quot;thumbs&quot; under {phorum_dir/mod/small_thread_thumbs} with the name generated by its file_id in the &quot;files&quot; db table (e.g. &quot;1234&quot;) so there is no possibility of name collision.<br />
<br />
Then I will search the first message of that thread (parent_id then is 0, or?) and save the thumb ids of the last added images to it. So when then put them in the template we only have to look for its meta field and create some img links to the file_ids in the thumbs directory.<br />
<br />
To create the thumbs for already existing messages I will take your (modified) function in settings as &quot;run_attachment_check()&quot; :-)<br />
It will create completely new thumbs for all attached images and modify all first thread messages.<br />
<br />
Any hints/problems from your side?<br />
<br />
It is really fun to create a module for Phorum - so much easier than for other forums - I like it :-)<br />
<br />
Chris]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 31 Mar 2010 07:21:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143896#msg-143896</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143896#msg-143896</link>
            <description><![CDATA[ The good news is that modules can access multiple hooks so writing one can be enough.  Though it is often recommended that you separate different functionalities into different modules (so you don&#039;t have to come down on me again Maurice ;-) ).<br />
<br />
As for your image thumbnails, it sounds like you&#039;ve thought it through a bit, though I would say that after your initial conversion script to create the top three thumbnails, you would only need to update them again after a new message has been posted to the thread/topic (or an old one has been edited).  As for displaying the messages (and possibly even creating that initial conversion script), I am going to point you to another module I wrote which is somewhat similar, my Custom Attachment Icons module.  This module adds icons to each post in a list page for the different types of attachments in the post so it can show you how to add/update thumbnails after a message is posted.  It also has a timeout-resistant script to scan through previous messages for attachments which can serve as an example for the initial conversion script.<br />
<br />
Actually, if you do create a separate module to show those thumbnails, and can write it in such a way that others could make use of it, I think it would make a great contribution to the Phorum community (as would your Joomla guide).<br />
<br />
Either way, good luck with your conversion and customization and I&#039;ll start some coffee brewing for you :-)]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Tue, 30 Mar 2010 07:01:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143892#msg-143892</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143892#msg-143892</link>
            <description><![CDATA[ Hi again!<br />
<br />
Thank you for your replies, guys :-)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
In the Admin Section &gt; General Settings, there is a setting called &quot;Allow Linking To Uploaded Files&quot; which defaults to &quot;Only from the forum&quot; but can be changed to &quot;From this web site&quot; or &quot;From any web site&quot; one of which should solve your permission denied issue.</div></blockquote>
<br />
Yes, yes - I knew I saw it but didn&#039;t remember where - now all works fine with the images :-)<br />
One question: are the generated thumbs of the module cached anywhere? (I ask because I have many pics in some threads so it would take a long time to resize them all again and again.)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
In my Drupal plugin for my External Authentication module, I used the &quot;common_post_user&quot; hook to set the $GLOBALS[&quot;PHORUM&quot;][&quot;language&quot;] field based on the url visited. In Drupal, localization is added to the query string (eg. www.drupal.com/node/1/en or www.drupal.com/node/1/ru)</div></blockquote>
<br />
Thank you for the hint. I have already read some docs about modules in Phorum now and must say: very, very good development - finally there seems to be no &quot;ouch, new forum version - where and what have I changed after last update??? Arghh!&quot; anymore ;-)<br />
<br />
Joomla puts the current language in the request parameters, too. So it is available when calling portable/phorum.php.<br />
I want to override the forum with Joomla settings because Phorum is embedded in Joomla and not vice versa :-)<br />
I&#039;m willing to learn how to write a module (see below) but: Do I really have to use a module for such a &quot;small thing&quot;?<br />
<br />
Ok, another issue:<br />
In my miniBB forum I have a nice feature for the thread lists: if there are any images <b>in</b> messages of a thread this thread entry gets very small additional thumbnails of three images (in fact it also gets the latest three pics so these thumbs always show the newest pics). This is a very nice feature and makes users interested in these threads.<br />
To show this more clearly I have attached a screenshot of it.<br />
<br />
Currently I&#039;m converting the miniBB data base to Phorum (this is why my reply took some days this time ;-) - which is nearly completed. I saw that pics in Phorum are saved in the database itself. My idea would be then to took all the pics of a thread, sort them by date descending and take the three first entries. Then I will check a specified directory if the thumbs already exist and if not, generate the thumbnails one by one and save them with the (unique?) file_id from the phorum_files data table. Then I have to create the links to this thumbnails and add them behind the thread title.<br />
<br />
Ok, all this should be done in a module. But what hook should I use? Are my thoughts about this correct?<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sean Phelan</strong><br />
Keep us posted!</div></blockquote>
<br />
Yes, of course I will do.<br />
When I have finished migration and integration in Joomla I will write a complete tutorial how to integrate Phorum in Joomla. I know that there are many many who wants to but don&#039;t know how.<br />
And all of the native Joomla forums (and I tested all of the currently available) use the Joomla user login etc. which isn&#039;t wished by me and others.<br />
Users of a forum don&#039;t need access to a CMS automatically so I don&#039;t want there entries in the Joomla user table.<br />
There should be really a push for Phorum if we could say: &quot;You can migrate your old forum easily and for embedding in Joomla simply follow this instructions here&quot;.<br />
<br />
Ok, that&#039;s it for now :-)<br />
<br />
Best regards,<br />
Chris]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Tue, 30 Mar 2010 04:54:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143852#msg-143852</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143852#msg-143852</link>
            <description><![CDATA[ In the Admin Section &gt; General Settings, there is a setting called &quot;Allow Linking To Uploaded Files&quot; which defaults to &quot;Only from the forum&quot; but can be changed to &quot;From this web site&quot; or &quot;From any web site&quot; one of which should solve your permission denied issue.<br />
<br />
In my Drupal plugin for my External Authentication module, I used the &quot;common_post_user&quot; hook to set the $GLOBALS[&quot;PHORUM&quot;][&quot;language&quot;] field based on the url visited.  In Drupal, localization is added to the query string (eg. w<b></b>ww.drupal.com/node/1/en or ww<b></b>w.drupal.com/node/1/ru)<br />
<br />
Hope these suggestions help a bit and good luck on creating your site, though it sounds like you have things well in hand.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sat, 27 Mar 2010 22:06:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143850#msg-143850</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143850#msg-143850</link>
            <description><![CDATA[ Jogger,<br />
<br />
I&#039;m glad to see you&#039;re making good progress!  One day I might be asking you for some of this same advice in return :)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Another thing is the search function of Joomla. Of course I really would appreciate a solution where someone could search both: forum and remaining site. May be I will write a search plugin for Joomla - or is there still an existing solution on your side?</strong><br />
</div></blockquote>
<br />
My thinking here is that the trick is use a &quot;site&quot; search and not a &quot;joomla&quot; search.  I did a quick search on Joomla extensions and found a few which might work:<br />
<a href="http://extensions.joomla.org/extensions/search-a-indexing/site-search/4871" target="_blank"  rel="nofollow">http://extensions.joomla.org/extensions/search-a-indexing/site-search/4871</a><br />
<a href="http://extensions.joomla.org/extensions/search-a-indexing/site-search/4066" target="_blank"  rel="nofollow">http://extensions.joomla.org/extensions/search-a-indexing/site-search/4066</a><br />
<a href="http://extensions.joomla.org/extensions/search-a-indexing/site-search/2930" target="_blank"  rel="nofollow">http://extensions.joomla.org/extensions/search-a-indexing/site-search/2930</a><br />
<br />
What I was scanning for were modules that didn&#039;t index <i>Joomla DB Content</i> (articles, etc.), but rather indexed <i><i>HTTP content</i></i> (ie, normal web pages).  <br />
<br />
The ones I found as extensions are probably all Google-based, but you could also look at swish-e, or sphinx as search engines you&#039;d set up for your site.<br />
<br />
Using Jumi, you could wrap in a simple PHP interface to just about any search engine and leave the Joomla intricacies for someone else to negotiate.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>One real problem I got is that I cannot download attachments and show pics (with the Embed Images module) because he then give me something like this:  Permission denied: links to files in the forum are only allowed from the forum itself.  Do you know how to get rid of this message?</strong><br />
</div></blockquote>
<br />
I don&#039;t have any insight into this, except that it&#039;s obviously another symptom of URL inconsistency.  One quick thing to try ... in the phorum admin, isn&#039;t there a place to add alternate URLs for the system to accept as OK?  Maybe adding the URL of the referrer might help.<br />
<br />
Otherwise ... you&#039;re testing this locally, right?  Search for the error message, find the line of code, and work backwards.  Phorum&#039;s code is actually very easy to read, and you&#039;d get enough perspective to ask the right question of the real phorum gurus (Maurice, Brian, Joe, Thomas, etc...)<br />
<br />
Keep us posted!<br />
<br />
Sp]]></description>
            <dc:creator>Sean Phelan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sat, 27 Mar 2010 19:50:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143835#msg-143835</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143835#msg-143835</link>
            <description><![CDATA[ Hi Sean,<br />
<br />
I&#039;m on a good way now. I solved the &quot;directory problem&quot; and finally realised, that there really is no need for mod_rewrite.<br />
I also have installed Jumi (nice extension). So for now my Joomla integration looks like this:<br />
<br />
I created an article which contains only this:<br />
[code=&quot;php&quot;]<br />
{jumi [forum/portable/phorum.php]}<br />
[/code]<br />
This article now is linked to my main menu so when calling <pre class="bbcode">http://localhost/joomla/forum.html</pre> (I have activated SEO in Joomla) the forum index page is shown.<br />
<br />
In phorum_settings.php I modified the url rewriting this way:<br />
[code=&quot;php&quot;]<br />
// We have to alter the urls a little<br />
function phorum_custom_get_url ($page, $query_items, $suffix, $pathinfo)<br />
{<br />
    $PHORUM=$GLOBALS[&quot;PHORUM&quot;];<br />
    //print_r ($PHORUM);<br />
<br />
    //$url = &quot;$PHORUM[http_path]/portable/phorum.php&quot;;<br />
    $url = &quot;forum.html&quot;;<br />
<br />
    if ($pathinfo !== NULL) $url .= $pathinfo;<br />
    $url .= &quot;?$page&quot;;<br />
<br />
    if(count($query_items)) $url.=&quot;,&quot;.implode(&quot;,&quot;, $query_items);<br />
<br />
    if(!empty($suffix)) $url.=$suffix;<br />
<br />
    return $url;<br />
}<br />
[/code]<br />
<br />
So all Links in Phorum output now look like this way: <pre class="bbcode">http://localhost/joomla/forum.html?xxxxxx</pre> where xxxxxx is the comma separated list of options.<br />
Joomla knows how to handle forum.html: it outputs the Jumi article and therefore calls phorum.php - fortunately the query string is given to phorum.php, too. So it then can include so correct file (e.g. list.php) with its correct parameters.<br />
<br />
<pre class="bbcode">http://localhost/joomla/forum.html?list,2</pre> for example will show the threads of forum with id 2 etc.<br />
<br />
So there is no need for additional rewriting through the apache rewrite module and I can click myself through the forum :-)<br />
<br />
Of course there are still some things to do: switching Phorum to the language Joomla uses (I use JoomFish with German and English) so English speaking visitors also get the forum in English.<br />
<br />
Another thing is the search function of Joomla. Of course I really would appreciate a solution where someone could search both: forum and remaining site. May be I will write a search plugin for Joomla - or is there still an existing solution on your side?<br />
<br />
One real problem I got is that I cannot download attachments and show pics (with the Embed Images module) because he then give me something like this:<br />
<br />
<span style="color:#FF3300">Permission denied: links to files in the forum are only allowed from the forum itself.</span><br />
<br />
Do you know how to get rid of this message?<br />
<br />
Best regards,<br />
Chris]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sat, 27 Mar 2010 07:47:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143814#msg-143814</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143814#msg-143814</link>
            <description><![CDATA[ Jogger,<br />
<br />
At this point you&#039;ve made it about as far as I did, so my advice will start drying up.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>I now got the &quot;start page&quot; with forum links like this: &quot;host.de/joomla/forum/phorum.php?list,1&quot;  So the rewriting of the phorum links in phorum_settings.php seems to work, but I am in the wrong directory - I would need something like this: &quot;host.de/joomla/forum/portable/phorum.php?list,1&quot;</strong><br />
</div></blockquote>
<br />
You can change the base URL for the portable phorum config to change that URL to the &quot;portable&quot; ... Or, make a phorum.php in the root dir which executes the portable code ... or, maybe, have portable phorum point to the Joomla URL for the addphp handler menuitem you set up?<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Of course I have to catch all phorum.php-calls in my .htaccess and redirecting them to the Joomla template (which then has to call it with the given parameters) - but is this all? Or in other words: Are all informations included in the GET parameters?</strong><br />
</div></blockquote>
<br />
In theory, I think you have it right.  In practice, though, it might take a bit work.  The last time I tried this, I had some trouble with the GET parameters making it all the way through to the phorum code w/out getting mangled by Joomla or the modules.<br />
<br />
Your experience might be different with addphp ... I was working with Jumi.]]></description>
            <dc:creator>Sean Phelan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 26 Mar 2010 08:02:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143789#msg-143789</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143789#msg-143789</link>
            <description><![CDATA[ Hmmm.<br />
<br />
I&#039;m sorry but what are these two modes doing?<br />
Have I overlooked an option or their descriptions?<br />
<br />
I&#039;m new to Phorum but I think I use &quot;regular&quot; mode - since I installed it like it is said in the instructions and then only modified the (copied) template until now.<br />
<br />
Any help would be wonderful :-}<br />
<br />
Addendum:<br />
<br />
Ok, I think I finally got the difference between the two ;-)<br />
If I understand it right the code in the portable folder mainly is for creating an interface (by calling phorum.php) and giving the possibility to edit all links in Phorum to fit the needs of the environmental CMS etc.<br />
<br />
So I changed my code:<br />
<br />
I call the start page of Phorum in my Joomla by including and running a special file &quot;forum.php&quot;:<br />
<br />
[code=&quot;php&quot;]<br />
  $et_aktuelles_verzeichnis = getcwd();<br />
  chdir (&#039;./forum/portable&#039;);<br />
<br />
  include_once (&#039;phorum.php&#039;);<br />
<br />
  chdir ($et_aktuelles_verzeichnis);<br />
[/code]<br />
<br />
I now got the &quot;start page&quot; with forum links like this:<br />
&quot;host.de/joomla/forum/phorum.php?list,1&quot;<br />
<br />
So the rewriting of the phorum links in phorum_settings.php seems to work, but I am in the wrong directory - I would need something like this:<br />
&quot;host.de/joomla/forum/portable/phorum.php?list,1&quot;<br />
<br />
$PHORUM_DIR is set correctly with the path to ....joomla/forum (which is the folder containing all of myPhorum code).<br />
Where is my fault?<br />
<br />
But the most important question: Is this &quot;link rewriting&quot; (beside of including css and script files in the header) all I need to do to make Phorum work correctly?<br />
Of course I have to catch all phorum.php-calls in my .htaccess and redirecting them to the Joomla template (which then has to call it with the given parameters) - but is this all?<br />
Or in other words: Are all informations included in the GET parameters?<br />
<br />
Chris]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 25 Mar 2010 10:45:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143787#msg-143787</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143787#msg-143787</link>
            <description><![CDATA[ Jogger,<br />
<br />
First question ... are you using phorum in &quot;portable&quot; mode or regular mode?<br />
<br />
Sp]]></description>
            <dc:creator>Sean Phelan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 25 Mar 2010 06:10:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,143774#msg-143774</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,143774#msg-143774</link>
            <description><![CDATA[ Hello!<br />
<br />
I&#039;ve found this topic about Joomla integration of Phorum (which seems to fit my needs best).<br />
<br />
I&#039;m trying to do the same for my Joomla installation (also with forum authentication done by Phorum itself because I am the only one writing new articles etc. on my site, so I don&#039;t need user synchronisation).<br />
<br />
I&#039;m a relative newbie to Phorum so I&#039;m not sure the way I&#039;m thinking is correct:<br />
<br />
1.) I also use the Joomla addphp plugin and have created a content which calls the Phorum index.php<br />
<br />
2.) I changed the header.tpl and footer.tpl in my template (a copy of the lightweight template) so the only the &lt;div id=&quot;#forum&quot;&gt; container exists<br />
<br />
3.) I put the css and script links in my Joomla template<br />
<br />
Ok, for the main page of Phorum this all works fine - but of course when I click on a link in Phorum, there is no Joomla &quot;frame&quot; anymore because Phorum does not know of Joomla and will show me only itself.<br />
<br />
My idea would be the following: I will have to catch all calls of files of Phorum, extract the informations (which file is called, parameters etc.) and redirect these to my Joomla template.<br />
This could be done by mod_rewrite in the .htaccess: catch every call of the Phorum directory (which is &quot;/forum&quot; in my Joomla root directory) and put the called file name (e.g. &quot;list.php&quot;) with it&#039;s GET parameters as new GET variables (may be &quot;?phorumfile=list.php&amp;phorumparams=XYZ&quot; so I can work with them in my Joomla template.<br />
<br />
My problem: I don&#039;t exactly know what kind of data I have to take care of (GET/POST parameters, which filenames).<br />
<br />
Is the way I want to embed Phorum correct and possible?<br />
<br />
I also found the &quot;portable&quot; folder but don&#039;t not know if and how to use it for my Joomla installation.<br />
It would be great if someone could tell me something about it&#039;s use :-)<br />
<br />
BTW: I tried so many forums but Phorum is by far that one with the best code base.]]></description>
            <dc:creator>jogger</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 24 Mar 2010 09:26:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,142226#msg-142226</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,142226#msg-142226</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice</strong><br />
Some code from that module would be simpler to implement in 5.2. In fact, I did so once and finished a nice new version of the mod, but then a Harddisk Accident Of Which We Do Not Speak occurred...</div></blockquote>
<br />
Ouch.... I know what that pain feels like.]]></description>
            <dc:creator>Sean Phelan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 04 Dec 2009 17:11:59 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,142224#msg-142224</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,142224#msg-142224</link>
            <description><![CDATA[ For ideas, take a look at the embed_phorum module that I wrote for Phorum 5.1. That one is all about embedding Phorum into some other system. There are several hurdles in doing so (or in integrating any non-CMS-specific application into a CMS), but the module took care of all the issues.<br />
<br />
Some code from that module would be simpler to implement in 5.2. In fact, I did so once and finished a nice new version of the mod, but then a Harddisk Accident Of Which We Do Not Speak occurred...]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 04 Dec 2009 16:36:13 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,142222#msg-142222</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,142222#msg-142222</link>
            <description><![CDATA[ P,<br />
<br />
I hit a similar roadblock in the spring, trying to embed phorum in Joomla using Jumi (another php-include component).<br />
<br />
Like you, the sticky point seemed to be the URL processing.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>P</strong><br />
<br />
thank you for the usefull information. The problem was caused by the function phorum_custom_get_url form the portable code that cuts off the http_host from the redirect_url. </div></blockquote>
<br />
Does that mean you found &amp; fixed it? <br />
<br />
If so, what did you change?<br />
<br />
Either way, this thread has been useful for me - I need to get back to that roadblock myself, and this gives me some good ideas.<br />
<br />
Sp]]></description>
            <dc:creator>Sean Phelan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 04 Dec 2009 16:27:17 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,141647#msg-141647</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,141647#msg-141647</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
thank you for the usefull information. The problem was caused by the function phorum_custom_get_url form the portable code that cuts off the http_host from the redirect_url.<br />
<br />
Regards <br />
P.]]></description>
            <dc:creator>pjotr</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 29 Oct 2009 16:40:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,141551#msg-141551</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,141551#msg-141551</link>
            <description><![CDATA[ Redirection is handled from include/posting/action_post.php. Around line 382, the redirect URL is formatted using:<br />
<br />
<pre class="bbcode">
$redir_url = phorum_get_url(PHORUM_LIST_URL);</pre>
<br />
right after this, the redirection is done using phorum_redirect_by_url($redir_url). So for debugging the behavior, this would be a starting point. Check out what URL is generated there within your environment.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Tue, 27 Oct 2009 15:05:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,141546#msg-141546</guid>
            <title>Re: Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,141546#msg-141546</link>
            <description><![CDATA[ I&#039;ve found that the above described problem with the redirection after posting a new article is caused by the portable code. <br />
The redirection works unless I use the portable code but I&#039;m not sure how this happens. Perhaps some Variables are not set through the portable code? Can anyone (maybe from the developer team) describe how phorum is handling the redirection after a new post is added to the database ?<br />
<br />
Thanks in advance]]></description>
            <dc:creator>pjotr</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Tue, 27 Oct 2009 14:50:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,141427,141427#msg-141427</guid>
            <title>Redirection after Posting (Phorum Integration in Joomla via addphp)</title>
            <link>https://www.phorum.org/support/read.php?28,141427,141427#msg-141427</link>
            <description><![CDATA[ Hi all, <br />
<br />
I&#039;m working on the Integration of Phorum into Joomla with the addphp plugin (http://www.run-digital.com/loesungen/open-source/addphp/25-addphp.html). The plugin allows to integrate Php-code in Joomla content items. I use the the plugin to integrate the Phorum portable code into a Joomla article. (I want to mention that I don&#039;t use the Joomla! 1.5 plugin for Phorum integration discussed elsewhere here in the forum because user integration is not the priority objective).  <br />
 <br />
I&#039;ve changed the custom_url- Function in the portable code to add and extract the necessary data from the joomla-type urls and hacked my joomla-template to transfer some Variables from the Phorum-Array into the Joomla Environment (e.g. HTML-Title, Head-Information links to css and  javascripts) <br />
<br />
Nearly everything seems to work now, only after posting the redirection to the initial forum does not work. Instead Phorum always shows the index page and the forum_id in the Phorum-Array is set to zero even though the posted article was added correctly to the relevant forum.<br />
<br />
Any suggestions or help on this behaviour would be appreciated.  <br />
<br />
Kind regards<br />
P.]]></description>
            <dc:creator>pjotr</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 23 Oct 2009 06:00:14 -0500</pubDate>
        </item>
    </channel>
</rss>
