<?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>Programming Ideas, Logics, Tips and Tricks &#187; message</title>
	<atom:link href="http://www.sajithmr.me/tag/message/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JBar &#8211; Jquery Bar</title>
		<link>http://www.sajithmr.me/jbar-jquery-bar</link>
		<comments>http://www.sajithmr.me/jbar-jquery-bar#comments</comments>
		<pubDate>Sun, 27 Dec 2009 11:47:33 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[jbar]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=545</guid>
		<description><![CDATA[Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221; Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page) I [...]]]></description>
			<content:encoded><![CDATA[<p>Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221;</p>
<p>Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page)</p>
<p>I added some more functions to this plugin to display the notification in different context, say information, warning or error message. The function show_flash(&#8216;message here&#8217;); can be used for this purpose. Second parameter is the type of message. For example, show_flash(&#8216;Error in deleting file&#8217;, &#8216;error&#8217;) OR  show_flash(&#8216;Email address entered is invalid&#8217;, &#8216;warning&#8217;)</p>
<p>If you use sessions to save flash message , for example in codeigniter $this-&gt;session-&gt;set_flashdata(&#8216;message&#8217;,'hello&#8217;); you can use this plugin to display them by adding a php code in the footer  (or header) of every page</p>
<p>&lt;?php if($this-&gt;session-&gt;flashdata(&#8216;message&#8217;) != &#8221; )  : ?&gt;</p>
<p>&lt;script&gt;show_flash(&#8216;&lt;?= $this-&gt;session-&gt;flashdata(&#8216;message&#8217;) ?&gt;&#8217;)&lt;/script&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>Here you can download the full source code:  <a href="http://www.sajithmr.me/downloads/jbar.zip">http://www.sajithmr.me/downloads/jbar.zip</a></p>
<p><img class="alignnone size-large wp-image-566" title="Screen shot 2009-12-27 at 11.30.12" src="http://www.sajithmr.me/wp-content/uploads/2009/12/Screen-shot-2009-12-27-at-11.30.12-1024x182.png" alt="Screen shot 2009-12-27 at 11.30.12" width="717" height="127" /></p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jbar-jquery-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove emails, numbers or url from text inputs</title>
		<link>http://www.sajithmr.me/remove-emails-numbers-or-url-from-text-inputs</link>
		<comments>http://www.sajithmr.me/remove-emails-numbers-or-url-from-text-inputs#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:01:50 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[bad words]]></category>
		<category><![CDATA[eliminate]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[parse email]]></category>
		<category><![CDATA[parse url]]></category>
		<category><![CDATA[sanitise]]></category>
		<category><![CDATA[strip email]]></category>
		<category><![CDATA[strip number]]></category>
		<category><![CDATA[strip url]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=496</guid>
		<description><![CDATA[Below is a simple php code to sanitise an input message . The function has 3 parameters, depending on the parameter the input is parsed to filter. function sanitize_message( $message , $email = true, $numbers = true, $url = true ) { $message = strip_tags( $message ); if($email) { //strip email address $email_regexp = "[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,3})"; [...]]]></description>
			<content:encoded><![CDATA[<p>Below is a simple php code to sanitise an input message . The function has 3 parameters, depending on the parameter the input is parsed to filter.</p>
<p><img class="alignnone size-full wp-image-497" title="200477351-001" src="http://www.sajithmr.me/wp-content/uploads/2009/11/200477351-001.jpg" alt="200477351-001" width="370" height="415" /><br />
<code><br />
function sanitize_message( $message , $email = true, $numbers = true, $url = true )<br />
{</code></p>
<p><code>$message = strip_tags( $message );</p>
<p>if($email)<br />
{<br />
//strip email address<br />
$email_regexp = "[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,3})";<br />
$message = ereg_replace($email_regexp, 'XXX', $message);<br />
}</p>
<p>if($numbers)<br />
{<br />
//strip all numerical values<br />
$number_regexp = "[0-9]";<br />
$message = ereg_replace($number_regexp, 'XXX', $message);<br />
}</p>
<p>//eliminate url from message<br />
if($url)<br />
{</p>
<p>$url_regexp = "(https?://)?(www\.)?([a-zA-z0-9\.])*[a-zA-Z0-9]*\.[a-z]{2,3}";<br />
$message = ereg_replace($url_regexp, 'XXX', $message);<br />
}</p>
<p>//eliminate all the bad words<br />
$bad_words = array("f**k", "son of a b***h");<br />
$message = str_ireplace($bad_words, 'XXX', $message);</p>
<p>return $message;</p>
<p></code></p>
<p><code> }</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/remove-emails-numbers-or-url-from-text-inputs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin &#8211; Warning Before Closing</title>
		<link>http://www.sajithmr.me/wordpress-plugin-warning-before-closing</link>
		<comments>http://www.sajithmr.me/wordpress-plugin-warning-before-closing#comments</comments>
		<pubDate>Wed, 29 Oct 2008 15:08:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[offer]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[warning]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=332</guid>
		<description><![CDATA[Today i published my new wordpress plugin, which control user navigation. The plugin name is &#8220;Close Warning&#8221;. It prompts the user a confirmation message before they close the browser window or tab. After that a lightweight window popup jumps up with your preset announcement or message  (in richtext format) The Advantages &#62;&#62; You can avoid [...]]]></description>
			<content:encoded><![CDATA[<p>Today i published my new wordpress plugin, which control user navigation. The plugin name is &#8220;Close Warning&#8221;.</p>
<p>It prompts the user a confirmation message before they close the browser window or tab. After that a lightweight window popup jumps up with your preset announcement or message  (in richtext format)</p>
<p>The Advantages &gt;&gt;</p>
<ol>
<li>You can avoid the accidental close of browser window</li>
<li>You can tell or mention any message or offers before they navigate away from your website</li>
<li>It works not only on closing, but in any type of external navigation (Internal navigation is screened out from this warning)</li>
<li>Since it is built on lightweight window support, your message or warning appears very eye-catchy</li>
</ol>
<p>You can download the plugin from : <a title="Warning Before Closing" href="http://www.sajithmr.com/downloads/onclose-warning.zip" target="_self">http://www.sajithmr.com/downloads/onclose-warning.zip</a></p>
<div id="attachment_333" class="wp-caption alignnone" style="width: 510px"><a href="http://www.sajithmr.com/wp-content/uploads/2008/10/areusyre.jpg"><img class="size-full wp-image-333" title="Screen Shot - Warning before close" src="http://www.sajithmr.com/wp-content/uploads/2008/10/areusyre.jpg" alt="Screen Shot - Warning before close" width="500" height="314" /></a><p class="wp-caption-text">Screen Shot - Warning before close</p></div>
<p>From the setting page, you can set your rich text message or warning / offer . See the screen shot:</p>
<div id="attachment_334" class="wp-caption alignnone" style="width: 430px"><a href="http://www.sajithmr.com/wp-content/uploads/2008/10/optionpage.jpg"><img class="size-full wp-image-334" title="Warning Before Closing" src="http://www.sajithmr.com/wp-content/uploads/2008/10/optionpage.jpg" alt="Warning Before Closing" width="420" height="304" /></a><p class="wp-caption-text">Warning Before Closing</p></div>
<p>Please feel free to mail me regarding any clarification and upgrade to admin@sajithmr.com</p>
<p>Regards</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/wordpress-plugin-warning-before-closing/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WordPress Announcement &#8211; Plugin</title>
		<link>http://www.sajithmr.me/wordpress-announcement-plugin</link>
		<comments>http://www.sajithmr.me/wordpress-announcement-plugin#comments</comments>
		<pubDate>Tue, 24 Jun 2008 09:20:36 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/wordpress-announcement-plugin/</guid>
		<description><![CDATA[Do you wanna inform any important news or message to your readers ? Here is a simple plugin, WordPress Announcement Plugin. Download the plugin from : http://downloads.wordpress.org/plugin/announcement.zip Go to Admin &#62; Plugin &#62; and activate announcement plugin. After that, go to options and select Announcement. By default the plugin will be inactive. You have to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/06/announce1.jpg" alt="Wordpress Announcement Plugin" style="margin: 10px; float: left" /></p>
<p>Do you wanna inform any important news or message to your readers ? Here is a simple plugin, WordPress Announcement Plugin.</p>
<p>Download the plugin from : <a href="http://downloads.wordpress.org/plugin/announcement.zip" target="_blank">http://downloads.wordpress.org/plugin/announcement.zip</a><a href="http://www.sajithmr.com/downloads/announcement.zip"></a></p>
<p>Go to Admin &gt; Plugin &gt; and activate announcement plugin. After that, go to options and select Announcement. By default the plugin will be inactive. You have to set your announcement and activate the  announcement by checking &#8216;Active&#8217; checkbox.</p>
<blockquote><p> Never Forgot to Run the Announcement. By Default the Announcement will be inactive</p></blockquote>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/06/option.jpg" /></p>
<p>Enough !!! You visitors can now see your announcement. It will be displayed <strong>only one time</strong> for a particular  user .</p>
<p><strong><font color="#ff6600">(If you want to see the announcement again, for testing purpose, Clear browser cookies, or atleast cookies from your blog. Otherwise you have to wait another 24 hours to play the announcement again) </font></strong></p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/06/screenshot-1.png" /></p>
<p>The plugin is created with cute design and animation. It will never interrupt your blog reader.</p>
<p>Regards</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/wordpress-announcement-plugin/feed</wfw:commentRss>
		<slash:comments>78</slash:comments>
		</item>
	</channel>
</rss>

