<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1032243" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1032243</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/css-enablereenable#comment-1188833</link>
    <description> &lt;p&gt;Cookies or sessions will work. Whatever you prefer.  Basically you can have a cookies.php include at the top of all your pages. When you include it the page should check for an existing cookie and if the client does not have one then it should set a default cookie (called &quot;version&quot; or something).  Once this is set to a 0 or a 1 you can check what version of a page someone wants and do a simple string construction function. Something like this.&lt;/p&gt;
&lt;p&gt;First lets assume that 0 stands for the text version and 1 stands for the grafical version of the site.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;checker.php&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$domain &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;http://www.mydomain.com\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dirs&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = new Array(2);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dirs&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;/graphical/\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dirs&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;/text/\&quot;;&lt;br /&gt;&lt;br /&gt;function check(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$partialPath&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) { // type is binary (0 or 1)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_COOKIES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;version&#039;]) { //&amp;nbsp; if the page is the right version then just return&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp; } else { // if the user is on the wrong page direct them to the right page&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; header(\&quot;Location: \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$domain&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dirs&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$partialPath&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Then lets say you had a text version page in &lt;a href=&quot;http://www.mydomain.com/text/bio/index.php&quot; class=&quot;bb-url&quot;&gt;http://www.mydomain.com/text/bio/index.php&lt;/a&gt; and wanted to implement this script.&lt;/p&gt;
&lt;p&gt;In that page you would have the following at the top of the page:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;cookie.php\&quot;); // make sure the cookies are set&lt;br /&gt;include(\&quot;checker.php\&quot;); // include the checker&lt;br /&gt;check(0, \&quot;bio/index.php\&quot;); // check that we are on the correct page for our version.&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;So yeah that&#039;s basically a rough sketch of how you could work it using only cookies.  Now remember you will want to make sure you write exceptions for people who have cookies turned off.  Anyhow hope this gets you started. Good luck!&lt;/p&gt;
 </description>
     <pubDate>Sat, 24 Dec 2005 10:08:42 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1188833 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/css-enablereenable#comment-1188797</link>
    <description> &lt;p&gt;Have about sessions? Not too sure if text browsers support sessions or not, but I think they do.&lt;/p&gt;
 </description>
     <pubDate>Sat, 24 Dec 2005 01:13:11 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1188797 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/css-enablereenable#comment-1188772</link>
    <description> &lt;p&gt;And what if the screen reader or persons settings have javascript disabled and cookies turned off?&lt;/p&gt;
&lt;p&gt;The only real way to do it is offer a normal text link to text only which can be just the .css file depending how complex the site is, and how many pages ...&lt;/p&gt;
&lt;p&gt;If your using firefox as your browser, you can choose (from the tool bar): view/page style/no style&lt;br /&gt;
Opera has option to turn of tables etc as well&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Dec 2005 20:44:04 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1188772 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
