<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Forums, Blogs, Wikis &#187; Coding</title>
	<atom:link href="http://forumsblogswikis.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://forumsblogswikis.com</link>
	<description>News on forums, blogs, wikis, cms, etc</description>
	<lastBuildDate>Tue, 09 Feb 2010 11:37:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP &#8211; Return first n words from a string</title>
		<link>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/</link>
		<comments>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 13:00:25 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=340</guid>
		<description><![CDATA[Do you ever find yourself needing to shorten a string in PHP? Maybe return the first 25 words of a long story? Give this routine a try. It will return the first n words from a string, or the entire string if it is less than n words long.

PLAIN TEXT
PHP:




function shorten_string&#40;$string, $wordsreturned&#41;


/*&#160; Returns the first [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nextSaturday and lastSunday functions for PHP</title>
		<link>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/</link>
		<comments>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 12:56:32 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=339</guid>
		<description><![CDATA[I needed a way to find the first second of a week and the last second of a week based on a Unix timestamp.
Credit for the previous Sunday goes to Shaun who posted a way to find it on the PHP site for strftime, although I changed his code a little because I'm more comfortable [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a timer to Eventum</title>
		<link>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/</link>
		<comments>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 16:39:05 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[eventum]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=338</guid>
		<description><![CDATA[I've been using Eventum for a while to keep track of bugs in a web application of mine.  There was one feature missing that I really needed, and which made me switch to dotProject for a few months and that was a timer.  When I'm working on a bug I wanted a way [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype returning status code 0 in Opera</title>
		<link>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/</link>
		<comments>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 20:18:50 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=337</guid>
		<description><![CDATA[Seems like browsers don't handle Ajax calls returning a 204 no content status code very well.  I've had issues with IE7 gets a 1223 status code instead of the 204.  Well, it looks like Opera, at least 9.5.1, gets 0 as the status code. 
I'm using Prototype version 1.6.0.3 to handle the Ajax [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Editing a page from FireFox</title>
		<link>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/</link>
		<comments>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 15:13:53 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Links]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=322</guid>
		<description><![CDATA[Found a quick little JavaScript trick that lets you edit page content from within FireFox.  Copy and paste the following into your address bar and press enter.
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
Everything on the page becomes editable.  Sure, it doesn't affect the file on server.  But once you're done you can save the resulting [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>isDivisible function for PHP</title>
		<link>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/</link>
		<comments>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 21:45:41 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=320</guid>
		<description><![CDATA[A quick function to check if a number is divisible by another.  
PLAIN TEXT
PHP:




function isDivisible&#40;$number, $divisibleBy&#41;


&#160; &#160; &#123;


&#160; &#160; if &#40;$number % $divisibleBy == 0&#41;


&#160; &#160; &#160; &#160; return true;


&#160; &#160; return false; 


&#160; &#160; &#125; 






]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Get custom field function</title>
		<link>http://forumsblogswikis.com/2008/10/10/wordpress-get-custom-field-function/</link>
		<comments>http://forumsblogswikis.com/2008/10/10/wordpress-get-custom-field-function/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 01:10:42 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=317</guid>
		<description><![CDATA[On several WordPress projects I've needed to get the value of a custom field.&#160; Not too difficult using the get_post_meta command, but I wanted a little quicker way.&#160; So I now add this little function to the functions.php file on themes I'm working on.
PLAIN TEXT
PHP:




function getMeta&#40;$key&#41;


&#123;


global $post;


return get_post_meta&#40;$post-&#62;ID, $key&#41;;


&#125; 







Say you've got a custom field [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/10/10/wordpress-get-custom-field-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript progress bar indicator</title>
		<link>http://forumsblogswikis.com/2008/10/06/javascript-progress-bar-indicator/</link>
		<comments>http://forumsblogswikis.com/2008/10/06/javascript-progress-bar-indicator/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 01:41:24 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=314</guid>
		<description><![CDATA[Need a way to show the progress on a long process on your web page?  Here's a quick little JavaScript routine that will do it for you.

The trick is to create a fixed size div with the background image set to the progress bar.  We're then going to overlay a right floating white [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/10/06/javascript-progress-bar-indicator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bookmarking threads on an SMF board</title>
		<link>http://forumsblogswikis.com/2008/09/27/bookmarking-threads-on-an-smf-board/</link>
		<comments>http://forumsblogswikis.com/2008/09/27/bookmarking-threads-on-an-smf-board/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 23:24:30 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[SMF]]></category>
		<category><![CDATA[bookmark]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[Forums]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simple machines]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=306</guid>
		<description><![CDATA[This is one of those features I've been wanting to add to my photography forum for a while now, but I just got around to it this weekend.
With the addition of a database table, a new template file, a few source files, and changes to several others, my Simple Machines Forum now gives my users [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/09/27/bookmarking-threads-on-an-smf-board/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why blocking right-clicks is a waste of time</title>
		<link>http://forumsblogswikis.com/2008/09/27/why-blocking-right-clicks-is-a-waste-of-time/</link>
		<comments>http://forumsblogswikis.com/2008/09/27/why-blocking-right-clicks-is-a-waste-of-time/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 18:44:29 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Unfiled]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=304</guid>
		<description><![CDATA[There's another forum I'm on where the discussion of blocking right-clicks comes up every few days it seems.&#160; People put up their first website and are terrified when they find out how easy it is to right-click on an image and save it.
The problem is that it's trivial for anyone with a moderate amount of [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/09/27/why-blocking-right-clicks-is-a-waste-of-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

