<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=User%3ASardisson%2FWebsite_Version_Detection_Scratchpad</id>
	<title>User:Sardisson/Website Version Detection Scratchpad - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=User%3ASardisson%2FWebsite_Version_Detection_Scratchpad"/>
	<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=User:Sardisson/Website_Version_Detection_Scratchpad&amp;action=history"/>
	<updated>2026-05-08T13:51:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=User:Sardisson/Website_Version_Detection_Scratchpad&amp;diff=8331&amp;oldid=prev</id>
		<title>Sardisson: /* Solution Scratchpad */ beta messages</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=User:Sardisson/Website_Version_Detection_Scratchpad&amp;diff=8331&amp;oldid=prev"/>
		<updated>2007-09-07T23:20:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Solution Scratchpad: &lt;/span&gt; beta messages&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:20, 7 September 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg_oldNightly: You are using nightly build older than two weeks; please upgrade to a new nightly....&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg_oldNightly: You are using nightly build older than two weeks; please upgrade to a new nightly....&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg_recentNightly: Thanks for testing; please report any bugs you find.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg_recentNightly: Thanks for testing; please report any bugs you find.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* msg_currentBeta: (Thanks for testing during beta periods|Upgrade to release after beta periods)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* msg_previousBeta: (Upgrade to the new beta during beta periods|Upgrade to release after beta periods)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Define four variables that are updated manually, one set updated with each release and one set only with branch changes:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Define four variables that are updated manually, one set updated with each release and one set only with branch changes:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*ver_legacyBranch = 1.0&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*ver_legacyBranch = 1.0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*ver_currentBranch = 1.5&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*ver_currentBranch = 1.5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*ver_currentBeta = &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*ver_previousBeta =&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=User:Sardisson/Website_Version_Detection_Scratchpad&amp;diff=8309&amp;oldid=prev</id>
		<title>Sardisson: first stab at explaining my idea</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=User:Sardisson/Website_Version_Detection_Scratchpad&amp;diff=8309&amp;oldid=prev"/>
		<updated>2007-08-31T03:05:01Z</updated>

		<summary type="html">&lt;p&gt;first stab at explaining my idea&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Right now we (apparently) have to update too many different things to get all of our alert messages changed.  We need to try to get this down to a system where we really only have to change one input (the version number[s]) when we release.&lt;br /&gt;
&lt;br /&gt;
According to Sam, we currently display four different messages depending on what Camino you&amp;#039;re using.&lt;br /&gt;
*If you&amp;#039;re on 1.0.x other than 1.0.6, we&amp;#039;ll show the &amp;quot;You need to update&amp;quot; message.&lt;br /&gt;
*If you&amp;#039;re on 1.0.6 we&amp;#039;ll show the &amp;quot;You might want to upgrade if you&amp;#039;re on 10.3&amp;quot;&lt;br /&gt;
*If you&amp;#039;re on 1.5 we show the &amp;quot;You need to update&amp;quot; message (but it goes to a different link than the 1.0.x one)&lt;br /&gt;
* And if you&amp;#039;re on 1.5.1 we show nothing, but it&amp;#039;s a specific message.&lt;br /&gt;
&lt;br /&gt;
* There is also a message for users of recent nightlies (and hopefully one for people running nightlies that are too old)&lt;br /&gt;
&lt;br /&gt;
==Solution Scratchpad==&lt;br /&gt;
&lt;br /&gt;
Define the message text like so:&lt;br /&gt;
&lt;br /&gt;
* msg_legacyBranch: You&amp;#039;re using an old version of Camino $(ver_legacyBranch).  Please upgrade to $(ver_legacy) [a href=cbo/releases/$(ver_legacy)/] [a href=cbo/download/$(ver_legacy)/] if you are on 10.2, or $(ver_current) [a href=cbo/releases/$(ver_current)/] [a href=cbo/download/$(ver_current)/] if you are on 10.3 or higher.&lt;br /&gt;
* msg_legacyBranch_latest:&lt;br /&gt;
* msg_currentBranch:&lt;br /&gt;
* msg_currentBranch_latest:&lt;br /&gt;
* msg_oldNightly: You are using nightly build older than two weeks; please upgrade to a new nightly....&lt;br /&gt;
* msg_recentNightly: Thanks for testing; please report any bugs you find.&lt;br /&gt;
&lt;br /&gt;
Define four variables that are updated manually, one set updated with each release and one set only with branch changes:&lt;br /&gt;
&lt;br /&gt;
*ver_legacy = 1.0.6&lt;br /&gt;
*ver_current = 1.5.1&lt;br /&gt;
*ver_legacyBranch = 1.0&lt;br /&gt;
*ver_currentBranch = 1.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Write our code such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if userVer = ver_current&lt;br /&gt;
        then show msg_currentRel_latest&lt;br /&gt;
     if userVer = ver_legacy&lt;br /&gt;
        then show msg_legacyRel_latest&lt;br /&gt;
     if userVer matches ver_currentBranch AND userVer &amp;lt; ver_current&lt;br /&gt;
        then show msg_currentBranch&lt;br /&gt;
     if userVer matches ver_legacyBranch AND userVer &amp;lt; ver_legacy&lt;br /&gt;
        then show msg msg_legacyBranch&lt;br /&gt;
     if (nightly)&lt;br /&gt;
        then ...&lt;br /&gt;
     if (otherbrowser)&lt;br /&gt;
        then ...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This basic code is run on every page that does version-or-browser specific messaging (home, start, welcome); if different messages are desired, we just add messages (e.g., msg_homeSafari, msg_homeFirefox, msg_homeCamino) and reuse the same code with a different message branch (set).&lt;/div&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
</feed>