<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Automatic HTTP Path</title>
        <description> This module automatically sets the HTTP Path configuration option, based on the active URL. This can be useful if for some reason you run one Phorum install under various host names and/or directories (e.g. a Phorum on a private space intranet server that is also accessible through a public URL or a server that has to be accessible on both an http:// and https:// URL).


Changelog:
----------

2015/09/08 version 1.0.9 Oliver Riesen (oliver@riesen.org)

    - Strip query string from REQUEST_URI because slashes in the query
      string resulted in bad http_path.

2011-07-21 1.0.8

    - Even more updates for the path detection in various environments.

2011-03-30 1.0.7

    - Some more updates to make the path detection more robust.

2011-02-20 1.0.6

    - An attempt to fix some strange issue where the http_path is broken
      (i.e. empty) for Phorum scripts that are run from cron.

    - Updates to the automatic HTTP path generation code, to accomodate
      for the use of path info in a URL (this makes this module work for
      URLs like [site.com])

2008-07-30 1.0.5

    - Added compatibility for the $PHORUM[&amp;#039;template_http_path&amp;#039;] variable.
      That one needs some rewriting too, since it&amp;#039;s based on the
      $PHORUM[&amp;#039;http_path&amp;#039;]. We do not change this variable if some other
      mod changed it already. In that case, the files might be coming
      from some CDN.

2008-01-22 1.0.4

    - Fixed a problem with the stub CSS and JavaScript code that this
      module registers. Winzip did not unpack the zero byte css.tpl.
      I changed the code to let the module provide the stub code by
      means of a function instead. That should work in all cases.

      Thanks to Steve Healy for reporting this issue.

2008-01-19 1.0.3

    - Fixed undefined index warning for the css register hook.

    - The http_path is not generated anymore for the admin interface.

    - Added a formatting fixup hook that will rewrite URLs in subjects and
      bodies that use the original http_path to the dynamic http_path. This is for
      example needed for the smileys module, which caches the URLs
      for the smiley images from the admin using the configured
      http_path.

      Thanks to Steve Healy for reporting these issues.

2008-01-18 1.0.2

    - The module now makes Phorum use the correct URLs in cached
      CSS and JavaScript code.

2007-12-08 1.0.1

- Use common_pre hook instead of common.

- Strip ending slash for the http_path. That is how Phorum expects it.

2007-11-30 1.0.0

- Initial release

</description>
        <link>https://www.phorum.org/support/read.php?62,125914,125914#msg-125914</link>
        <lastBuildDate>Tue, 08 Sep 2026 11:01:05 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,160791#msg-160791</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,160791#msg-160791</link>
            <description><![CDATA[ Hi Scott,<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Scott Finegan</strong><br />
I haven&#039;t had any issues that I detected using this module, for the admin and the forum.<br />
In the admin-General Settings page-File/Path Settings- HTTP path entry I have [<a href="https://mysite.com" target="_blank"  rel="nofollow">mysite.com</a>]</div></blockquote>
<br />
Yes, that works! I changed now my http path also to https. Thanks!<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 26 Aug 2016 08:08:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,160790#msg-160790</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,160790#msg-160790</link>
            <description><![CDATA[ I haven&#039;t had any issues that I detected using this module, for the admin and the forum.<br />
<br />
In the admin-General Settings page-File/Path Settings- HTTP path entry I have https: //mysite.c om]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 26 Aug 2016 07:59:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,160789#msg-160789</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,160789#msg-160789</link>
            <description><![CDATA[ In my Phorum only few pages are available via http<b>s</b> like register, login, control center and <b>administration</b>.<br />
<br />
But especially the administration is excluded from this module:<br />
<br />
[code=&quot;php&quot;]<br />
    // Do not run this code from the admin interface, otherwise the<br />
    // HTTP Path setting would act on the generated http_path.<br />
[/code]<br />
<br />
Why not? Is there any special reason?<br />
<br />
Since I only need the automatic switch between http and https I thinking about a new module only doing this...]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 26 Aug 2016 03:29:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,156172#msg-156172</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,156172#msg-156172</link>
            <description><![CDATA[ If you wish to force https you need to redirect in .htaccess to https]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 22 Oct 2015 08:54:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,156171#msg-156171</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,156171#msg-156171</link>
            <description><![CDATA[ Hello,<br />
<br />
I just moved my website from http to https, and this module works fine.<br />
<br />
Thanks Maurice :)]]></description>
            <dc:creator>cactux</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 22 Oct 2015 07:13:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,156035#msg-156035</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,156035#msg-156035</link>
            <description><![CDATA[ <pre class="bbcode">
2015/09/08 version 1.0.9 Oliver Riesen (oliver@riesen.org)
- Strip query string from REQUEST_URI because slashes in the query string resulted in bad http_path.
</pre>]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 08 Sep 2015 07:50:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,155671#msg-155671</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,155671#msg-155671</link>
            <description><![CDATA[ Hey hey,<br />
<br />
I really dont like to post into old threads but i have a small addition to this mod :)<br />
<br />
The current mod version isn&#039;t compatible with the Search Friendly URL&#039;s mod: it breaks every css,js,img path. My addition fixes the issue, its sort of a workaround but it works.<br />
<br />
I commented the addition with [code=&quot;php&quot;]<br />
// PPS&gt; Search Friendly Fix<br />
// &lt;PPS<br />
[/code]<br />
<br />
Would be cool if you create a new build with this fix ;).<br />
<br />
Greetings<br />
KatyWings<br />
Glarotech GmbH]]></description>
            <dc:creator>KatyWings</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 26 Feb 2015 02:09:12 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,148736#msg-148736</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,148736#msg-148736</link>
            <description><![CDATA[ It&#039;s a bit of a chicken-egg thing here, since the module is trying to build the http_path, but you feed it with information from the existing http_path. I can think of some edge cases (not for your setup) where this could go wrong.<br />
<br />
I&#039;ll have to think if I can make this module work automatically correctly for cases where the Phorum API is access from a page that is outside the Phorum tree.<br />
<br />
Thanks for the comment!]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 08 May 2011 03:46:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,148734#msg-148734</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,148734#msg-148734</link>
            <description><![CDATA[ Thank you very much for this module, it&#039;s exactly what I was looking for. However, I needed to modify it a bit to make it work on my site and I thought I&#039;d share my changes in case someone else is in a similar situation. On my site (<a href="http://www.mopedarmy.com/" target="_blank"  rel="nofollow">http://www.mopedarmy.com/</a>) I have links to all my forums listed in a drop down navigation on any page. This is generated by Phorum, based on the user&#039;s appropriate permissions, by calling the phorum_build_forum_list() method within the &quot;/include/forum_function.php&quot; file. I am using the external_authentication mod to integrate the Phorum login with my own login system.<br />
<br />
The problem is that the Automatic HTTP Path module determines the directory for the forum based on the current URL. If I implement it as-is then then the path to the forums in my drop down nav is wrong on every section of the site except within the Phorum itself. To fix this, I made it use the path from the $PHORUM[&quot;http_path&quot;] variable, which is set in the admin tools.<br />
<br />
I changed the following code:<br />
<br />
[code=&quot;php&quot; number=&quot;52&quot;]<br />
$uri = $_SERVER[&#039;REQUEST_URI&#039;];<br />
if (isset($_SERVER[&#039;PATH_INFO&#039;]) &amp;&amp; $_SERVER[&#039;PATH_INFO&#039;] !== &#039;&#039;)<br />
{<br />
    $p = preg_quote($_SERVER[&#039;PATH_INFO&#039;], &#039;!&#039;);<br />
    $uri = preg_replace(<br />
        &#039;!&#039; . preg_quote($p, &#039;!&#039;) . &#039;(\?.*)?$!&#039;,<br />
        &#039;&#039;, $uri<br />
    );<br />
}<br />
<br />
$dir = dirname($uri);<br />
[/code]<br />
<br />
to<br />
<br />
[code=&quot;php&quot;]<br />
$dir = parse_url($PHORUM[&quot;http_path&quot;], PHP_URL_PATH);<br />
[/code]<br />
<br />
Thanks again for the excellent module. I am implementing a separate mobile domain and this helped me quickly solve my problem.]]></description>
            <dc:creator>Simon King</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 07 May 2011 18:08:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,142795#msg-142795</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,142795#msg-142795</link>
            <description><![CDATA[ thanks for your answer, this mod was installed the wrong directory<br />
mods\auto_http_path-1.0.5\auto_http_path<br />
instead of <br />
mods\auto_http_path]]></description>
            <dc:creator>zetoun</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 20 Jan 2010 10:03:53 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,142684#msg-142684</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,142684#msg-142684</link>
            <description><![CDATA[ The file looks complete to me. Check if you uploaded all the files from the package to the mods/auto_http_path folder on the server. The error could indicate a missing info.txt file.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Jan 2010 10:37:00 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,142682#msg-142682</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,142682#msg-142682</link>
            <description><![CDATA[ is a file missing (eg settings.php ) in auto_http_path-1.0.5.tar.gz  and  auto_http_path-1.0.5.zip ? <br />
i have this message on the admin page :<br />
<i>Warning: possible module &quot;auto_http_path&quot; found, but no module information is available for that module.</i>]]></description>
            <dc:creator>zetoun</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Jan 2010 10:20:10 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,132246#msg-132246</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,132246#msg-132246</link>
            <description><![CDATA[ I uploaded version 1.0.5 of the module. This version adds compatibility for the $PHORUM[&#039;template_http_path&#039;] variable. That one needs some rewriting too, since it&#039;s based on the $PHORUM[&#039;http_path&#039;].]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 29 Jul 2008 20:59:01 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,127342#msg-127342</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,127342#msg-127342</link>
            <description><![CDATA[ Thank you too for your patience and problem reports!<br />
I removed our previous conversation from this thread to make it less confusing and scary for newcomers =)]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 22 Jan 2008 13:17:02 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,127339#msg-127339</guid>
            <title>Re: Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,127339#msg-127339</link>
            <description><![CDATA[ Nice work.  Thanks for your help!]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 22 Jan 2008 11:02:29 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,125914,125914#msg-125914</guid>
            <title>Module: Automatic HTTP Path</title>
            <link>https://www.phorum.org/support/read.php?62,125914,125914#msg-125914</link>
            <description><![CDATA[ This module automatically sets the HTTP Path configuration option, based on the active URL. This can be useful if for some reason you run one Phorum install under various host names and/or directories (e.g. a Phorum on a private space intranet server that is also accessible through a public URL or a server that has to be accessible on both an http:// and https:// URL).<br />
<br />
<pre class="bbcode">
Changelog:
----------

2015/09/08 version 1.0.9 Oliver Riesen (oliver@riesen.org)

    - Strip query string from REQUEST_URI because slashes in the query
      string resulted in bad http_path.

2011-07-21 1.0.8

    - Even more updates for the path detection in various environments.

2011-03-30 1.0.7

    - Some more updates to make the path detection more robust.

2011-02-20 1.0.6

    - An attempt to fix some strange issue where the http_path is broken
      (i.e. empty) for Phorum scripts that are run from cron.

    - Updates to the automatic HTTP path generation code, to accomodate
      for the use of path info in a URL (this makes this module work for
      URLs like [<a href="http://site.com/forum/index.php/a/b/c?xyz" target="_blank"  rel="nofollow">site.com</a>])

2008-07-30 1.0.5

    - Added compatibility for the $PHORUM[&#039;template_http_path&#039;] variable.
      That one needs some rewriting too, since it&#039;s based on the
      $PHORUM[&#039;http_path&#039;]. We do not change this variable if some other
      mod changed it already. In that case, the files might be coming
      from some CDN.

2008-01-22 1.0.4

    - Fixed a problem with the stub CSS and JavaScript code that this
      module registers. Winzip did not unpack the zero byte css.tpl.
      I changed the code to let the module provide the stub code by
      means of a function instead. That should work in all cases.

      Thanks to Steve Healy for reporting this issue.

2008-01-19 1.0.3

    - Fixed undefined index warning for the css register hook.

    - The http_path is not generated anymore for the admin interface.

    - Added a formatting fixup hook that will rewrite URLs in subjects and
      bodies that use the original http_path to the dynamic http_path. This is for
      example needed for the smileys module, which caches the URLs
      for the smiley images from the admin using the configured
      http_path.

      Thanks to Steve Healy for reporting these issues.

2008-01-18 1.0.2

    - The module now makes Phorum use the correct URLs in cached
      CSS and JavaScript code.

2007-12-08 1.0.1

- Use common_pre hook instead of common.

- Strip ending slash for the http_path. That is how Phorum expects it.

2007-11-30 1.0.0

- Initial release

</pre>]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 08 Dec 2007 11:47:30 -0600</pubDate>
        </item>
    </channel>
</rss>
