<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module for switching the read-/list-view</title>
        <description> I&amp;#039;ve made a simple module which allows to switch the view (threaded / flat) on the list and/or read-page.

It switches the user-setting for showing flat/threaded list/read so it will remain set for all forums once used.

After you enabled the module you&amp;#039;ve got the new var SWITCHURL available in the templates which you can use to switch the view.
Just add this link somewhere in your templates.
I.e. I&amp;#039;ve put this in header.tpl:
{if SWITCHURL}
&amp;lt;a href=&amp;quot;{SWITCHURL}&amp;quot;&amp;gt;switch view&amp;lt;/a&amp;gt;
{/if}

Have fun with it!</description>
        <link>https://www.phorum.org/support/read.php?16,7125,7125#msg-7125</link>
        <lastBuildDate>Thu, 10 Sep 2026 14:54:59 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,127406#msg-127406</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,127406#msg-127406</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>stevehealy</strong><br />Does this need to be updated for 5.2?</div></blockquote>
<br />
With Thomas&#039; help, this works for 5.2.<br />
<br />
[<a href="http://forum.xpattern.net/read.php?15,117,118#msg-118" target="_blank"  rel="nofollow">forum.xpattern.net</a>]]]></description>
            <dc:creator>Bert Garcia</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 23 Jan 2008 18:25:11 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,125968#msg-125968</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,125968#msg-125968</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>stevehealy</strong><br />Does this need to be updated for 5.2?</div></blockquote>
<br />
sure<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>stevehealy</strong><br />How will it behave with 3 view options rather than 2?</div></blockquote>
<br />
it simply knows only the two current ones.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 10 Dec 2007 12:29:26 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,125967#msg-125967</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,125967#msg-125967</link>
            <description><![CDATA[ Does this need to be updated for 5.2?<br />
<br />
How will it behave with 3 view options rather than 2?<br />
<br />
thanks,<br />
...Steve]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 10 Dec 2007 12:19:30 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,120988#msg-120988</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,120988#msg-120988</link>
            <description><![CDATA[ A simple tweak to make it multi-lingual - in your templates you can now use:<br />
<br />
<pre class="bbcode">{IF SWITCHURL}&lt;a class=&quot;PhorumNavLink&quot; href=&quot;{SWITCHURL}&quot;&gt;{LANG-&gt;switch_view}&lt;/a&gt;&amp;bull;{/IF}</pre> (Or without the &amp;bull; - I&#039;m using it on the read pages.)<br />
<br />
English, Dutch and Dutch informal included.]]></description>
            <dc:creator>iamback</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 18 Mar 2007 03:09:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,112619#msg-112619</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,112619#msg-112619</link>
            <description><![CDATA[ That is not really true. The module has quite some code that is used to remember the user&#039;s setting for the view mode in the database. Removing the check for being logged in will not make this work like intended. There is no user 0 in the database to store the data for. At best it would become a shared setting for all users with user ID 0, but that&#039;s not the case.<br />
<br />
To remember the setting for anonymous users, one should use another storing mechanism like cookies to remember the view setting.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 03 May 2006 07:06:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,112606#msg-112606</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,112606#msg-112606</link>
            <description><![CDATA[ to let everyone know, this module can be easily hacked to allow non logged in users to change the view as well because the anonymous user is a user as well and has a user ID of 0<br />
all you have to do is remove the check to see if the user is logged in and the module will work for both logged in and non logged in users]]></description>
            <dc:creator>FimJon</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 02 May 2006 17:45:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,112605#msg-112605</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,112605#msg-112605</link>
            <description><![CDATA[ it would really help if there was a way for this module to work without the user being logged in, has anyone gotten it working that way or gotten a hold of the person who did?]]></description>
            <dc:creator>FimJon</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 02 May 2006 16:34:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,15756#msg-15756</guid>
            <title>Re: strange mistake after changing template layout</title>
            <link>https://www.phorum.org/support/read.php?16,7125,15756#msg-15756</link>
            <description><![CDATA[ ok, I found the problem, there is a template read.tpl for the flat view and another template read_threads.tlp for the threaded view.<br />
<br />
thanks<br />
<br />
pepe]]></description>
            <dc:creator>nevasport</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 09 Apr 2005 16:59:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,15734#msg-15734</guid>
            <title>Re: strange mistake after changing template layout</title>
            <link>https://www.phorum.org/support/read.php?16,7125,15734#msg-15734</link>
            <description><![CDATA[ depends on where you added the button for this.<br />
probably you only added this to one template but not the one for the other view.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 08 Apr 2005 12:44:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,15732#msg-15732</guid>
            <title>Re: strange mistake after changing template layout</title>
            <link>https://www.phorum.org/support/read.php?16,7125,15732#msg-15732</link>
            <description><![CDATA[ pat Wrote:<br />
-------------------------------------------------------<br />
&gt; Hi,<br />
&gt; <br />
&gt; after messing around with the layout of my<br />
&gt; templates I lost the functionality of this mod.<br />
&gt; <br />
&gt; I can only switch once (from normal to threaded)<br />
&gt; now and are trapped with threaded somehow - no<br />
&gt; getting back to normal.<br />
&gt; <br />
&gt; Any idea what that&#039;s all about?<br />
&gt; <br />
&gt; thanx<br />
&gt; pat<br />
<br />
<br />
the same this is happening to me, after switching to threaded view the toggle button diappears.... any answer for this?<br />
<br />
thanks<br />
<br />
pepe]]></description>
            <dc:creator>nevasport</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 08 Apr 2005 12:17:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,15649#msg-15649</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,15649#msg-15649</link>
            <description><![CDATA[ Hello,<br />
<br />
That sounds exactly as what I need!  Could you please post your module here?<br />
<br />
Jean-Marc]]></description>
            <dc:creator>jmwislez</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 06 Apr 2005 04:42:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,11837#msg-11837</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,11837#msg-11837</link>
            <description><![CDATA[ rewrited you mod <br />
flat [<a href="http://forums.vl.ru/read.php?20,273669,273669,sv=2#msg-273669" target="_blank"  rel="nofollow">forums.vl.ru</a>]<br />
<br />
tree [<a href="http://forums.vl.ru/read.php?20,273669,273669,sv=1#msg-273669" target="_blank"  rel="nofollow">forums.vl.ru</a>]<br />
<br />
 -&gt; not logged (not registered) guests can switch tree/flat, setting saved in cookies.<br />
<br />
usually readers more than writers ;)<br />
]]></description>
            <dc:creator>testtest</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 29 Nov 2004 08:34:54 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,9014#msg-9014</guid>
            <title>Re: strange mistake after changing template layout</title>
            <link>https://www.phorum.org/support/read.php?16,7125,9014#msg-9014</link>
            <description><![CDATA[ sounds like a corrupt link. check the way you built in the link.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 05 Sep 2004 15:24:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,9010#msg-9010</guid>
            <title>strange mistake after changing template layout</title>
            <link>https://www.phorum.org/support/read.php?16,7125,9010#msg-9010</link>
            <description><![CDATA[ Hi,<br />
<br />
after messing around with the layout of my templates I lost the functionality of this mod.<br />
<br />
I can only switch once (from normal to threaded) now and are trapped with threaded somehow - no getting back to normal.<br />
<br />
Any idea what that&#039;s all about?<br />
<br />
thanx<br />
pat]]></description>
            <dc:creator>pat</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 05 Sep 2004 14:58:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7212#msg-7212</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7212#msg-7212</link>
            <description><![CDATA[ yeah it switches the user-setting so it can only work for logged-on users.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 06 Jul 2004 06:06:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7211#msg-7211</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7211#msg-7211</link>
            <description><![CDATA[ I got it working flawlessly. But seems it only work for a logged-on user?  The link doesn&#039;t show up after the user logged-off.]]></description>
            <dc:creator>hkbb</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 06 Jul 2004 06:03:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7171#msg-7171</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7171#msg-7171</link>
            <description><![CDATA[ sounds like you are not using the one from my last post.<br />
that was fixed there.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 05 Jul 2004 10:00:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7170#msg-7170</guid>
            <title>Re: Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7170#msg-7170</link>
            <description><![CDATA[ Useful feature. However whenever I RELOAD the page, it flips between threaded and non-threaded that&#039;s not desired. Can it be fixed?  Thanks.]]></description>
            <dc:creator>ferd</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 05 Jul 2004 09:28:28 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7153#msg-7153</guid>
            <title>Re: not working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7153#msg-7153</link>
            <description><![CDATA[ It IS already compressed with the foldername.<br />
you just have to give the decompressor the right switch to use the foldername as given in zip-archive.<br />
<br />
attached is a new version with some more reliable url-generation. previously a reload of the page switched the view also.<br />
<br />
]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 04 Jul 2004 12:27:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7152#msg-7152</guid>
            <title>Re: Module for switching the read-/list-view - Now working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7152#msg-7152</link>
            <description><![CDATA[ Hi,<br />
<br />
I&#039;ve got it working now. What was the mistake? Well, I named the folder where the mod-files go into something different than &quot;viewswitch&quot; but it has to be named exactly like that for the mod to work. So, Thomas I suggest, that you include the folder into your zip-file to avoid confusion in the future.<br />
<br />
Thank you again, for the mod it&#039;s exactly what I was desperatly trying to write in an earlier attempt. With no success of course.<br />
<br />
thanx<br />
pat]]></description>
            <dc:creator>pat</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 04 Jul 2004 12:02:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7151#msg-7151</guid>
            <title>Re: not working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7151#msg-7151</link>
            <description><![CDATA[ Hi Thomas,<br />
<br />
&gt; can you give an example url?<br />
<br />
no it&#039;s on my local maschine.<br />
 <br />
&gt; I&#039;ve installed in 2 different customer&#039;s<br />
&gt; phorum-installs and everywhere it worked out of<br />
&gt; the box.<br />
<br />
I&#039;ll try again then...<br />
<br />
thanx<br />
pat]]></description>
            <dc:creator>pat</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 04 Jul 2004 11:40:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7148#msg-7148</guid>
            <title>Re: not working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7148#msg-7148</link>
            <description><![CDATA[ can you give an example url? <br />
I&#039;ve installed in 2 different customer&#039;s phorum-installs and everywhere it worked out of the box.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 04 Jul 2004 07:15:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7147#msg-7147</guid>
            <title>Re: not working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7147#msg-7147</link>
            <description><![CDATA[ Hi Thomas,<br />
<br />
I don&#039;t remember the exact phrase of the Error message but it said something about a a thing being not defined in common.php somewhere around line 300 if you want I could try to switch back to 5.0.6 to tell you more.<br />
<br />
And yes, I enabled it in the admin and put the link in header.php as you suggested.<br />
<br />
thanx<br />
pat ]]></description>
            <dc:creator>pat</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 04 Jul 2004 06:35:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7144#msg-7144</guid>
            <title>Re: not working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7144#msg-7144</link>
            <description><![CDATA[ what error-message?<br />
how did you include it?<br />
did you enable it in the admin and put the link in the template?]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 04 Jul 2004 03:06:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7138#msg-7138</guid>
            <title>not working</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7138#msg-7138</link>
            <description><![CDATA[ Hi Thomas,<br />
<br />
thank you for the mod. First I tried it with 5.0.6 Beta but got an error-message, then tried with latest CVS but nothing - not even an Error ;-)<br />
<br />
What&#039;s wrong?<br />
<br />
thanx<br />
pat]]></description>
            <dc:creator>pat</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 03 Jul 2004 15:27:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?16,7125,7125#msg-7125</guid>
            <title>Module for switching the read-/list-view</title>
            <link>https://www.phorum.org/support/read.php?16,7125,7125#msg-7125</link>
            <description><![CDATA[ I&#039;ve made a simple module which allows to switch the view (threaded / flat) on the list and/or read-page.<br />
<br />
It switches the user-setting for showing flat/threaded list/read so it will remain set for all forums once used.<br />
<br />
After you enabled the module you&#039;ve got the new var SWITCHURL available in the templates which you can use to switch the view.<br />
Just add this link somewhere in your templates.<br />
I.e. I&#039;ve put this in header.tpl:<br />
{if SWITCHURL}<br />
&lt;a href=&quot;{SWITCHURL}&quot;&gt;switch view&lt;/a&gt;<br />
{/if}<br />
<br />
Have fun with it!]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 02 Jul 2004 02:44:33 -0500</pubDate>
        </item>
    </channel>
</rss>
