<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.1" -->
<rss version="0.92">
<channel>
	<title>Forums, Blogs, Wikis</title>
	<link>http://forumsblogswikis.com</link>
	<description>News on forums, blogs, wikis, cms, etc</description>
	<lastBuildDate>Tue, 09 Feb 2010 11:37:06 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>PHP &#8211; Return first n words from a string</title>
		<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>
		<link>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/</link>
			</item>
	<item>
		<title>nextSaturday and lastSunday functions for PHP</title>
		<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>
		<link>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/</link>
			</item>
	<item>
		<title>How to add a timer to Eventum</title>
		<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>
		<link>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/</link>
			</item>
	<item>
		<title>Prototype returning status code 0 in Opera</title>
		<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>
		<link>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/</link>
			</item>
	<item>
		<title>Holiday Cheer on Forums</title>
		<description><![CDATA[Seems like Google has made it popular to change the logo of a website for holidays.&#160; 
My question is how many of y’all do the same, and more importantly do your members like it?&#160; 
Over on my photography forum I switched out the default logo with a winter themed one for Christmas.&#160; It’s scheduled to [...]]]></description>
		<link>http://forumsblogswikis.com/2008/12/28/holiday-cheer-on-forums/</link>
			</item>
	<item>
		<title>How to know when to drop a domain</title>
		<description><![CDATA[We've all been there.  You have a great idea for a web site and go out and grab up a domain before someone else can get to it.  5 years later the domain still has a parking page and you haven't done anything other than pay GoDaddy 9 bucks on every anniversary of [...]]]></description>
		<link>http://forumsblogswikis.com/2008/12/21/how-to-know-when-to-drop-a-domain/</link>
			</item>
	<item>
		<title>WordPress, source code, and smart quotes</title>
		<description><![CDATA[Turns out WordPress tries to make your posts look a little better by swapping out all normal quotes with smart quotes.  That's great for typography, but really bad when you're posting source code like I often do on here.  Trying to run pasted code with smart quotes in it will bring PHP down [...]]]></description>
		<link>http://forumsblogswikis.com/2008/12/15/wordpress-source-code-and-smart-quotes/</link>
			</item>
	<item>
		<title>Editing a page from FireFox</title>
		<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>
		<link>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/</link>
			</item>
	<item>
		<title>SMF and StopForumSpam.com</title>
		<description><![CDATA[Found a great site over at StopForumSpam.com.  Over the past few weeks I've been checking registrations on a couple of my forums against their database. What I've found is that most of the registrations have been spammers and they've gotten the axe.  But after deleting 15-20 per day I wanted a little more [...]]]></description>
		<link>http://forumsblogswikis.com/2008/12/03/smf-and-stopforumspamcom/</link>
			</item>
	<item>
		<title>isDivisible function for PHP</title>
		<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>
		<link>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/</link>
			</item>
</channel>
</rss>
