<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>DevArticles.In</title>
	
	<link>http://www.devarticles.in</link>
	<description>Tips, Tricks, References and Bookmarks</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:42:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/devarticles/Ekof" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="devarticles/ekof" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">devarticles/Ekof</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Fix to Windows 7 Error “No such interface supported”</title>
		<link>http://www.devarticles.in/windows/fix-to-windows-7-error-no-such-interface-supported/</link>
		<comments>http://www.devarticles.in/windows/fix-to-windows-7-error-no-such-interface-supported/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 06:40:26 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[No such interface supported]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1837</guid>
		<description><![CDATA[Yesterday i tried to install Internet Explorer 7 standalone version which eventually failed and didn&#8217;t work at all. Additionally it caused my Windows 7 Ultimate to produce &#8220;No such interface supported&#8221; and similar nasty errors when i clicked on main taskbar icons and desktop icons like My Computer. Also Control Panel and other administrator screen [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/windows/apachewamp-slow-on-windows-7/' rel='bookmark' title='Apache/WAMP slow on Windows 7'>Apache/WAMP slow on Windows 7</a> <small>After i had installed WAMP on Windows 7 the loading...</small></li>
<li><a href='http://www.devarticles.in/windows/how-to-create-a-keyboard-shortcut-to-open-an-application-program-in-windows-7/' rel='bookmark' title='How to create a keyboard shortcut to open an application / program in Windows 7'>How to create a keyboard shortcut to open an application / program in Windows 7</a> <small>Following step by step instructions to create a keyboard shortcut...</small></li>
<li><a href='http://www.devarticles.in/windows/tips-on-fixing-ie8-developer-tools-not-working-issue-in-windows/' rel='bookmark' title='Tips on fixing &#8220;IE8 Developer Tools not working&#8221; issue in Windows'>Tips on fixing &#8220;IE8 Developer Tools not working&#8221; issue in Windows</a> <small>If you discovered that the &#8220;Developer Tool&#8221; in your IE8...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Yesterday i tried to install Internet Explorer 7 standalone version which eventually failed and didn&#8217;t work at all. Additionally it caused my Windows 7 Ultimate to produce &#8220;No such interface supported&#8221; and similar nasty errors when i clicked on main taskbar icons and desktop icons like My Computer.<span id="more-1837"></span> Also Control Panel and other administrator screen broke and refuse to show anything in them. I was worried a lot when i saw that there was no restore point earlier to just today morning. I thought i had to re-install windows or at least had to run Windows repair utility but <a href="http://forums.techarena.in/operating-systems/1277700.htm">this form post</a> saved my day. What i had to do was to run</p>
<p><code>RegSvr32 actxprxy.dll</code></p>
<p>in the command prompt and everything was working just fine once again. Thanks to nice fellow Wynn for suggesting the work around in <a href="http://forums.techarena.in/operating-systems/1277700.htm">this form post</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fwindows%2Ffix-to-windows-7-error-no-such-interface-supported%2F&amp;title=Fix%20to%20Windows%207%20Error%20%26%238220%3BNo%20such%20interface%20supported%26%238221%3B" id="wpa2a_2"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/windows/apachewamp-slow-on-windows-7/' rel='bookmark' title='Apache/WAMP slow on Windows 7'>Apache/WAMP slow on Windows 7</a> <small>After i had installed WAMP on Windows 7 the loading...</small></li>
<li><a href='http://www.devarticles.in/windows/how-to-create-a-keyboard-shortcut-to-open-an-application-program-in-windows-7/' rel='bookmark' title='How to create a keyboard shortcut to open an application / program in Windows 7'>How to create a keyboard shortcut to open an application / program in Windows 7</a> <small>Following step by step instructions to create a keyboard shortcut...</small></li>
<li><a href='http://www.devarticles.in/windows/tips-on-fixing-ie8-developer-tools-not-working-issue-in-windows/' rel='bookmark' title='Tips on fixing &#8220;IE8 Developer Tools not working&#8221; issue in Windows'>Tips on fixing &#8220;IE8 Developer Tools not working&#8221; issue in Windows</a> <small>If you discovered that the &#8220;Developer Tool&#8221; in your IE8...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/A6TKOWAsyGYY9ODh0ZlFLjNfIlg/0/da"><img src="http://feedads.g.doubleclick.net/~a/A6TKOWAsyGYY9ODh0ZlFLjNfIlg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/A6TKOWAsyGYY9ODh0ZlFLjNfIlg/1/da"><img src="http://feedads.g.doubleclick.net/~a/A6TKOWAsyGYY9ODh0ZlFLjNfIlg/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/windows/fix-to-windows-7-error-no-such-interface-supported/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to edit or download .htaccess from cpanel file manager where it is hidden</title>
		<link>http://www.devarticles.in/miscelleneous/how-to-edit-or-download-htaccess-from-cpanel-file-manager-where-it-is-hidden/</link>
		<comments>http://www.devarticles.in/miscelleneous/how-to-edit-or-download-htaccess-from-cpanel-file-manager-where-it-is-hidden/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 07:42:47 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Miscelleneous]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[hidden]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1830</guid>
		<description><![CDATA[In my cpanel (dont know the version number) it didn&#8217;t show .htaccess file and hid it by default. If it happens and as a lazy person like me you dont want to do ftp like things to get the htaccess appeared on you,  just click on a visible file and open it in cpanel editor. [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/miscelleneous/resume-download-of-part-extension-file-in-firefox/' rel='bookmark' title='Resume download of PART extension file in Firefox'>Resume download of PART extension file in Firefox</a> <small>In some cases, when a large file had been downloaded...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/wordpress-custom-permalinks-and-404-error/' rel='bookmark' title='WordPress custom permalinks and 404 error'>WordPress custom permalinks and 404 error</a> <small>Today morning i found that urls to postings of this...</small></li>
<li><a href='http://www.devarticles.in/wordpress/template-drop-down-list-missing-in-edit-page-in-wordpress/' rel='bookmark' title='Template drop down list missing in edit page in wordpress'>Template drop down list missing in edit page in wordpress</a> <small>Last night i installed a new theme to this blog...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In my cpanel (dont know the version number) it didn&#8217;t show .htaccess file and hid it by default. If it happens and as a lazy person like me you dont want to do ftp like things to get the htaccess appeared on you,  just click on a visible file and open it in cpanel editor. It will give you the url something like below.<span id="more-1830"></span></p>
<p>http://www.mysitedomain.com:2082/frontend/x3/filemanager/editit.html?file=index.php&#038;fileop=&#038;dir=%2Fhome%2Flose5%2Fpublic_html&#038;dirop=&#038;charset=&#038;file_charset=utf-8&#038;baseurl=&#038;basedir=</p>
<p>Just replace the <strong>index.php</strong> in above url with <strong>.htaccess</strong> and press enter. <strong>.htaccess</strong> code should be there in your file editor which you can use to create new file from it or sort of things..</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fmiscelleneous%2Fhow-to-edit-or-download-htaccess-from-cpanel-file-manager-where-it-is-hidden%2F&amp;title=How%20to%20edit%20or%20download%20.htaccess%20from%20cpanel%20file%20manager%20where%20it%20is%20hidden" id="wpa2a_4"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/miscelleneous/resume-download-of-part-extension-file-in-firefox/' rel='bookmark' title='Resume download of PART extension file in Firefox'>Resume download of PART extension file in Firefox</a> <small>In some cases, when a large file had been downloaded...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/wordpress-custom-permalinks-and-404-error/' rel='bookmark' title='WordPress custom permalinks and 404 error'>WordPress custom permalinks and 404 error</a> <small>Today morning i found that urls to postings of this...</small></li>
<li><a href='http://www.devarticles.in/wordpress/template-drop-down-list-missing-in-edit-page-in-wordpress/' rel='bookmark' title='Template drop down list missing in edit page in wordpress'>Template drop down list missing in edit page in wordpress</a> <small>Last night i installed a new theme to this blog...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/7xVIboFqU_VP9EcwAs-wZgvxXbY/0/da"><img src="http://feedads.g.doubleclick.net/~a/7xVIboFqU_VP9EcwAs-wZgvxXbY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7xVIboFqU_VP9EcwAs-wZgvxXbY/1/da"><img src="http://feedads.g.doubleclick.net/~a/7xVIboFqU_VP9EcwAs-wZgvxXbY/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/miscelleneous/how-to-edit-or-download-htaccess-from-cpanel-file-manager-where-it-is-hidden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyword shortcuts to working files or buffers in jEdit</title>
		<link>http://www.devarticles.in/miscelleneous/keyword-shortcuts-to-working-files-or-buffers-in-jedit/</link>
		<comments>http://www.devarticles.in/miscelleneous/keyword-shortcuts-to-working-files-or-buffers-in-jedit/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 08:18:59 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[Miscelleneous]]></category>
		<category><![CDATA[jEdit]]></category>
		<category><![CDATA[jEdit tips & tricks]]></category>
		<category><![CDATA[Keyboard shortcut]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1823</guid>
		<description><![CDATA[Hint: By buffers in jEdit it means working files (area), which is shown in the image below: By default, jEdit has in-built shortcuts to access working files/buffer. One can find them at Utilities &#62; Global Options and then selecting Shortcuts from left panel. (Hint: one can try typing &#8220;buffer&#8221; in Filter: field). Here&#8217;s how my [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/linux/keyboard-shortcuts-to-switch-among-split-views-or-window-panes-in-jedit/' rel='bookmark' title='Keyboard shortcuts to switch among split views in jEdit'>Keyboard shortcuts to switch among split views in jEdit</a> <small>Here&#8217;s the keyboard shortcuts to navigate or switch among split...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/how-to-add-html-tag-keyboard-and-toolbar-shortcuts-to-notepad-2/' rel='bookmark' title='How to add HTML tag keyboard and toolbar shortcuts to Notepad++'>How to add HTML tag keyboard and toolbar shortcuts to Notepad++</a> <small>(skip to implementation) Like most computer users i do prefer...</small></li>
<li><a href='http://www.devarticles.in/windows/show-hidden-files-and-folders-not-working-in-windows-xp/' rel='bookmark' title='Show hidden files and folders not working in window xp?'>Show hidden files and folders not working in window xp?</a> <small>I tried to enable &#8220;show hidden files and folder&#8221; option...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hint: By <strong>buffers</strong> in jEdit it means working files (area), which is shown in the image below:</p>
<p><a href="http://www.devarticles.in/wp-content/uploads/2012/01/buffers_example.jpg"><img class="size-full wp-image-1824" title="Keyword shortcuts to working files or buffers in jEdit" src="http://www.devarticles.in/wp-content/uploads/2012/01/buffers_example.jpg" alt="Keyword shortcuts to working files or buffers in jEdit" width="437" height="159" /></a><span id="more-1823"></span></p>
<p>By default, jEdit has in-built shortcuts to access working files/buffer. One can find them at <strong>Utilities</strong> &gt;<strong> Global Options</strong> and then selecting <strong>Shortcuts</strong> from left panel. (Hint: one can try typing &#8220;buffer&#8221; in <strong>Filter:</strong> field). Here&#8217;s how my &#8220;shortcuts&#8221; box looks like when i look for &#8220;buffer&#8221;:</p>
<p><a href="http://www.devarticles.in/wp-content/uploads/2012/01/buffers_shortcuts.jpg"><img class="size-full wp-image-1825" title="Keyword shortcuts to working files or buffers in jEdit" src="http://www.devarticles.in/wp-content/uploads/2012/01/buffers_shortcuts.jpg" alt="Keyword shortcuts to working files or buffers in jEdit" width="465" height="391" /></a><!--more--></p>
<p>Shortcuts shown above marked with red rectangles are most sought and used ones. In the example above i created a custom shortcut <strong>C + TAB</strong> to show the <strong>Buffer Switcher</strong>. One can easily create a custom keyboard shortcut by clicking over the <strong>Primary Shortcut</strong> and/or<strong> Alternative Shortcut</strong> areas (Note: the later is out of sight in the images shown above).</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fmiscelleneous%2Fkeyword-shortcuts-to-working-files-or-buffers-in-jedit%2F&amp;title=Keyword%20shortcuts%20to%20working%20files%20or%20buffers%20in%20jEdit" id="wpa2a_6"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/linux/keyboard-shortcuts-to-switch-among-split-views-or-window-panes-in-jedit/' rel='bookmark' title='Keyboard shortcuts to switch among split views in jEdit'>Keyboard shortcuts to switch among split views in jEdit</a> <small>Here&#8217;s the keyboard shortcuts to navigate or switch among split...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/how-to-add-html-tag-keyboard-and-toolbar-shortcuts-to-notepad-2/' rel='bookmark' title='How to add HTML tag keyboard and toolbar shortcuts to Notepad++'>How to add HTML tag keyboard and toolbar shortcuts to Notepad++</a> <small>(skip to implementation) Like most computer users i do prefer...</small></li>
<li><a href='http://www.devarticles.in/windows/show-hidden-files-and-folders-not-working-in-windows-xp/' rel='bookmark' title='Show hidden files and folders not working in window xp?'>Show hidden files and folders not working in window xp?</a> <small>I tried to enable &#8220;show hidden files and folder&#8221; option...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/S9YhC8osyJVPMcVgTn-DIhkf45k/0/da"><img src="http://feedads.g.doubleclick.net/~a/S9YhC8osyJVPMcVgTn-DIhkf45k/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S9YhC8osyJVPMcVgTn-DIhkf45k/1/da"><img src="http://feedads.g.doubleclick.net/~a/S9YhC8osyJVPMcVgTn-DIhkf45k/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/miscelleneous/keyword-shortcuts-to-working-files-or-buffers-in-jedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Briefly unavailable for scheduled maintenance. Check back in a minute</title>
		<link>http://www.devarticles.in/wordpress/briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/</link>
		<comments>http://www.devarticles.in/wordpress/briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 07:02:39 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1818</guid>
		<description><![CDATA[&#8220;Briefly unavailable for scheduled maintenance. Check back in a minute&#8221; If this message appears on you wordpress website for more than you anticipated if might mean that your wordpress update failed due to some reason. You can get rid of this message by deleting a .maintenance file which wordpress places at your site root when [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>&#8220;Briefly unavailable for scheduled maintenance. Check back in a minute&#8221;</p>
<p>If this message appears on you wordpress website for more than you anticipated if might mean that your wordpress update failed due to some reason. You can get rid of this message by deleting a .maintenance file which wordpress places at your site root when it starts to update and deletes it when upgrade is successfully completed.<span id="more-1818"></span></p>
<div id="attachment_1819" class="wp-caption alignnone" style="width: 473px"><a href="http://www.devarticles.in/wp-content/uploads/2012/01/maintainance_file.jpg"><img class="size-full wp-image-1819" title="maintainance_file" src="http://www.devarticles.in/wp-content/uploads/2012/01/maintainance_file.jpg" alt="Briefly unavailable for scheduled maintenance. Check back in a minute" width="463" height="220" /></a><p class="wp-caption-text">Briefly unavailable for scheduled maintenance. Check back in a minute</p></div>
<p>If, for some reason upgrade fails this file remains there and causes wordpress to conclude that your site was still in maintenance mode. So just delete this file and try updating again.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fwordpress%2Fbriefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute%2F&amp;title=Briefly%20unavailable%20for%20scheduled%20maintenance.%20Check%20back%20in%20a%20minute" id="wpa2a_8"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>No related posts.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/M7lJsgA9nqLH8b6J5Q39F1ALJUE/0/da"><img src="http://feedads.g.doubleclick.net/~a/M7lJsgA9nqLH8b6J5Q39F1ALJUE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/M7lJsgA9nqLH8b6J5Q39F1ALJUE/1/da"><img src="http://feedads.g.doubleclick.net/~a/M7lJsgA9nqLH8b6J5Q39F1ALJUE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/wordpress/briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT in worpress 3.3 header</title>
		<link>http://www.devarticles.in/wordpress/changing-header_image_width-and-header_image_height-in-worpress-3-3-header/</link>
		<comments>http://www.devarticles.in/wordpress/changing-header_image_width-and-header_image_height-in-worpress-3-3-header/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 09:01:07 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1812</guid>
		<description><![CDATA[I see &#60;img src="&#60;?php header_image(); ?&#62;" width="&#60;?php echo HEADER_IMAGE_WIDTH; ?&#62;" height="&#60;?php echo HEADER_IMAGE_HEIGHT; ?&#62;" alt="" /&#62; in my themename/header.php file. How do i changed HEADER_IMAGE_WIDTH and/or HEADER_IMAGE_HEIGHT?? Here&#8217;s the answer. If you are using default theme Twenty Ten 1.0 or Twenty Eleven 1.0 If you are using Twenty Ten 1.0 find the following code near 116-117 [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/wordpress/how-to-remove-html-margin-top-28px-important-from-wordpress-header/' rel='bookmark' title='How to remove html { margin-top: 28px !important; } from wordpress header'>How to remove html { margin-top: 28px !important; } from wordpress header</a> <small>To remove html { margin-top: 28px !important; } from wordpress...</small></li>
<li><a href='http://www.devarticles.in/wordpress/get-post-thumbnail-out-side-of-the-loop-in-wordpress/' rel='bookmark' title='Get post thumbnail out side of the Loop in wordpress'>Get post thumbnail out side of the Loop in wordpress</a> <small>Just got a way to get the post thumbnail outside...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/creating-rss-feed-dynamically-and-merging-it-with-another-rss-feed/' rel='bookmark' title='Creating rss feed dynamically and merging it with another rss feed'>Creating rss feed dynamically and merging it with another rss feed</a> <small>Recently i generated a rss feed from business listings for...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I see <code>&lt;img src="&lt;?php header_image(); ?&gt;" width="&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;" height="&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;" alt="" /&gt;</code> in my themename/header.php file. How do i changed HEADER_IMAGE_WIDTH and/or HEADER_IMAGE_HEIGHT??<span id="more-1812"></span></p>
<p>Here&#8217;s the answer.</p>
<p>If you are using default theme Twenty Ten 1.0 or Twenty Eleven 1.0</p>
<p>If you are using Twenty Ten 1.0 find the following code near 116-117 in your themes/themename/functions.php file and change it accordingly:</p>
<pre class="codeblock">define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );</pre>
<p>If you are using Twenty Eleven 1.0 find the following code near 122-123 in your themes/themename/functions.php and change it accordingly:</p>
<pre class="codeblock">define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyeleven_header_image_width', 940 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyeleven_header_image_width', 198 ) );</pre>
<p>If you are using a custom theme that may not have the &#8220;header image&#8221; facility working at all you will need to place the following code in your theme&#8217;s function.php file.</p>
<pre class="brush:php">
/** Tell WordPress to run yourthemename_setup() when the 'after_setup_theme' hook is run. */
add_action( 'after_setup_theme', 'yourthemename_setup' );

if ( ! function_exists( 'yourthemename_setup' ) ):
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which runs
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
*
* To override yourthemename_setup() in a child theme, add your own yourthemename_setup to your child theme's
* functions.php file.
* @uses add_custom_image_header() To add support for a custom header.
* @uses register_default_headers() To register the default custom header images provided with the theme.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*/
function yourthemename_setup() {

// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();

// Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );

// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );

// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );

// Make theme available for translation
// Translations can be filed in the /languages/ directory
load_theme_textdomain( 'yourthemename', get_template_directory() . '/languages' );

$locale = get_locale();
$locale_file = get_template_directory() . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );

// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' =&gt; __( 'Primary Navigation', 'yourthemename' ),
) );

// This theme allows users to set a custom background
add_custom_background();

// Your changeable header business starts here
if ( ! defined( 'HEADER_TEXTCOLOR' ) )
define( 'HEADER_TEXTCOLOR', '' );

// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
if ( ! defined( 'HEADER_IMAGE' ) )
define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );

// The height and width of your custom header. You can hook into the theme's own filters to change these values.
// Add a filter to yourthemename_header_image_width and yourthemename_header_image_height to change these values.
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'yourthemename_header_image_width', 700 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'yourthemename_header_image_height', 160 ) );

// We'll be using post thumbnails for custom header images on posts and pages.
// We want them to be 940 pixels wide by 198 pixels tall.
// Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );

// Don't support text inside the header image.
if ( ! defined( 'NO_HEADER_TEXT' ) )
define( 'NO_HEADER_TEXT', true );

// Add a way for the custom header to be styled in the admin panel that controls
// custom headers. See yourthemename_admin_header_style(), below.
add_custom_image_header( '', 'yourthemename_admin_header_style' );

// ... and thus ends the changeable header business.

// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
register_default_headers( array(
'berries' =&gt; array(
'url' =&gt; '%s/images/headers/berries.jpg',
'thumbnail_url' =&gt; '%s/images/headers/berries-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Berries', 'yourthemename' )
),
'cherryblossom' =&gt; array(
'url' =&gt; '%s/images/headers/cherryblossoms.jpg',
'thumbnail_url' =&gt; '%s/images/headers/cherryblossoms-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Cherry Blossoms', 'yourthemename' )
),
'concave' =&gt; array(
'url' =&gt; '%s/images/headers/concave.jpg',
'thumbnail_url' =&gt; '%s/images/headers/concave-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Concave', 'yourthemename' )
),
'fern' =&gt; array(
'url' =&gt; '%s/images/headers/fern.jpg',
'thumbnail_url' =&gt; '%s/images/headers/fern-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Fern', 'yourthemename' )
),
'forestfloor' =&gt; array(
'url' =&gt; '%s/images/headers/forestfloor.jpg',
'thumbnail_url' =&gt; '%s/images/headers/forestfloor-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Forest Floor', 'yourthemename' )
),
'inkwell' =&gt; array(
'url' =&gt; '%s/images/headers/inkwell.jpg',
'thumbnail_url' =&gt; '%s/images/headers/inkwell-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Inkwell', 'yourthemename' )
),
'path' =&gt; array(
'url' =&gt; '%s/images/headers/path.jpg',
'thumbnail_url' =&gt; '%s/images/headers/path-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Path', 'yourthemename' )
),
'sunset' =&gt; array(
'url' =&gt; '%s/images/headers/sunset.jpg',
'thumbnail_url' =&gt; '%s/images/headers/sunset-thumbnail.jpg',
/* translators: header image description */
'description' =&gt; __( 'Sunset', 'yourthemename' )
)
) );
}
endif;

if ( ! function_exists( 'yourthemename_admin_header_style' ) ) :
/**
* Styles the header image displayed on the Appearance &gt; Header admin panel.
*
* Referenced via add_custom_image_header() in yourthemename_setup().
*
* @since Twenty Ten 1.0
*/
function yourthemename_admin_header_style() {
?&gt;
&lt;style type="text/css"&gt;
/* Shows the same border as on front end */
#headimg {
border-bottom: 1px solid #000;
border-top: 4px solid #000;
}
/* If NO_HEADER_TEXT is false, you would style the text with these selectors:
#headimg #name { }
#headimg #desc { }
*/
&lt;/style&gt;
&lt;?php
}
endif;</pre>
<p>And the following code in your header.php (where you would want your header images be appeared):</p>
<pre class="brush:php">// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &amp;&amp; current_theme_supports( 'post-thumbnails' ) &amp;&amp;
has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post-&gt;ID );
elseif ( get_header_image() ) : ?&gt;
&lt;img src="&lt;?php header_image(); ?&gt;" width="&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;" height="&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;" alt="" /&gt;
&lt;?php endif;</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fwordpress%2Fchanging-header_image_width-and-header_image_height-in-worpress-3-3-header%2F&amp;title=Changing%20HEADER_IMAGE_WIDTH%20and%20HEADER_IMAGE_HEIGHT%20in%20worpress%203.3%20header" id="wpa2a_10"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/wordpress/how-to-remove-html-margin-top-28px-important-from-wordpress-header/' rel='bookmark' title='How to remove html { margin-top: 28px !important; } from wordpress header'>How to remove html { margin-top: 28px !important; } from wordpress header</a> <small>To remove html { margin-top: 28px !important; } from wordpress...</small></li>
<li><a href='http://www.devarticles.in/wordpress/get-post-thumbnail-out-side-of-the-loop-in-wordpress/' rel='bookmark' title='Get post thumbnail out side of the Loop in wordpress'>Get post thumbnail out side of the Loop in wordpress</a> <small>Just got a way to get the post thumbnail outside...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/creating-rss-feed-dynamically-and-merging-it-with-another-rss-feed/' rel='bookmark' title='Creating rss feed dynamically and merging it with another rss feed'>Creating rss feed dynamically and merging it with another rss feed</a> <small>Recently i generated a rss feed from business listings for...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/x8JNweEvRgHtJcZfEcV0H2f19XA/0/da"><img src="http://feedads.g.doubleclick.net/~a/x8JNweEvRgHtJcZfEcV0H2f19XA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/x8JNweEvRgHtJcZfEcV0H2f19XA/1/da"><img src="http://feedads.g.doubleclick.net/~a/x8JNweEvRgHtJcZfEcV0H2f19XA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/wordpress/changing-header_image_width-and-header_image_height-in-worpress-3-3-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove html { margin-top: 28px !important; } from wordpress header</title>
		<link>http://www.devarticles.in/wordpress/how-to-remove-html-margin-top-28px-important-from-wordpress-header/</link>
		<comments>http://www.devarticles.in/wordpress/how-to-remove-html-margin-top-28px-important-from-wordpress-header/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 11:33:21 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[remove margin-top]]></category>
		<category><![CDATA[wordpress margin-top remove]]></category>
		<category><![CDATA[wordpress tips&tricks]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1802</guid>
		<description><![CDATA[To remove html { margin-top: 28px !important; } from wordpress header go to /wp-includes/admin-bar.php and edit around line 672 (in WordPress 3.3) Alternatly you can add a remove_action filter in you active theme/functions.php file like this, as this is a part of _admin_bar_bump_cb function which is defined in above mentioned file: add_action('get_header', 'my_filter_head'); function my_filter_head() [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/wordpress/changing-header_image_width-and-header_image_height-in-worpress-3-3-header/' rel='bookmark' title='Changing HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT in worpress 3.3 header'>Changing HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT in worpress 3.3 header</a> <small>I see &lt;img src="&lt;?php header_image(); ?&gt;" width="&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;" height="&lt;?php...</small></li>
<li><a href='http://www.devarticles.in/wordpress/getting-current-page-url-and-title-for-social-network-sharing-in-wordpress/' rel='bookmark' title='Getting current page url and title for social network sharing in WordPress'>Getting current page url and title for social network sharing in WordPress</a> <small>Today i added a few social network sharing buttons i.e....</small></li>
<li><a href='http://www.devarticles.in/wordpress/template-drop-down-list-missing-in-edit-page-in-wordpress/' rel='bookmark' title='Template drop down list missing in edit page in wordpress'>Template drop down list missing in edit page in wordpress</a> <small>Last night i installed a new theme to this blog...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To remove html { margin-top: 28px !important; } from wordpress header go to /wp-includes/admin-bar.php and edit around line 672 (in WordPress 3.3)</p>
<p>Alternatly you can add a remove_action filter in you active theme/functions.php file like this, as this is a part of _admin_bar_bump_cb function which is defined in above mentioned file:<span id="more-1802"></span></p>
<pre class="codeblock">add_action('get_header', 'my_filter_head');

function my_filter_head() {
	remove_action('wp_head', '_admin_bar_bump_cb');
}</pre>
<p>You can check detailed discussion here, <a href="http://wordpress.org/support/topic/31-update-causing-28px-top-spacing-in-html-body" target="_blank">http://wordpress.org/support/topic/31-update-causing-28px-top-spacing-in-html-body</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fwordpress%2Fhow-to-remove-html-margin-top-28px-important-from-wordpress-header%2F&amp;title=How%20to%20remove%20html%20%7B%20margin-top%3A%2028px%20%21important%3B%20%7D%20from%20wordpress%20header" id="wpa2a_12"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/wordpress/changing-header_image_width-and-header_image_height-in-worpress-3-3-header/' rel='bookmark' title='Changing HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT in worpress 3.3 header'>Changing HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT in worpress 3.3 header</a> <small>I see &lt;img src="&lt;?php header_image(); ?&gt;" width="&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;" height="&lt;?php...</small></li>
<li><a href='http://www.devarticles.in/wordpress/getting-current-page-url-and-title-for-social-network-sharing-in-wordpress/' rel='bookmark' title='Getting current page url and title for social network sharing in WordPress'>Getting current page url and title for social network sharing in WordPress</a> <small>Today i added a few social network sharing buttons i.e....</small></li>
<li><a href='http://www.devarticles.in/wordpress/template-drop-down-list-missing-in-edit-page-in-wordpress/' rel='bookmark' title='Template drop down list missing in edit page in wordpress'>Template drop down list missing in edit page in wordpress</a> <small>Last night i installed a new theme to this blog...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/1WdPZDvr5WmTw-EnqY8611XLESQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/1WdPZDvr5WmTw-EnqY8611XLESQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1WdPZDvr5WmTw-EnqY8611XLESQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/1WdPZDvr5WmTw-EnqY8611XLESQ/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/wordpress/how-to-remove-html-margin-top-28px-important-from-wordpress-header/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>“Warning: session_start() [function.session-start]: open(/tmp…”, a possible fix for oscommerce</title>
		<link>http://www.devarticles.in/oscommerce/warning-session_start-function-session-start-opentmp-a-possible-fix-for-oscommerce/</link>
		<comments>http://www.devarticles.in/oscommerce/warning-session_start-function-session-start-opentmp-a-possible-fix-for-oscommerce/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 12:35:14 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[OSCommerce]]></category>
		<category><![CDATA[osc tmp folder error]]></category>
		<category><![CDATA[Warning: session_start]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1796</guid>
		<description><![CDATA[For the following warning in oscommerce installation: Warning: session_start() [function.session-start]: open(/tmp\sess_5616cfa91211a8ef5ee94d09d21f7eb5, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\catalog\includes\functions\sessions.php on line 67 As a solution they will suggest you to create a tmp folder in your root folder.. You create a folder in your (document) root or in your site root (catalog here) [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/cakephp/a-note-on-form-datetimefield_name-generating-offset-warning-in-cakephp/' rel='bookmark' title='A note on $form-&gt;dateTime(&#8216;field_name&#8217;) generating offset warning in CakePHP'>A note on $form->dateTime(&#8216;field_name&#8217;) generating offset warning in CakePHP</a> <small>This is a note on $form->dateTime(&#8216;field_name&#8217;) generating offset warning i.e....</small></li>
<li><a href='http://www.devarticles.in/linux/getting-a-way-around-the-no-protocol-specified-cannot-open-display0-0-message/' rel='bookmark' title='Getting a way around the &#8220;No protocol specified, &#8230;cannot open display:0.0&#8243; message'>Getting a way around the &#8220;No protocol specified, &#8230;cannot open display:0.0&#8243; message</a> <small>After doing sudo su - (to give myself root privileges)...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For the following warning in oscommerce installation:</p>
<pre class="codeblock">Warning: session_start() [function.session-start]: open(/tmp\sess_5616cfa91211a8ef5ee94d09d21f7eb5, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\catalog\includes\functions\sessions.php on line 67</pre>
<p>As a solution they will suggest you to create a tmp folder in your root folder.. <span id="more-1796"></span>You create a folder in your (document) root or in your site root (catalog here) and it would still not work. Hmm. Actually by root they mean it your system root and not the document root or site root. For example, in Windows if your site is located at C:/wamp/www your root is C. So just place an empty tmp folder under C and this warning should disappear. For Linux systems it will be / or /public_html but i haven&#8217;t experienced this warning on Linux systems.</p>
<p>I hope it helps someone.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Foscommerce%2Fwarning-session_start-function-session-start-opentmp-a-possible-fix-for-oscommerce%2F&amp;title=%26%238220%3BWarning%3A%20session_start%28%29%20%5Bfunction.session-start%5D%3A%20open%28%2Ftmp%26%238230%3B%26%238221%3B%2C%20a%20possible%20fix%20for%20oscommerce" id="wpa2a_14"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/cakephp/a-note-on-form-datetimefield_name-generating-offset-warning-in-cakephp/' rel='bookmark' title='A note on $form-&gt;dateTime(&#8216;field_name&#8217;) generating offset warning in CakePHP'>A note on $form->dateTime(&#8216;field_name&#8217;) generating offset warning in CakePHP</a> <small>This is a note on $form->dateTime(&#8216;field_name&#8217;) generating offset warning i.e....</small></li>
<li><a href='http://www.devarticles.in/linux/getting-a-way-around-the-no-protocol-specified-cannot-open-display0-0-message/' rel='bookmark' title='Getting a way around the &#8220;No protocol specified, &#8230;cannot open display:0.0&#8243; message'>Getting a way around the &#8220;No protocol specified, &#8230;cannot open display:0.0&#8243; message</a> <small>After doing sudo su - (to give myself root privileges)...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/L02QUsivSJo4BOwSs3lOBsmB-Wo/0/da"><img src="http://feedads.g.doubleclick.net/~a/L02QUsivSJo4BOwSs3lOBsmB-Wo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/L02QUsivSJo4BOwSs3lOBsmB-Wo/1/da"><img src="http://feedads.g.doubleclick.net/~a/L02QUsivSJo4BOwSs3lOBsmB-Wo/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/oscommerce/warning-session_start-function-session-start-opentmp-a-possible-fix-for-oscommerce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conditional order by sorting using two fields in MySQL</title>
		<link>http://www.devarticles.in/mysql/conditional-order-by-sorting-using-two-fields-in-mysql/</link>
		<comments>http://www.devarticles.in/mysql/conditional-order-by-sorting-using-two-fields-in-mysql/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 16:41:38 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[conditional order by]]></category>
		<category><![CDATA[sql order by with two fields]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1786</guid>
		<description><![CDATA[Here&#8217;s the scenario. I have two fields in my &#8220;listings&#8221; table with help of which i wanted to sort (order by) results. First field is &#8220;activation_date&#8221;. It is the activation date of a listing. Second one is &#8220;featured&#8221; which stores featured tag for a listing in a value of 1 or 0. I wanted that [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/php/mysql-custom-sorting-order-by-field-value/' rel='bookmark' title='MYSQL custom sorting – order by field value'>MYSQL custom sorting – order by field value</a> <small>Yesterday i had a somewhat new (for me ) and...</small></li>
<li><a href='http://www.devarticles.in/mysql/how-to-update-a-mysql-table-with-the-count-of-another-table-while-using-like-statement/' rel='bookmark' title='How to update a mysql table with the count of another table while using like statement'>How to update a mysql table with the count of another table while using like statement</a> <small>While working on a web links directory i wanted to...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/creating-rss-feed-dynamically-and-merging-it-with-another-rss-feed/' rel='bookmark' title='Creating rss feed dynamically and merging it with another rss feed'>Creating rss feed dynamically and merging it with another rss feed</a> <small>Recently i generated a rss feed from business listings for...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario. </p>
<p>I have two fields in my &#8220;listings&#8221; table with help of which i wanted to sort (order by) results. First field is &#8220;activation_date&#8221;. It is the activation date of a listing. Second one is &#8220;featured&#8221; which stores featured tag for a listing in a value of 1 or 0. <span id="more-1786"></span>I wanted that the listings which are &#8220;featured&#8221; (featured=1) AND <u>were activated withing last 14 days</u> come at the top <u>ordered by activation_date in descending order</u>. After that come the remaining &#8220;active&#8221; listings ordered by <u>activation_date in descending order</u>. Here&#8217;s the sql statement which i ended with. (obviously those &#8220;featured&#8221; listings should be &#8220;active&#8221; as well)</p>
<pre class="codeblock">SELECT * FROM 'listings` WHERE `active`=1
ORDERED BY
CASE WHEN (DATEDIFF(CURRENT_DATE, `activation_date`) < 14) THEN featured
       ELSE 0
      END DESC, activation_date DESC</pre>
<p>I hope it helps someone.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fmysql%2Fconditional-order-by-sorting-using-two-fields-in-mysql%2F&amp;title=Conditional%20order%20by%20sorting%20using%20two%20fields%20in%20MySQL" id="wpa2a_16"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/php/mysql-custom-sorting-order-by-field-value/' rel='bookmark' title='MYSQL custom sorting – order by field value'>MYSQL custom sorting – order by field value</a> <small>Yesterday i had a somewhat new (for me ) and...</small></li>
<li><a href='http://www.devarticles.in/mysql/how-to-update-a-mysql-table-with-the-count-of-another-table-while-using-like-statement/' rel='bookmark' title='How to update a mysql table with the count of another table while using like statement'>How to update a mysql table with the count of another table while using like statement</a> <small>While working on a web links directory i wanted to...</small></li>
<li><a href='http://www.devarticles.in/miscelleneous/creating-rss-feed-dynamically-and-merging-it-with-another-rss-feed/' rel='bookmark' title='Creating rss feed dynamically and merging it with another rss feed'>Creating rss feed dynamically and merging it with another rss feed</a> <small>Recently i generated a rss feed from business listings for...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/rbwBxJ31MPXGiSyFbEkQxIiyMdo/0/da"><img src="http://feedads.g.doubleclick.net/~a/rbwBxJ31MPXGiSyFbEkQxIiyMdo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rbwBxJ31MPXGiSyFbEkQxIiyMdo/1/da"><img src="http://feedads.g.doubleclick.net/~a/rbwBxJ31MPXGiSyFbEkQxIiyMdo/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/mysql/conditional-order-by-sorting-using-two-fields-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check radio button on page load with jQuery</title>
		<link>http://www.devarticles.in/jquery/how-to-check-radio-button-on-page-load-with-jquery/</link>
		<comments>http://www.devarticles.in/jquery/how-to-check-radio-button-on-page-load-with-jquery/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 14:28:10 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery onload radio checked]]></category>
		<category><![CDATA[radio checked onload]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1781</guid>
		<description><![CDATA[For example you have a set of radio buttons created dynamically with some web language like PHP and you expected one of them selected or checked on most of the times. If, none of them was checked somehow, you would want jQuery to get one of checked on page load. Here&#8217;s the quick solution to [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/javascript/checking-unchecking-radio-buttons-and-retrieving-their-value-in-jquery/' rel='bookmark' title='Checking / Unchecking radio buttons and retrieving their value in jQuery'>Checking / Unchecking radio buttons and retrieving their value in jQuery</a> <small>Let us assume we have radio buttons &lt;input name="rd_name" id="RD1"...</small></li>
<li><a href='http://www.devarticles.in/php/validating-php-multiple-value-checkbox-form-element-with-javascript/' rel='bookmark' title='Validating php multiple-value checkbox form element with javascript'>Validating php multiple-value checkbox form element with javascript</a> <small>In php a multiple-value form element such as checkbox is...</small></li>
<li><a href='http://www.devarticles.in/html-css/setting-stylecss-of-select-options-using-jquery/' rel='bookmark' title='Setting Style/CSS of select options using jQuery'>Setting Style/CSS of select options using jQuery</a> <small>This is how i set style (color here) of all...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For example you have a set of radio buttons created dynamically with some web language like PHP and you expected one of them selected or checked on most of the times. If, none of them was checked somehow, you would want jQuery to get one of checked on page load. Here&#8217;s the quick solution to this condition.<span id="more-1781"></span></p>
<p>You have three radio buttons for the selection of colors like this:</p>
<pre class="brush:html">
<input type="radio" name="color" value="red" /> Red
<input type="radio" name="color" value="green" /> Green
<input type="radio" name="color" value="blue" /> blue
</pre>
<p>The following jQuery code does the job to select green color if none of them was selected, on page load or onload event.</p>
<pre class="brush:js">
$(document).ready(function() {
    var $colors = $('input:radio[name=color]');
    if($colors.is(':checked') === false) {
        $colors.filter('[value=green]').attr('checked', true);
    }
});
</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fjquery%2Fhow-to-check-radio-button-on-page-load-with-jquery%2F&amp;title=How%20to%20check%20radio%20button%20on%20page%20load%20with%20jQuery" id="wpa2a_18"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/javascript/checking-unchecking-radio-buttons-and-retrieving-their-value-in-jquery/' rel='bookmark' title='Checking / Unchecking radio buttons and retrieving their value in jQuery'>Checking / Unchecking radio buttons and retrieving their value in jQuery</a> <small>Let us assume we have radio buttons &lt;input name="rd_name" id="RD1"...</small></li>
<li><a href='http://www.devarticles.in/php/validating-php-multiple-value-checkbox-form-element-with-javascript/' rel='bookmark' title='Validating php multiple-value checkbox form element with javascript'>Validating php multiple-value checkbox form element with javascript</a> <small>In php a multiple-value form element such as checkbox is...</small></li>
<li><a href='http://www.devarticles.in/html-css/setting-stylecss-of-select-options-using-jquery/' rel='bookmark' title='Setting Style/CSS of select options using jQuery'>Setting Style/CSS of select options using jQuery</a> <small>This is how i set style (color here) of all...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/GKVDSaCLNjw5RMGU8HKlM6H_14s/0/da"><img src="http://feedads.g.doubleclick.net/~a/GKVDSaCLNjw5RMGU8HKlM6H_14s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GKVDSaCLNjw5RMGU8HKlM6H_14s/1/da"><img src="http://feedads.g.doubleclick.net/~a/GKVDSaCLNjw5RMGU8HKlM6H_14s/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/jquery/how-to-check-radio-button-on-page-load-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a new php functionality page in iLister, the business classifieds system</title>
		<link>http://www.devarticles.in/php/creating-a-new-php-functionality-page-in-ilister-the-business-classifieds-system/</link>
		<comments>http://www.devarticles.in/php/creating-a-new-php-functionality-page-in-ilister-the-business-classifieds-system/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 12:21:55 +0000</pubDate>
		<dc:creator>Arvind K.</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devarticles.in/?p=1776</guid>
		<description><![CDATA[Here&#8217;s the step by step guide to create a new functionality page in iLister. Let&#8217;s say we wanted to create a new small enquiry form at the http://www.yoursite.com/contact_us. For this to make happen we will create a new ContactUs handler to process the form values and will place it under miscellaneous. Following are the steps [...]
Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/php/to-check-in-a-smarty-template-if-it-was-the-last-page-of-the-page-results/' rel='bookmark' title='To check in a smarty template if it was the last page of the page results'>To check in a smarty template if it was the last page of the page results</a> <small>Here&#8217;s a method to check in a smarty template if...</small></li>
<li><a href='http://www.devarticles.in/php/choosing-a-business-listing-directory-script-written-in-php/' rel='bookmark' title='Choosing a business listing directory script written in php'>Choosing a business listing directory script written in php</a> <small>I got a new client today who wanted a brand...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the step by step guide to create a new functionality page in iLister.</p>
<p>Let&#8217;s say we wanted to create a new small enquiry form at the http://www.yoursite.com/contact_us. For this to make happen we will create a new <strong>ContactUs</strong> handler to process the form values and will place it under miscellaneous. Following are the steps required.<span id="more-1776"></span></p>
<ol>
<li>Go to <em>apps/frontEnd/modules/miscellaneous</em> and open <em>config.php</em></li>
<li>Add a new handler function to the list. In this example we add
<pre class="codeblock">,
  'contact_us' => array
  (
	  'display_name' => 'Contact Us Page',
	  'class' => 'ContactUsHandler',
	  'raw_output' => true,
  ),</pre>
</li>
<li>Now goto <em>apps/frontEnd/scripts/miscellaneous</em> and create a new php file named <em>ContactUsHandler.php</em> in it.</li>
<li>Place the following code in it. You will have to modify it according to your needs.
<pre class="codeblock">class ContactUsHandler extends ContentHandlerBase
  {
	  public function respond()
	  {
	      //execut you form values here, access database or do anything you would do inside any handles of your iLister. You have access to main iLister object $this->appContext here. Also you could render the template file here 

	  }
  }</pre>
</li>
<li>As a last step goto your admin section and tell your system to access the correct Handler on a http://www.yoursite.com/contact_us call in browser&#8217;s address bar. Go to Site Layout > Site Pages (/admin/site_pages/ currently) and click Add  New Site Page. In the New Page form add <code>/contact_us/</code> for <strong>URI</strong> select <code>miscellaneous</code> for <strong>Module</strong> and <code>contact_us</code> for the <strong>Function</strong> field (it should be there once you add them correctly above in <em>config.php</em>).</li>
<li>Create a new template file contact_us.tpl in apps/frontEnd/templates/ActiveTemplateFolderName/miscellaneous. You will place your enquiry form in this template file. Set your form action to <code>http://www.yoursite.com/contact_us</code>.</li>
<p>That&#8217;s all about creating a new functionality page in iLister classifieds. I will post some more information on iLister functionality later.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.devarticles.in%2Fphp%2Fcreating-a-new-php-functionality-page-in-ilister-the-business-classifieds-system%2F&amp;title=Creating%20a%20new%20php%20functionality%20page%20in%20iLister%2C%20the%20business%20classifieds%20system" id="wpa2a_20"><img src="http://www.devarticles.in/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p><p>Possibly Related posts:<ol>
<li><a href='http://www.devarticles.in/php/to-check-in-a-smarty-template-if-it-was-the-last-page-of-the-page-results/' rel='bookmark' title='To check in a smarty template if it was the last page of the page results'>To check in a smarty template if it was the last page of the page results</a> <small>Here&#8217;s a method to check in a smarty template if...</small></li>
<li><a href='http://www.devarticles.in/php/choosing-a-business-listing-directory-script-written-in-php/' rel='bookmark' title='Choosing a business listing directory script written in php'>Choosing a business listing directory script written in php</a> <small>I got a new client today who wanted a brand...</small></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/DymNkPXnaj7d6oTdHstzSOETaFk/0/da"><img src="http://feedads.g.doubleclick.net/~a/DymNkPXnaj7d6oTdHstzSOETaFk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DymNkPXnaj7d6oTdHstzSOETaFk/1/da"><img src="http://feedads.g.doubleclick.net/~a/DymNkPXnaj7d6oTdHstzSOETaFk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.devarticles.in/php/creating-a-new-php-functionality-page-in-ilister-the-business-classifieds-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

