<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Peter&#039;s Useful Crap - Topic: Changing Code</title>
	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/changing-code</link>
	<description><![CDATA[Useful tips on Canada, cell phones, banking, technology, WordPress, PHP and more]]></description>
	<generator>Simple:Press Version 5.5.1</generator>
	<atom:link href="http://www.theblog.ca/peter-forum/peters-sports-league-standings/changing-code/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Peter on Changing Code</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/changing-code#p469</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/changing-code#p469</guid>
        	        	<description><![CDATA[<p>Sure:</p>
<p>1) If you only need to change this in the front-end display, it is quite simple. Just open standings.php (or whatever you renamed it to) and search for:</p>
<p><code>&#60;strong>RF&#60;/strong></code></p>
<p>and:</p>
<p><code>&#60;strong>RA&#60;/strong></code></p>
<p>Then replace the labels as necessary.</p>
<p>2) I don't have specific docs on this, but if you look at the code in standings.php, all of the database retrieval stuff should be left as-is. All display stuff can be changed as much as you want. </p>
<p>The original intent of standings.php was for it to be a framework and thus there's no reason why the different implementations of the script cannot look unique. One day, in the very far future, I hope to make it more of a template system that properly separates content from design.</p>
<p>3) See <a href="http://www.theblog.ca/peter-forum?forum=6&#038;topic=98">this topic</a> about making the default sorting method something other than winning percentage. After doing that, if you want to remove that field completely, you can first remove the heading for it:</p>
<p><code>&#60;td>&#60;?php if ($standings_sort != 0) print &#039;&#60;a href=&#34;&#039; . $_SERVER[&#039;PHP_SELF&#039;] . &#34;?conf=$confid&#038;sort=0\\&#34;>&#34;; ?>&#60;strong>PCT&#60;/strong>&#60;?php if ($standings_sort != 0) print &#039;&#60;/a>&#039;; ?>&#60;/td></code></p>
<p>Then remove the two entries for it:</p>
<p><code>&#60;td>&#60;?php print $winningpct; ?>&#60;/td></code></p>
<p>To top it off, you can change the default sort order:</p>
<p><code>default: // Sort by winning percentage<br />
$standings_sort = 0; $sort_order = "winningpct DESC, teamorder DESC";</code></p>
]]></description>
        	        	<pubDate>Mon, 30 Jun 2008 01:44:05 +0000</pubDate>
        </item>
        <item>
        	<title>Martyn on Changing Code</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/changing-code#p468</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/changing-code#p468</guid>
        	        	<description><![CDATA[<p>Hi Peter,</p>
<p>Just checked out you script and it is looking great so far a youth soccer site that I am involved in.</p>
<p>Just a few questions if you have the time :-)</p>
<p>1)  Can you point me in the right direction to change the runs for and runs against on the display so it reads as goals for and goals against (GF / GA instead of RF and RA)</p>
<p>2)  I can easily change some of the coding so it blends into my site, however, I was just wondering if you have any docs that indicated which code can be changed and which should be left alone.</p>
<p>3) How can I remove the PCT column on the standings page.  I dont want it to show.</p>
<p>Thanks in advance</p>
<p>regards</p>
<p>Martyn</p>
]]></description>
        	        	<pubDate>Sun, 29 Jun 2008 16:40:29 +0000</pubDate>
        </item>
</channel>
</rss>