www: 0f4b9964: Improve our download buttons. The front...

rlaager at pidgin.im rlaager at pidgin.im
Sun Oct 26 20:35:24 EDT 2008


-----------------------------------------------------------------
Revision: 0f4b99648d9d13f957f0dad3e47aeedb0c42f655
Ancestor: 50ed29c0dd72aa2d437626551b882144b38d6f4c
Author: rlaager at pidgin.im
Date: 2008-10-27T00:27:07
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/0f4b99648d9d13f957f0dad3e47aeedb0c42f655

Modified files:
        htdocs/download/centos_rhel/index.php
        htdocs/download/fedora_core/index.php
        htdocs/download/source/index.php
        htdocs/download/windows/index.php htdocs/index.php
        inc/section.download.inc

ChangeLog: 

Improve our download buttons.  The front page now has OS (and distro)
detection.  All of the download pages include explanatory text.  We now
have a download page for Mac OS X, which points to Fink and Adium.

-------------- next part --------------
============================================================
--- htdocs/download/centos_rhel/index.php	bfb5790f2039de8ca9236f79cc2cef23c3f79e69
+++ htdocs/download/centos_rhel/index.php	be2b8d26c351294049e7891401e6465400c79b57
@@ -22,7 +22,7 @@ Download Pidgin<br />
 <p><a href="http://rpm.pidgin.im/centos/pidgin.repo">
 <img src="/shared/img/button.download.png" alt="[Down Arrow]" id="downbutton" />
 Download Pidgin<br />
-<span class="number">Pidgin <? echo $pidgin_version; ?></span>
+<span class="number"><? echo $pidgin_version; ?> for CentOS / RHEL</span>
 </a></p>
 
 <p>To install Pidgin on CentOS 4 or 5, or RHEL 5, save the pidgin.repo file
============================================================
--- htdocs/download/fedora_core/index.php	834ff8069862ccf7907bdf48bee2b1e8a160f3d6
+++ htdocs/download/fedora_core/index.php	9cd1de63573ee86e1f5e344f9e5140844296cd70
@@ -22,7 +22,7 @@ Download Pidgin<br />
 <p><a href="http://rpm.pidgin.im/fedora/pidgin.repo">
 <img src="/shared/img/button.download.png" alt="[Down Arrow]" id="downbutton" />
 Download Pidgin<br />
-<span class="number">Pidgin <? echo $pidgin_version; ?></span>
+<span class="number"><? echo $pidgin_version; ?> for Fedora Core</span>
 </a></p>
 
 <p>To install Pidgin on Fedora Core 4, 5, 6 or 7 save the pidgin.repo file from
============================================================
--- htdocs/download/source/index.php	3db067a16ad3a95728bfbc9ea45d8b2d6e7e918a
+++ htdocs/download/source/index.php	70410f7b16b1041150374a30ab3b24d462852fac
@@ -22,9 +22,13 @@ Download Pidgin<br />
 <p><a href="http://downloads.sourceforge.net/pidgin/pidgin-<? echo $pidgin_version; ?>.tar.bz2">
 <img src="/shared/img/button.download.png" alt="[Down Arrow]" id="downbutton" />
 Download Pidgin<br />
-<span class="number">pidgin-<? echo $pidgin_version; ?>.tar.bz2</span>
+<span class="number"><? echo $pidgin_version; ?> Source</span>
 </a></p>
 
+<p>This download is for the source code of Pidgin.</p>
+<p>If you want to <b>use</b> Pidgin, you should first look for pre-built packages from us (see the links on the left) or your operating system distribution.</p>
+<p>If you are looking to <b>modify</b> Pidgin, you may want to look at our <a href="http://developer.pidgin.im/wiki/UsingPidginMonotone">instructions for checking out the code from our repository</a>.
+
 </div>
 
 </div>
============================================================
--- htdocs/download/windows/index.php	886c2308354878c25454eb050d8b091f66d015fa
+++ htdocs/download/windows/index.php	503573c718c104da892074fcf1a6ae525dd9d3c3
@@ -22,9 +22,13 @@ Download Pidgin<br />
 <p><a href="http://downloads.sourceforge.net/pidgin/pidgin-<? echo $pidgin_version; ?>.exe">
 <img src="/shared/img/button.download.png" alt="[Down Arrow]" id="downbutton" />
 Download Pidgin<br />
-<span class="number">Pidgin <? echo $pidgin_version; ?> (10.8 MB)</span>
+<span class="number"><? echo $pidgin_version; ?> for Windows</span>
 </a></p>
 
+<p>This download is for the full installer for Windows, including GTK+. This is probably what you want.</p>
+
+<p>If you already have GTK+ installed (for example, if you're running GIMP or another application using GTK+), we provide a smaller <a href="http://downloads.sourceforge.net/pidgin/pidgin-<? echo $pidgin_version; ?>-no-gtk.exe">installer without GTK+</a>. However, please be aware that we often ship updated copies of GTK+ and continuing to use an older version may cause problems with Pidgin. If you have problems, please re-install using the full installer and upgrade GTK+ before contacting us.</a>
+
 </div>
 
 </div>
============================================================
--- htdocs/index.php	79ae1d104a51277700bba3408a8404e3ce708067
+++ htdocs/index.php	0cd18c3bc865a4f12e04601e312b91235619d2cb
@@ -21,15 +21,41 @@ Download Pidgin<br />
 <a id="download_link" href="/download/">
 <img src="/shared/img/button.download.png" alt="[Down Arrow]" id="downbutton" width="48" height="48" />
 Download Pidgin<br />
-<span class="number"><? echo $pidgin_version; ?></span></a>
-</div>
+<span class="number"><? echo $pidgin_version; ?></span>
+<span class="number" id="os_name" style="display: none;"></span></a>
 
 <script type="text/javascript"><!--
-if (navigator.platform.indexOf("Win") != -1)
-	document.getElementById("download_link").href = "/download/windows/";
+if (navigator.platform.indexOf("Win") != -1) {
+	document.getElementById("download_link").href = "/download/windows";
+	document.getElementById("os_name").innerHTML = "for Windows";
+	document.getElementById("os_name").style.display = "inline";
+} else if (navigator.userAgent.indexOf("Ubuntu") != -1) {
+// Once the PPA is ready to go public, we'll have a separate Ubuntu page.
+	document.getElementById("download_link").href = "/download/source";
+	document.getElementById("os_name").innerHTML = "for Ubuntu";
+	document.getElementById("os_name").style.display = "inline";
+} else if (navigator.userAgent.indexOf("CentOS") != -1 ||
+           navigator.userAgent.indexOf("RHEL") != -1) {
+	document.getElementById("download_link").href = "/download/centos_rhel/";
+	document.getElementById("os_name").innerHTML = "for CentOS / RHEL";
+	document.getElementById("os_name").style.display = "inline";
+} else if (navigator.userAgent.indexOf("Fedora") != -1) {
+	document.getElementById("download_link").href = "/download/fedora_core/";
+	document.getElementById("os_name").innerHTML = "for Fedora Core";
+	document.getElementById("os_name").style.display = "inline";
+} else if (navigator.platform.indexOf("Mac") != -1) {
+	document.getElementById("download_link").href = "/download/mac/";
+	document.getElementById("os_name").innerHTML = "for Mac OS X";
+	document.getElementById("os_name").style.display = "inline";
+} else if (navigator.platform.indexOf("X11") != -1 ||
+           navigator.platform.indexOf("Linux")) {
+	document.getElementById("download_link").href = "/download/source";
+	document.getElementById("os_name").innerHTML = "Source";
+	document.getElementById("os_name").style.display = "inline";
+}
 // --></script>
+</div>
 
-
 <p class="linkbar">
   <a href="http://developer.pidgin.im/wiki/ChangeLog">ChangeLog</a> |
   <a href="http://developer.pidgin.im/wiki/FAQ" title="Frequently Asked Questions">FAQ</a>
============================================================
--- inc/section.download.inc	7995f3e1c7de355fdb128abb5a216418bbe2455f
+++ inc/section.download.inc	7a3679f6a78392363393ae50450cf3fe8bdfc32e
@@ -5,6 +5,7 @@ $sub_sections['CentOS / RHEL'] = "/downl
 $sub_sections['Source']        = "/download/source/";
 $sub_sections['Fedora Core']   = "/download/fedora_core/";
 $sub_sections['CentOS / RHEL'] = "/download/centos_rhel/";
+$sub_sections['Mac OS X']      = "/download/mac/";
 
 include("section.inc");
 


More information about the Commits mailing list