
<?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>Web Developer Plus</title>
	<atom:link href="http://webdeveloperplus.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdeveloperplus.com</link>
	<description>The Ultimate Web Developer&#039;s Resource</description>
	<lastBuildDate>Sun, 04 Jul 2010 11:38:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>40 Fresh &amp; Beautiful Examples of Websites With Large Backgrounds</title>
		<link>http://webdeveloperplus.com/design/40-fresh-beautiful-examples-of-websites-with-large-backgrounds/</link>
		<comments>http://webdeveloperplus.com/design/40-fresh-beautiful-examples-of-websites-with-large-backgrounds/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 08:15:23 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[design showcase]]></category>
		<category><![CDATA[large backgrounds]]></category>
		<category><![CDATA[trends]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=642</guid>
		<description><![CDATA[Using large sized pictures or illustrations as your website's background adds a great visual appeal to your website's design. Many web designers use large images as backgrounds as more and more users are now opting for high resolution monitors and high speed internet connections. Here's a showcase of 40 Fresh and amazing websites that are using large background images.]]></description>
			<content:encoded><![CDATA[<p>Using large sized pictures or illustrations as your website&#8217;s background adds a great visual appeal to your website&#8217;s design. Many web designers use large images as backgrounds as more and more users are now opting for high resolution monitors and high speed internet connections. Here&#8217;s a showcase of 40 Fresh and amazing websites that are using large background images.</p>
<h4>1. <a href="http://blog.thepixel.com/" target="_blank" >The Pixel Blog</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/the-pixel-blog.jpg" alt="The Pixel Blog" width="500" height="244" /><br />
<span id="more-642"></span></p>
<h4>2. <a href="http://www.copimaj.ro/" target="_blank" >Copimaj Interactive</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/copimaj-interactive.jpg" alt="Copimaj Interactive" width="500" height="243" /></p>
<h4>3. <a href="http://www.floridaflourish.com/" target="_blank" >Flourish Web Design</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/florida-flourish.jpg" alt="Flourish Web Design" width="500" height="244" /></p>
<h4>4. <a href="http://abductionlamp.com/" target="_blank" >Abduction Lamp</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/abduction-lamp.jpg" alt="Abduction Lamp" width="500" height="243" /></p>
<h4>5. <a href="http://www.morphix.si/" target="_blank" >Morphix Design Studio</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/morphix-design-studio.jpg" alt="Morphix Design Studio" width="500" height="244" /></p>
<h4>6. <a href="http://www.finalphase.org/" target="_blank" >Final Phase</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/final-phase.jpg" alt="Final Phase" width="500" height="244" /></p>
<h4>7. <a href="http://makephotoshopfaster.com/" target="_blank" >Make Photoshop Faster</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/make-photoshop-faster.jpg" alt="Make Photoshop Faster" width="500" height="244" /></p>
<h4>8. <a href="http://www.websarga.com/" target="_blank" >WebSarga</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/web-sarga.jpg" alt="Web Sarga" width="500" height="244" /></p>
<h4>9. <a href="http://www.suiepaparude.ro/" target="_blank" >Suie Paparude</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/suie-paparude.jpg" alt="Suie Paparude" width="500" height="237" /></p>
<h4>10. <a href="http://www.duirwaigh.com/" target="_blank" >Duirwaigh Studios</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/duirwaigh-studios.jpg" alt="Duirwaigh Studios" width="500" height="244" /></p>
<h4>11. <a href="http://blackmoondev.com/" target="_blank" >BlackMoon Design</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/black-moon-design.jpg" alt="BlackMoon Design" width="500" height="239" /></p>
<h4>12. <a href="http://septira.com/" target="_blank" >Sepitra</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/sepitra.jpg" alt="Sepitra" width="500" height="242" /></p>
<h4>13. <a href="http://www.gruny.net/" target="_blank" >Le Blog de Gruny</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/le-blog-de-gruny.jpg" alt="Le Blog de Gruny" width="500" height="244" /></p>
<h4>14. <a href="http://www.piipeonline.com/" target="_blank" >Piipe</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/piipeo.jpg" alt="Piipe" width="500" height="243" /></p>
<h4>15. <a href="http://www.moziweb.com/" target="_blank" >Mozi Design Studio</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/moziweb.jpg" alt="Mozi Design Studio" width="500" height="244" /></p>
<h4>16. <a href="http://www.electricurrent.com/" target="_blank" >Electric Current</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/electric-current.jpg" alt="Electric Current" width="500" height="243" /></p>
<h4>17. <a href="http://www.ravenatlorabay.com/" target="_blank" >Lora Bay Golf</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/lora-bay-golf.jpg" alt="Lora Bay Golf" width="500" height="243" /></p>
<h4>18. <a href="http://www.lifestylesports.cz/" target="_blank" >Life Style Sports</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/lifestyle-sports.jpg" alt="LifeStyle Sports" width="500" height="240" /></p>
<h4>19. <a href="http://www.ligne13.com/blog/" target="_blank" >ligne triez</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/ligne-treize.jpg" alt="ligne triez" width="500" height="245" /></p>
<h4>20. <a href="http://oliverkavanagh.com/" target="_blank" >Oliver Kavanagh</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/oliver-kavanagh.jpg" alt="Oliver Kavanagh" width="500" height="237" /></p>
<h4>21. <a href="http://www.worldofmerix.com/" target="_blank" >World of Merix Studio</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/merix-studio.jpg" alt="Merix Studio" width="500" height="241" /></p>
<h4>22. <a href="http://lewebdefi.com/" target="_blank" >Le Web Defi</a></h4>
<p>	<img src="http://webdeveloperplus.com/wp-content/uploads/2009/11/le-web-defi.jpg" alt="le-web-defi" title="le-web-defi" width="500" height="244" /></p>
<h4>23. <a href="http://www.howhost.com/en/" target="_blank" >How host</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/howhost.jpg" alt="How host" width="500" height="244" /></p>
<h4>24. <a href="http://www.productivedreams.com/" target="_blank" >Productive Dreams</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/productive-dreams.jpg" alt="Productive Dreams" width="500" height="244" /></p>
<h4>25. <a href="http://www.garybirnie.co.uk/start.html" target="_blank" >Gary Birnie</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/gary-birnie.jpg" alt="Gary Birnie" width="500" height="244" /></p>
<h4>26. <a href="http://www.glocalventures.org/" target="_blank" >Glocal Ventures</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/glocal-ventures.jpg" alt="Glocal Ventures" width="500" height="244" /></p>
<h4>27. <a href="http://www.gdruk.com/" target="_blank" >GDR UK</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/gdr.jpg" alt="GDR UK" width="500" height="244" /></p>
<h4>28. <a href="http://www.absolutebica.com/" target="_blank" >Absolute Bica</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/absolute-bica.jpg" alt="Absolute Bica" width="500" height="244" /></p>
<h4>29. <a href="http://www.lenordik.com/" target="_blank" >Le Nordik</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/le-nordik.jpg" alt="Le Nordik" width="500" height="240" /></p>
<h4>30. <a href="http://www.thisisleaf.co.uk/" target="_blank" >Leaf Tea Shop &#038; Bar</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/leaf-shop.jpg" alt="Leaf Tea Shop" width="500" height="244" /></p>
<h4>31. <a href="http://www.paulsmith.co.uk/" target="_blank" >Paul Smith</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/paul-smith.jpg" alt="Paul Smith" width="500" height="241" /></p>
<h4>32. <a href="http://ewingcole.com/" target="_blank" >EwingCole</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/ewingcole.jpg" alt="EwingCole" width="500" height="244" /></p>
<h4>33. <a href="http://www.dolphinsonline.gr/" target="_blank" >Dolphins Communication Design</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/dolphins-design.jpg" alt="Dolphins Design" width="500" height="241" /></p>
<h4>34. <a href="http://dannydiablo.de/" target="_blank" >Danny Diablo</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/danny-diablo.jpg" alt="Danny Diablo" width="500" height="244" /></p>
<h4>35. <a href="http://innermetrogreen.com/" target="_blank" >Inner Metro Green</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/inner-metro-green.jpg" alt="Inner Metro Green" width="500" height="244" /></p>
<h4>36. <a href="http://mattsalik.com/" target="_blank" >Matt Salik</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/matt-salik.jpg" alt="Matt Salik" width="500" height="244" /></p>
<h4>37. <a href="http://revyver.com/" target="_blank" >Revyer</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/revyer.jpg" alt="Revyer" width="500" height="244" /></p>
<h4>38. <a href="http://yodaa.com/" target="_blank" >Yodaa</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/yodaa.jpg" alt="Yodaa" width="500" height="244" /></p>
<h4>39. <a href="http://drippinginsunshine.com/" target="_blank" >Dripping in Sunshine</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/dripping-in-sunshine.jpg" alt="Dripping in Sunshine" width="500" height="244" /></p>
<h4>40. <a href="http://big-break.com/" target="_blank" >Big Break &#8217;09</a></h4>
<p>	<img src="http://thumbs.webdeveloperplus.com/uploads/2009/11/large-backgrounds-showcase/big-break.jpg" alt="Big Break '09" width="500" height="244" /></p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/design/13-fresh-high-quality-texture-sets/' rel='bookmark' title='13+ Fresh and High Quality Texture Sets &amp; Collections'>13+ Fresh and High Quality Texture Sets &#038; Collections</a></li>
<li><a href='http://webdeveloperplus.com/design/23-inspirational-photoshop-tutorials-for-creating-impressive-web-layouts/' rel='bookmark' title='23 Inspirational Photoshop Tutorials For Creating Impressive Web Layouts'>23 Inspirational Photoshop Tutorials For Creating Impressive Web Layouts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/design/40-fresh-beautiful-examples-of-websites-with-large-backgrounds/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Quick &amp; Easy Way to Implement Drag n Share With jQuery</title>
		<link>http://webdeveloperplus.com/jquery/quick-easy-way-to-implement-drag-n-share-with-jquery/</link>
		<comments>http://webdeveloperplus.com/jquery/quick-easy-way-to-implement-drag-n-share-with-jquery/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 14:09:13 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery plugins]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=626</guid>
		<description><![CDATA[You must have seen the drag to share functionality on Mashable that lets visitors share the content on popular social networks intuitively. here is a much elegant solution to achieve the drag n share effect using jQuery with just a line or two of JavaScript code.]]></description>
			<content:encoded><![CDATA[<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/11/drag-n-share-jquery.jpg" alt="Drag to Share with jQuery" title="Drag to Share with jQuery" width="500" height="278" class="alignnone size-full wp-image-627" /><br />
You must have seen the drag to share functionality on <a href="http://mashable.com" >Mashable</a> that lets visitors share the content on popular social networks intuitively. Just drag one of the images in an article and you&#8217;ll be able to share the article on your favorite social network by dropping the dragged image over its icon. Even, Nettuts has written a nice <a href="http://net.tutsplus.com/tutorials/javascript-ajax/drag-to-share/">tutorial</a> on how to implement this functionality into your website using jQuery. But here is a much elegant solution to achieve the drag n share effect using jQuery with just a line or two of JavaScript code.<br />
<span id="more-626"></span></p>
<h3>Get the prettySociable Plugin</h3>
<p>To implement this functionality, you will need the <a href="http://www.no-margin-for-errors.com/projects/prettySociable/"><strong>prettySociable jQuery plugin</strong></a> written by Stéphane Caron. Download and extract the plugin, it contains everything you need to get up and running with drag n share.</p>
<h3>Include the Required Files</h3>
<p>To add drag n share to a page, add reference to jquery and prettySociable in your page&#8217;s <code>head</code> tag. The plugin folder also includes <em>images and css</em> folders in addition to <em>js</em> folder. You&#8217;ll need them too as <em>css</em> folder contains styles necessary for drag n share elements and <em>images</em> folder contains icons for various social networks.<br />
Here&#8217;s the complete code you need to add into the  <code>head</code> tag.</p>
<pre name="code" class="html" >
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/prettySociable.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; charset=&quot;utf-8&quot; /&gt;
&lt;script src=&quot;js/jquery-1.3.2.min.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
&lt;!--[if lte IE 6]&gt;&lt;script src=&quot;js/DD_belatedPNG.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;
&lt;script src=&quot;js/jquery.prettySociable.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
</pre>
<p>The <em>js</em> folder also includes <em>DD_belatedPNG.js</em> which is used to fix PNG transparency issues in IE6 or older. You need to include that too.</p>
<h3>Define Draggable Links</h3>
<p>Now to add drag n share to your web page, add an anchor tag <code>&lt;a href=&quot;#&quot; &gt;</code> with another attribute <code>rel=&quot;prettySociable&quot;</code>.</p>
<h3>Initialize prettySociable</h3>
<p>After you have added the <strong>rel</strong> attribute, you need to initialize the script. Add this single line of code, just above the <code>&lt;/body&gt;</code></p>
<pre name="code" class="html" >
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
	// Init prettySociable
	$.prettySociable();
&lt;/script&gt;
</pre>
<p>Check out your page in browser and you should get drag to share functionality working nicely.</p>
<h3>Customizing the Default Settings</h3>
<h4>Customizing the Shared Information</h4>
<p>When you add <strong>rel=&quot;prettySociable&quot;</strong> on an anchor tag with its <strong>href=&quot;#&quot;</strong>, this will share the URL of the current web page and use the title and meta description in <code>head</code> tag to display the tooltip on drag. </p>
<p>But if you need to share a different URL instead of the current web page, specify a URL in the <strong>href</strong> attribute. Also you can customize the tooltip information which is shown on dragging. You can specify custom title and description in the <strong>rel</strong> attribute in this way.<br />
<code>rel=&quot;prettySociable;title:custom title;excerpt:custom excerpt;&quot;</code></p>
<h4>Customizing the Sharing Panel</h4>
<p>By default prettySociable supports eight social networks but you can customize the social networks and their icons to your requirement. For that you&#8217;ll need to pass a settings object to <em>prettySociable</em> function.</p>
<p>Here&#8217;s the complete settings object</p>
<pre name="code" class="js" >
$.prettySociable({
				animationSpeed: 'fast', /* fast/slow/normal */
				opacity: 0.90, /* Value between 0 and 1 */
				share_label: 'Drag to share', /* Text displayed when a user rollover an item */
				share_on_label: 'Share on ', /* Text displayed when a user rollover a website to share */
				hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettySociable */
				hover_padding: 0,
				websites: {
					facebook : {
						'active': true,
						'encode':true, // If sharing is not working, try to turn to false
						'title': 'Facebook',
						'url': 'http://www.facebook.com/share.php?u=',
						'icon':'images/prettySociable/large_icons/facebook.png',
						'sizes':{'width':70,'height':70}
					},
					twitter : {
						'active': true,
						'encode':true, // If sharing is not working, try to turn to false
						'title': 'Twitter',
						'url': 'http://twitter.com/home?status=',
						'icon':'images/prettySociable/large_icons/twitter.png',
						'sizes':{'width':70,'height':70}
					},
					delicious : {
						'active': true,
						'encode':true, // If sharing is not working, try to turn to false
						'title': 'Delicious',
						'url': 'http://del.icio.us/post?url=',
						'icon':'images/prettySociable/large_icons/delicious.png',
						'sizes':{'width':70,'height':70}
					},
					digg : {
						'active': true,
						'encode':true, // If sharing is not working, try to turn to false
						'title': 'Digg',
						'url': 'http://digg.com/submit?phase=2&amp;amp;url=',
						'icon':'images/prettySociable/large_icons/digg.png',
						'sizes':{'width':70,'height':70}
					}
					//add more social networks here
				},
				tooltip: {
						offsetTop:0,
						offsetLeft: 10
					},
				popup: {
					width: 900,
					height: 500
				},
				callback: function(){} /* Called when prettySociable is closed */
			});
</pre>
<p>The settings object is self explaining. You can specify which websites to use and also the icons to use for each website in the websites parameter.</p>
<p>You can enhance this drag n share script even further by using a shortened URL in the anchor tag&#8217;s <strong>href</strong> attribute.</p>
<p><a href="http://demo.webdeveloperplus.com/drag-n-share-jquery/" title="View Demo" ><strong>View Demo</strong></a> or <a href="http://www.no-margin-for-errors.com/projects/prettySociable/" title="Download prettySociable Plugin"><strong>Download prettySociable jQuery plugin</strong></a>.</p>
<p><em>P.S.</em>: To get this script to work correctly in IE, you will need to set <strong>margin and padding values</strong> in the style-sheet for anchor elements which are draggable.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/jquery/collpasible-drag-drop-panels/' rel='bookmark' title='Collapsible Drag &amp; Drop Panels Using jQuery'>Collapsible Drag &#038; Drop Panels Using jQuery</a></li>
<li><a href='http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/' rel='bookmark' title='AJAX Multiple File Upload Form Using jQuery'>AJAX Multiple File Upload Form Using jQuery</a></li>
<li><a href='http://webdeveloperplus.com/jquery/saving-state-for-collapsible-drag-drop-panels/' rel='bookmark' title='Saving State For Collapsible Drag Drop Panels'>Saving State For Collapsible Drag Drop Panels</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/jquery/quick-easy-way-to-implement-drag-n-share-with-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tips to Write Better CSS Code</title>
		<link>http://webdeveloperplus.com/css/tips-to-write-better-css-code/</link>
		<comments>http://webdeveloperplus.com/css/tips-to-write-better-css-code/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 07:34:46 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css optimization]]></category>
		<category><![CDATA[good practices]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=607</guid>
		<description><![CDATA[CSS is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing CSS code. Here are few tips that will help you write better and easy to manage CSS code. 1. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/11/better-css-code-tips.jpg" alt="Tips to write better CSS code" title="Tips to write better CSS code" width="500" height="200" class="alignnone size-full wp-image-621" /><br />
CSS is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing CSS code. Here are few tips that will help you write better and easy to manage CSS code.</p>
<h4>1. Don&#8217;t Use Global Reset</h4>
<p>Using global reset to remove default margin and padding from all HTML elements is a strict no-no. Not only it is slow and inefficient way but you&#8217;ll have to define margin and padding for each element that needs it. Instead use subset of CSS Resets like one from <a href="http://meyerweb.com/eric/tools/css/reset/index.html">Eric Meyer</a>.<span id="more-607"></span><br />
<strong>Not Good</strong></p>
<pre name="code" class="css" >
*{ margin:0; padding:0; }
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
html, body, div, dl, dt, dd, ul,  h1, h2, h3,  pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 }
table { border-collapse:collapse; border-spacing:0 }
fieldset, img { border:0 }
ul { list-style:none }
</pre>
<h4>2. Do not use IE Hacks</h4>
<p>Though CSS hacks might be useful to maintain consistent look of the website over older browsers like IE6, but they can be problematic for newer versions of IE as newer versions like IE8 do support CSS standards to a good level and using hacks might break out the layout. You should use conditional statements instead to target specific versions of Internet Explorer.<br />
For example, using the below lines of code within your <code>&lt;head&gt;</code> tag will load the iestyles.css file only when browser is Internet Explorer version 6 or less.</p>
<pre name="code" class="css" >
&lt;!--[if lte IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles/ie-styles.css&quot; /&gt;
&lt;![endif]--&gt;
</pre>
<p>For information on conditional comments, refer to the quirksmode article on <a href="http://www.quirksmode.org/css/condcom.html">CSS Conditional Comments</a></p>
<h4>3. Use Meaningful names for IDs and Classes</h4>
<p>Suppose you define your sidebar styles using class <code>.leftbox</code> and after some redesign, you float it to right, then would it be meaningful to have leftbox as name for right floated box. You should put some thought before declaring classes and IDs for elements so that they are meaningful and easy to understand later.</p>
<h4>4. Utilize CSS Inheritance</h4>
<p>If multiple child elements of a parent element use same styles on your web page, it will be better to define them for their parent element and let the CSS inheritance do all the work. You&#8217;ll be able to easily update your code later and it&#8217;ll also reduce the CSS file size considerably.<br />
<strong>Not Good</strong></p>
<pre name="code" class="css" >
#container li{ font-family:Georgia, serif; }
#container p{ font-family:Georgia, serif; }
#container h1{font-family:Georgia, serif; }
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
#container{ font-family:Georgia, serif; }
</pre>
<h4>5. Combine multiple Selectors</h4>
<p>You can combine multiple CSS selectors into one if they have common style definitions. It&#8217;ll save you time and space.</p>
<p><strong>Not Good</strong></p>
<pre name="code" class="css" >
h1{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h2{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
h1, h2, h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
</pre>
<h4>6. Use Shorthand Properties</h4>
<p>Utilize the shorthand properties of CSS to quickly write CSS code and reduce file size. Shorthand notation can be used for <code> margin, padding, border, font, background</code> and also for color values.<br />
<strong>Not Good</strong></p>
<pre name="code" class="css" >
li{
	font-family:Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	line-height: 1.4em;
	padding-top:5px;
	padding-bottom:10px;
	padding-left:5px;
}
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
li{
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	padding:5px 0 10px 5px;
}
</pre>
<p>Here&#8217;s a complete guide to <a href="http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/">CSS shorthand properties</a>.</p>
<h4>7. Organize CSS Code</h4>
<p>Organizing your CSS code in a certain pattern will make it easier to find things at later time and save you a lot of time looking for a specific style definition.<br />
Here is a sample organization that you may use:</p>
<pre name="code" class="css" >
/*-------------------------
	CSS Reset
-------------------------*/

/*-------------------------
	Generic Classes
-------------------------*/

/*-------------------------
	Layout styles
-------------------------*/

/*-------------------------
	Section specific styles
-------------------------*/
</pre>
<h4>8. Make CSS Readable</h4>
<p>Writing readable CSS will make it easier to find and  update a style declaration later. Either group all styles for a selector in one line or each style in its own line with proper indentation. You can also combine these two techniques together.</p>
<pre name="code" class="css" >
/*------------------------
	Each Style on new line
	---------------------*/
div{
	background-color:#3399cc;
	color:#666;
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	height:300px;
	margin:10px 5px;
	padding:5px 0 10px 5px;
	width:30%;
	z-index:10;
}

/*------------------------
	All Styles on one line
	---------------------*/
div{ background-color:#3399cc; color:#666; font: 1.2em/1.4em Arial, Helvetica, sans-serif;  height:300px; margin:10px 5px; padding:5px 0 10px 5px; width:30%; z-index:10; }
</pre>
<h4>9. Add proper Comments</h4>
<p>Comments can be used to separate different sections of CSS code</p>
<pre name="code" class="css" >
/*--------------------
	Header
	-----------------*/
#header{ height:145px; position:relative; }
#header h1{ width:324px; margin:45px 0 0 20px; float:left;  height:72px;}

/*--------------------
	Content
	-----------------*/
#content{ background:#fff; width:650px; float:left; min-height:600px; overflow:hidden;}
#content .posts{ overflow:hidden; }
#content .recent{ margin-bottom:20px; border-bottom:1px solid #f3f3f3; position:relative; overflow:hidden; }

/*--------------------
	Footer
	-----------------*/
#footer{ clear:both; padding:50px 5px 0; overflow:hidden;}
#footer h4{ color:#b99d7f; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; }
</pre>
<h4>10. Order CSS Properties Alphabetically</h4 >
This might be a difficult way to write CSS but it&#8217;ll make it easier for you to find out any property easily at a later stage.</p>
<pre name="code" class="css" >
div{
	background-color:#3399cc;
	color:	#666;
	font: 	1.2em/1.4em Arial, Helvetica, sans-serif;
	height:	300px;
	margin:	10px 5px;
	padding:5px 0 10px 5px;
	width:	30%;
	z-index:10;
}
</pre>
<h4>11. Use External Stylesheets</h4>
<p>It is always a good design practice to separate content from presentation. Place all of your CSS code into external stylesheets and use the <code>&lt;link&gt;</code> to reference stylesheets within a web page. By placing CSS into external files, you can easily update your styles later at one place instead of looking into html templates or files for styles.<br />
<strong>Not Good</strong></p>
<pre name="code" class="html" >
&lt;style type=&quot;text/css&quot; &gt;
	#container{ .. }
	#sidebar{ .. }
&lt;/style&gt;

OR

&lt;li style=&quot;font-family:Arial, helvetica, sans-serif; color:#666; &quot; &gt;
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="html" >
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/styles.css&quot; /&gt;
</pre>
<h4>12. Split CSS into multiple files</h4>
<p>If you are working on a large web project that has multiple modules, each with different set of styles and looks, it will be better to split your CSS files into multiple files based on the module they are applied to. You can separate stylesheets like, one for reset, one for layout, one for generic classes and one for module specific styles. This technique will let you organize your code easily in a large project but loading multiple CSS files means more HTTP requests and slower loading time, this is where Bridging CSS files come to rescue. Create a separate CSS file and import other CSS files into it.</p>
<pre name="code" class="css" >
@import &quot;style/css/reset.css&quot;;
@import &quot;style/css/typography.css&quot;;
@import &quot;style/css/layout.css&quot;;
</pre>
<h4>13. Compress CSS code</h4>
<p>Once you are ready to deploy the web design project, compress your CSS code using tools like <a href="http://www.csscompressor.com/">CSS Compressor</a> to reduce file size and improve loading time of webpage.</p>
<h4>14. Be Consistent in Writing CSS</h4>
<p>When you work on multiple web development projects, it&#8217;ll be a wise decision to choose a particular way of organizing and formatting your CSS code and stick to that way for all your projects. </p>
<p>I hope these tips will help you write better and manageable CSS code. If you would like to share a tip or two, feel free to add your comment below.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/css/25-incredibly-useful-css-tricks-you-should-know/' rel='bookmark' title='25 Incredibly Useful CSS Tricks You Should Know'>25 Incredibly Useful CSS Tricks You Should Know</a></li>
<li><a href='http://webdeveloperplus.com/css/15-time-saving-css-tools/' rel='bookmark' title='15 Time Saving CSS Tools You Should Be Aware Of'>15 Time Saving CSS Tools You Should Be Aware Of</a></li>
<li><a href='http://webdeveloperplus.com/css/css-tooltip-box-without-images/' rel='bookmark' title='CSS Tooltip Box Without Images'>CSS Tooltip Box Without Images</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/tips-to-write-better-css-code/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>12 Lesser Known But Useful WordPress Hacks</title>
		<link>http://webdeveloperplus.com/wordpress/12-lesser-known-but-useful-wordpress-hacks/</link>
		<comments>http://webdeveloperplus.com/wordpress/12-lesser-known-but-useful-wordpress-hacks/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 15:01:28 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[Popular]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=584</guid>
		<description><![CDATA[Wordpress is not only a great blogging tool but a great content management platform that provides a lot of ways to let you hack into into its functionality to make it do whatever you want. Here are 12 lesser known wordpress hacks/ tricks that you might find useful for your next WordPress related project.]]></description>
			<content:encoded><![CDATA[<p>WordPress is not only a great blogging tool but a great content management platform that provides a lot of ways to let you hack into into its functionality to make it do whatever you want. Here are 12 lesser known wordpress hacks/ tricks that you might find useful for your next WordPress related project.</p>
<p>Most of these hacks require your WordPress template to have <em>functions.php</em> file, if it doesn&#8217;t exist, create one.</p>
<h4>1. Add private notes to your WordPress blog posts</h4>
<p>If you would like to add reference notes to your posts that will only be visible to authors of your blog, add this function to your theme&#8217;s <em>functions.php</em> file which will create a shortcode <em>[note]</em> so that you can add notes for authors by including them in <em>[note]</em> and <em>[/note]</em> while writing the post.<span id="more-584"></span></p>
<pre name="code" class="php" >
add_shortcode( 'note', 'sc_note' );
function sc_note( $atts, $content = null ) {
	 if ( current_user_can( 'publish_posts' ) )
		return '&lt;div class=&quot;note&quot;&gt;'.$content.'&lt;/div&gt;';
	return '';
}
</pre>
<p><em>Source:</em> <a href="http://www.wprecipes.com/add-private-notes-to-your-wordpress-blog-posts" >Add Private Notes to your WordPress Blog Posts &#8211; WpRecipes</a></p>
<h4>2. How to disable HTML in WordPress comments</h4>
<p>WordPress allows some HTML tags like <code>&lt;a&gt;</code>, <code>&lt;em&gt;</code>, <code>&lt;strong&gt;</code> within comment text. But if you would like to disable this feature on your blog to prevent users from adding any HTML content within comment text, add this function to your theme&#8217;s <em>functions.php</em> file. This will treat the HTML content within comment text as literals and display them as it is.</p>
<pre name="code" class="php" >
// This will occur when the comment is posted
function plc_comment_post( $incoming_comment ) {

	// convert everything in a comment to display literally
	$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);

	// the one exception is single quotes, which cannot be #039; because WordPress marks it as spam
	$incoming_comment['comment_content'] = str_replace( &quot;'&quot;, '&amp;apos;', $incoming_comment['comment_content'] );

	return( $incoming_comment );
}

// This will occur before a comment is displayed
function plc_comment_display( $comment_to_display ) {

	// Put the single quotes back in
	$comment_to_display = str_replace( '&amp;apos;', &quot;'&quot;, $comment_to_display );

	return $comment_to_display;
}

add_filter( 'preprocess_comment', 'plc_comment_post', '', 1);
add_filter( 'comment_text', 'plc_comment_display', '', 1);
add_filter( 'comment_text_rss', 'plc_comment_display', '', 1);
add_filter( 'comment_excerpt', 'plc_comment_display', '', 1);
</pre>
<p><em>Source:</em> <a href="http://www.theblog.ca/literal-comments" >How to disable HTML in WordPress Comments</a></p>
<h4>3. Check if a WordPress plugin is active</h4>
<p>You might sometime need to check whether a particular plugin is activated or not either to use its functionality or prevent any conflicts from occurring. WordPress provides a function <code>is_plugin_active</code> that accepts path to the plugin file and checks to see if plugin is activated or not.</p>
<pre name="code" class="php" >
&lt;?php
if (is_plugin_active('plugin-directory/plugin-file.php')) {
    //plugin is activated
}
?&gt;
</pre>
<p><em>Source:</em> <a href="http://www.wprecipes.com/check-if-a-wordpress-plugin-is-active-the-easy-way" >Check if a WordPress Plugin is active &#8211; WpRecipes</a></p>
<h4>4. Prevent Plugins from automatically loading stylesheets and scripts</h4>
<p>Many plugins add their own stylesheets and scripts to your site to perform their function. But if you are using a lot of plugins on your WordPress blog, then this might lead to slow loading of your web pages as lots of scripts and stylesheets will require to be loaded first. What you can do to boost performance of your site while using plugins is combine their CSS and JavaScript files and prevent them to load on their own. For that you&#8217;ll need to look into plugin files and find out the handler names of all the CSS and JS files plugins are loading using <code>wp_enqueue_script()</code> and <code>wp_enqueue_style()</code> functions.<br />
For example, if you use wp-pagenavi plugin, it loads its own stylesheet using the function:</p>
<pre name="code" class="php" >
wp_enqueue_style('wp-pagenavi', plugins_url('wp-pagenavi/pagenavi-css.css'), false, '2.50', 'all');
</pre>
<p>The first parameter to <code>wp_enqueue_style()</code> or <code>wp_enqueue_script()</code> is the name of handler for CSS or JS file.<br />
In this case the handler name is <strong>wp-pagenavi</strong>. Now add these lines to your theme&#8217;s <em>functions.php</em> file to prevent it from loading.</p>
<pre name="code" class="php" >
//Prevent Stylesheets from loading
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );

function my_deregister_styles() {
	wp_deregister_style( 'wp-pagenavi' );
}

//Prevent JavaScript files from loading automatically
add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

function my_deregister_javascript() {
	wp_deregister_script( 'nameofhandler );
}
</pre>
<p><em>Source:</em> <a href="http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles" >How to Disable Scripts and Styles &#8211; Justin Tadlock</a></p>
<h4>5. Showing Last Modified Date for a post</h4>
<p>If you regularly update your old blog posts, then why not show the last modified date on the post page to let readers know when the post was last updated. Use this code to display the last modified date if the post has been modified at a later date.</p>
<pre name="code" class="php" >
Posted on &lt;?php the_time('F jS, Y') ?&gt;
&lt;?php $u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if ($u_modified_time != $u_time) {
echo &quot;and last modified on &quot;;
the_modified_time('F jS, Y');
echo &quot;. &quot;; } ?&gt;
</pre>
<p><em>Source:</em> <a href="http://wphacks.com/how-to-show-last-modified-wordpress-post/" >Showing Last Modified On Your WordPress Posts &#8211; WPHacks</a></p>
<h4>6. Custom Taxonomies in WordPress</h4>
<p>By default, WordPress has two taxonomies categories and tags to group posts but custom taxonomies allow you to group your pages in your own custom ways, for example if you are running a movie review blog, you might want to add a taxonomy of <em>genre</em> to group movie review by genre, or a taxonomy of <em>actors</em> to group posts by actors. Custom taxonomies free you from restrictions of categories and tags.</p>
<p>You can add a custom taxonomy by adding this code to your theme&#8217;s <em>functions.php</em> file.</p>
<pre name="code" class="php" >
add_action( 'init', 'create_my_taxonomies', 0 );

function create_my_taxonomies() {
	register_taxonomy( 'genre', 'post', array( 'hierarchical' =&gt; false, 'label' =&gt; 'Genre', 'query_var' =&gt; true, 'rewrite' =&gt; true ) );
	register_taxonomy( 'actors', 'post', array( 'hierarchical' =&gt; false, 'label' =&gt; 'Actors', 'query_var' =&gt; true, 'rewrite' =&gt; true ) );
}
</pre>
<p>This will add new boxes to your add post page in admin panel if you are using WordPress 2.8+ using which you can add values for custom taxonomies. Justin Tadlock has written complete tutorial on <a href="http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28">how to create and use custom taxonomies</a>, refer to it for more.</p>
<h4>7. Create Post Only for your RSS Subscribers</h4>
<p>If you would like to give an exclusive offer to your regular RSS subscribers, here&#8217;s a nice trick to create a post that is only visible to your RSS subscribers. </p>
<p>First of all, create a category that will hold posts to show to your RSS suscribers. For example, create a category <em>&#8216;RSS&#8217; </em> and add some posts exclusively to it. Note down the category ID of this category. Now in your theme&#8217;s <em>functions.php</em> file, add these lines of code so that it is only shown to RSS subscribers.</p>
<pre name="code" class="php" >
&lt;?php
function excludeCategory($query)
{
	if($query-&gt;is_home | $query-&gt;is_archive )
	//Exclude category from all other pages except RSS
	$query-&gt;set('cat','-3');
	return $query;
}
add_filter('pre_get_posts', 'excludeCategory');
?&gt;
</pre>
<p><em>Source:</em> <a href="http://webdeveloperplus.com/wordpress/create-post-only-for-your-rss-subscribers-in-wordpress/" >Create Post only for your RSS Subscribers</a></p>
<h4>8. Get Rid of Curly quotes</h4>
<p>WordPress usually replaces pair of double quotes with curly quotes e.g. &quot;something&quot; will become “something”. This is fine for most of the blogs and they look nice too but if you post source code in your posts, then you need to disable this functionality as it&#8217;ll also transform quotes within source code. Paste this code into your theme&#8217;s <em>functions.php</em> file.</p>
<pre name="code" class="php" >
&lt;?php remove_filter('the_content', 'wptexturize'); ?&gt;
</pre>
<p><em>Source:</em> <a href="http://www.wprecipes.com/how-to-get-rid-of-curly-quotes-in-your-wordpress-blog" >Get rid of Curly Quotes in WordPress Blog &#8211; WpRecipes</a></p>
<h4>9. Deny Comment Posting to Spammers</h4>
<p>You can keep a good number of spam comments away from your blog by checking the referrer URL of the posted comment form. Most of the spam comments are usually made by automated scripts and they just post the data to <em>wp-comments-post.php</em> so that there&#8217;s no referral URL through which form is submitted.<br />
You can add a rule to your blog&#8217;s <em>.htaccess</em> file so that it restricts the access of <em>wp-comments-post.php</em> to requests that provide referral URL.<br />
Here are the rules you need to add to .htaccess file. <strong>Do backup .htaccess file before modifying.</strong></p>
<pre name="code" class="php" >
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</pre>
<p><em>Source:</em> <a href="http://www.wprecipes.com/how-to-deny-comment-posting-to-no-referrer-requests" >How To Deny Comment Posting to no referrer requests &#8211; WpRecipes</a></p>
<p><em>Note:</em> This will only prevent spam bots or automated scripts from posting comment and not those individuals that manually post them. You should use Akismet or other spam preventing tools in addition to this.</p>
<h4>10. Insert Ads Within RSS Feed</h4>
<p>Here&#8217;s a nice hack to add any HTML content into RSS Feeds like ads, copyright info or anything you want to show to just your RSS readers. Add this code to your theme&#8217;s <em>functions.php</em> file and you can customize the HTML content to anything you want to append or prepend to posts.</p>
<pre name="code" class="php" >
&lt;?php
function insertAds($content) {
    $content = $content.'&lt;hr /&gt;&lt;a href=&quot;http://webdeveloperplus.com&quot;&gt;Visit WebDeveloper Plus for latest Web Design/Development Information&lt;/a&gt;';
    return $content;
}
add_filter('the_excerpt_rss', 'insertAds');
add_filter('the_content_rss', 'insertAds');
?&gt;
</pre>
<p><em>Source:</em> <a href="http://www.webinventif.fr/wordpress-ajouter-du-contenu-dans-son-flux/" >Web Invent If</a></p>
<h4>11. Disable WordPress Feeds</h4>
<p>If you are using WordPress as CMS which has just static content, then you might want to disable RSS feeds as it won&#8217;t be of any use for your users. Add this code to your <em>functions.php</em> file to disable RSS feeds.</p>
<pre name="code" class="php" >
function fb_disable_feed() {
	wp_die( __('No feed available,please visit our &lt;a href=&quot;'. get_bloginfo('url') .'&quot;&gt;homepage&lt;/a&gt;!') );
}

add_action('do_feed', 'fb_disable_feed', 1);
add_action('do_feed_rdf', 'fb_disable_feed', 1);
add_action('do_feed_rss', 'fb_disable_feed', 1);
add_action('do_feed_rss2', 'fb_disable_feed', 1);
add_action('do_feed_atom', 'fb_disable_feed', 1);
</pre>
<p><em>Source:</em> <a href="http://wpengineer.com/disable-wordpress-feed/" >Disable WordPress Feed &#8211; WpEngineer</a></p>
<h4>12. Link Post Title to External URL</h4>
<p>If you sometimes share just a link to other article out there which your readers might find useful, then here&#8217;s a nice hack to link the title of the post in your main template directly to the external URL. This will save your readers some time as they won&#8217;t have to open the post page just to find the resource link. Here&#8217;s how to do it:<br />
Add these lines of code to <em>functions.php</em> file.</p>
<pre name="code" class="php" >
function print_post_title() {
	global $post;
    $thePostID = $post-&gt;ID;
    $post_id = get_post($thePostID);
    $title = $post_id-&gt;post_title;
    $perm = get_permalink($post_id);
    $post_keys = array(); $post_val = array();
    $post_keys = get_post_custom_keys($thePostID);

    if (!empty($post_keys)) {
		foreach ($post_keys as $pkey) {
			if ($pkey=='title_url') {
				$post_val = get_post_custom_values($pkey);
			}
		}
		if (empty($post_val)) {
			$link = $perm;
		} else {
			$link = $post_val[0];
		}
    } else {
		$link = $perm;
    }
    echo '&lt;h2&gt;&lt;a href=&quot;'.$link.'&quot; rel=&quot;bookmark&quot; title=&quot;'.$title.'&quot;&gt;'.$title.'&lt;/a&gt;&lt;/h2&gt;';
}
</pre>
<p>Next, you need to find out following lines in your theme&#8217;s <em>index.php</em> file:</p>
<pre name="code" class="php" >
&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
</pre>
<p>Replace these lines with the following</p>
<pre name="code" class="php" >
&lt;?php print_post_title() ?&gt;
</pre>
<p>Now whenever you want to share an external URL, add a custom field to your post named <em>title_url</em> and set its value as the URL of the resource.<br />
<em>Source:</em> <a href="http://www.wpbeginner.com/wp-tutorials/how-to-link-to-external-links-from-the-post-title-in-wordpress/" >WPBeginner</a></p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/wordpress/create-post-only-for-your-rss-subscribers-in-wordpress/' rel='bookmark' title='Create Post Only For Your RSS Subscribers in WordPress'>Create Post Only For Your RSS Subscribers in WordPress</a></li>
<li><a href='http://webdeveloperplus.com/wordpress/how-to-use-thumbnails-generated-by-wordpress-in-your-theme/' rel='bookmark' title='How To Use Thumbnails Generated By WordPress In Your Theme'>How To Use Thumbnails Generated By WordPress In Your Theme</a></li>
<li><a href='http://webdeveloperplus.com/wordpress/how-to-ajaxify-wordpress-comment-posting/' rel='bookmark' title='How To: AJAXify WordPress Comment Posting'>How To: AJAXify WordPress Comment Posting</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/wordpress/12-lesser-known-but-useful-wordpress-hacks/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>25 Amazing &amp; Free Flash Based Image Galleries</title>
		<link>http://webdeveloperplus.com/flash/25-amazing-free-flash-based-image-galleries/</link>
		<comments>http://webdeveloperplus.com/flash/25-amazing-free-flash-based-image-galleries/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 15:02:00 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=575</guid>
		<description><![CDATA[There's no doubt that with those nifty javascript frameworks like jQuery, creating a nice image gallery or slideshow has become quite easier but still they are far behind the way interface can be built using Flash. Here are 25 really amazing flash based image gallery scripts that provide not only nice user interface but are free and easy to adapt into your website.]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s no doubt that with those nifty javascript frameworks like jQuery, creating a nice image gallery or slideshow has become quite easier but still they are far behind the way interface can be built using Flash. Here are 25 really amazing flash based image gallery scripts that provide not only nice user interface but are free and easy to adapt into your website.</p>
<h4>1. <a href="http://www.no3dfx.com/polaroid/">Polaroid Gallery</a></h4>
<p><img src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/polaroid-photo-gallery-1.jpg" alt="Polaroid Gallery" class="alignnone" /><br />
Polaroid is an amazing gallery for displaying your photos in an unusual way. It places images as if they are actually lying on table such that you can drag and change their position. To view image in full, double click any image. And it stores the data about images in XML file.<span id="more-575"></span></p>
<h4>2. <a href="http://www.flashgallery.org/">Flash Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/flash-gallery-2.jpg" title="Flash Gallery" class="alignnone" width="500" height="250" /><br />
Flash gallery is a lightweight and easy to deploy flash photo gallery. It uses XML file to store information about images to be displayed.</p>
<h4>3. <a href="http://www.dezinerfolio.com/dfgallery-2/free-flash-gallery">dfgallery</a></h4>
<p><img src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/df-gallery-3.jpg" alt="dfgallery" class="alignnone" /><br />
This amazing flash image gallery is not only good for its interface but also for its customization options. It has an amazing theme engine built to support custom themes with multiple skins for each. The administration console built on CodeIginter lets you manage multiple galleries and albums of different types.</p>
<h4>4. <a href="http://www.simpleviewer.net/postcardviewer/">PostcardViewer</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/postcard-viewer-4.jpg" title="Postcard Viewer" class="alignnone" width="500" height="250" /><br />
PostcardViewer will place your images like those postcard or notices pasted onto wall. You can navigate through images using mouse or cursor keys on keyboard. It offers a lot of options to choose the way in which images to be displayed are provided ranging from Picasa to custom PHP script.</p>
<h4>5. <a href="http://www.simpleviewer.net/simpleviewer/">SimpleViewer</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/simpleviewer-5.jpg" title="Simple Viewer" class="alignnone" width="500" height="310" /><br />
SimpleViewer is a lightweight easy to configure flash gallery that provides an intuitive way to navigate through images using mouse scroll button or cursor keys.</p>
<h4>6. <a href="http://www.simpleviewer.net/tiltviewer/">TiltViewer</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/tilt-viewer-6.jpg" title="Tilt Viewer" class="alignnone" width="500" height="234" /><br />
This one is an amazing image gallery with nice 3D effects. You can load images even from your Flickr stream or use an XML file.</p>
<h4>7. <a href="http://www.simpleviewer.net/autoviewer/">AutoViewer</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/auto-viewer-7.jpg" title="Auto Viewer" class="alignnone" width="500" height="276" /><br />
Autoviewer displays images in a linear sequence with captions. It is essentially designed for hands-free image viewing experience.</p>
<h4>8. <a href="http://flash-gallery.com/zen-flash-gallery/">Zen Flash Gallery</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/zen-flash-gallery-8.jpg" title="Zen Flash Gallery" class="alignnone" width="500" height="250" /><br />
Zen Flash Gallery provides a rich user interface to show different albums containing images. The flip effect on image transition is just awesome. The free version of this gallery supports 4 albums with 10 images each.</p>
<h4>9. <a href="http://flash-gallery.com/photoflow-flash-gallery/demo/">Photo Flow Flash Gallery</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/photo-flow-gallery-10.jpg" title="Photo Flow Gallery" class="alignnone" width="500" height="250" /><br />
This one brings iTunes like Cover flow album switching experience to your images. But the free version supports just 9 images and you&#8217;ll have to purchase the license to remove that limit.</p>
<h4>10. <a href="http://www.veppa.com/services/flash_photo_gallery_2/">Free Flash Photo Album 2</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/free-flash-photo-album-11.jpg" title="Free Flash Photo Album" class="alignnone" width="500" height="250" /><br />
This is a free, easy to install and configure flash image gallery and uses XML file to store information about images.</p>
<h4>11. <a href="http://www.inventmedia.com.au/flashgallery.html">Invent Media Flash PhotoGallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/invent-media-flash-11.jpg" title="Invent Media Flash Photogallery" class="alignnone" width="500" height="250" /><br />
This flash gallery is fully scalable, easy to customize and provides good user interface to display images. Uses XML file as database for images.</p>
<h4>12. <a href="http://www.search-this.com/tools/">Photo Viewer</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/photo-viewer-12.jpg" title="Photo Viewer" class="alignnone" width="500" height="250" /><br />
PhotoViewer is simple yet impressive flash image gallery. Uses XML as data store.</p>
<h4>13. <a href="http://www.flshow.net/carousel.php">Carousel</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/flshow-carousel-13.jpg" title="flShow Carousel" class="alignnone" width="500" height="250" /><br />
flShow Carousel is a little Flash movie that you can use to enhance your web pages presenting your images with a nice and stylish carousel effect.It is light and easy to configure by means of an external xml file.</p>
<h4>14 <a href="http://www.flshow.net/flip.php">flShow Flip</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/flshow-flip-14.jpg" title="flShow Flip Gallery" class="alignnone" width="500" height="296" /><br />
It is from the same developer as number 13 above but provides a nice 3D flip effect.</p>
<h4>15. <a href=" http://www.flash-gallery.org/">Flash Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/flash-gallery-15.jpg" title="Flash Gallery Generator" class="alignnone" width="500" height="250" /><br />
Flash Gallery is a free application that allows you to create a slideshow on your website easy and fast. Just embed it into your website and script will automatically form a slideshow from a specified folder or from Flickr photostream.</p>
<h4>16. <a href="http://www.flashmo.com/preview/flashmo_185_spread_gallery">Spread Photo Gallery</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/spread-gallery-15.jpg" title="Spread Gallery" class="alignnone" width="500" height="250" /><br />
This one is like Polaroid gallery above but provides a different and pleasing interface to show images along with captions.</p>
<h4>17. <a href="http://www.flashmo.com/preview/flashmo_195_fisheye_gallery">Fisheye Photo Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/fisheye-gallery-16.jpg" title="Fisheye Flash Photo Gallery" class="alignnone" width="500" height="249" /></p>
<h4>18. <a href="http://www.flashmo.com/preview/flashmo_194_circular_gallery">Circular Photo Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/circular-gallery-18.jpg" title="Circular Gallery" class="alignnone" width="500" height="249" /><br />
As its name suggests, thumbnails are displayed in continuously scrolling circular bar that slows down on hover.</p>
<h4>19. <a href="http://www.flashmo.com/preview/flashmo_130_stack_gallery">Stack Photo Gallery</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/stack-gallery-19.jpg" title="Stack Photo Gallery" class="alignnone" width="500" height="292" /><br />
Display your images in a nice stack using this flash gallery.</p>
<h4>20. <a href="http://www.tonyyoo.com/gallery/gallery.html">Image Gallery v1.0</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/image-gallery-20.jpg" title="Image Gallery" class="alignnone" width="500" height="249" /><br />
This script provides you with a lot of options like multiple album support, flickr and picasa integration and also provides with rich set of transition effects. <a href="http://tonyyoo.com/gallery/ImageGallery.zip">Download</a></p>
<h4>21. <a href="http://www.flashmo.com/preview/flashmo_060_photo_gallery">Multiple Photo Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/multiple-photo-gallery-21.jpg" title="Multiple Photo Gallery" class="alignnone" width="500" height="253" /><br />
Multiple Photo Gallery is ideal for displaying multiple albums and also if you need to provide zoom-in functionality to view minute details in images.</p>
<h4>22. <a href="http://www.agilegallery.com/flash-photo-gallery.html">Agile Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/agile-flash-gallery.jpg" title="Agile Flash Gallery" class="alignnone" width="500" height="250" /><br />
AgileGallery is a free Flash photo gallery that rips through the XML output from Picasa (a free download from google) and generates the paging and thumbnails and displays the full sized photos along with any description entered in Picasa.</p>
<h4>23. <a href="http://www.ws-slideshow.com/">WS &#8211; Slideshow</a></h4>
<p><img alt="" src="http://static.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/ws-slideshow.jpg" title="WS-Slideshow" class="alignnone" width="500" height="258" /><br />
WS Sllideshow is just amazing flash based image gallery script. It has a nice user interface and plethora of customization options, supports flickr too.</p>
<h4>24. <a href="http://www.flabell.com/flash/XML-Image-Slideshow-40">Flabell XML Image Slideshow</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/flabell-xml-image-slideshow-24.jpg" title="Flabell XML Image Slideshow" class="alignnone" width="500" height="250" /><br />
Fashionable flash + XML image slideshow with slick navigation and design, fully customizable from XML, with a motion blur effect on image transition. The gallery navigation bar changes its color based on the displayed photo colors.</p>
<h4>25. <a href="http://www.flabell.com/flash/Flash-XML-Image-Gallery-33">Flabell XML Image Gallery</a></h4>
<p><img alt="" src="http://thumbs.webdeveloperplus.com/uploads/2009/10/flash-image-gallery/flabell-flash-image-gallery-25.jpg" title="Flabell Flash Image Gallery" class="alignnone" width="500" height="250" /><br />
This is an interactive Flash XML Image Gallery, containing a list of images defined in a XML file, an intuitive navigation and many customizable features. You can browse the gallery by clicking on the left or right hand side of the swf file, or by selecting an element from the navigation bar.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/jquery/21-brilliant-jquery-image-galleryslideshow-plugins/' rel='bookmark' title='21 Brilliant jQuery Image Gallery/Slideshow Plugins'>21 Brilliant jQuery Image Gallery/Slideshow Plugins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/flash/25-amazing-free-flash-based-image-galleries/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>15 Ways to Improve CSS Techniques Using jQuery</title>
		<link>http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/</link>
		<comments>http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 01:36:37 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[jquery plugins]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=516</guid>
		<description><![CDATA[CSS is great and when it is combined with powerful JavaScript frameworks like jQuery, you can enhance the user experience by providing more intuitive and responsive web interface. Here are 15 ways you can use jQuery to improve CSS techniques.]]></description>
			<content:encoded><![CDATA[<p>CSS is great and when it is combined with powerful JavaScript frameworks like jQuery, you can achieve some really amazing things. Combining these two together will let you enhance the user experience by providing more intuitive and responsive web interface. Here are 15 ways you can use jQuery to improve CSS techniques.</p>
<h4>1. Custom Styled Radio Buttons and Checkboxes</h4>
<p>It is always hard and next to impossible to customize style of radio buttons and checkboxes. But using jQuery we can easily customize the radio buttons and check boxes to make them more user friendly. Here are two different ways to stylize them:</p>
<p><a href="http://www.filamentgroup.com/examples/customInput/" ><strong>Custom Designed Checkbox and Radio Buttons</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/custom-checkboxes.png" alt="Custom Styled Checkboxes and radio buttons" title="Custom Styled Checkboxes and radio buttons" width="500" height="142" class="alignnone size-full wp-image-520" /><br />
<span id="more-516"></span><br />
<a href="http://www.protofunc.com/scripts/jquery/checkbox-radiobutton/" ><strong>Radio Button and Checkbox replacement.</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/custom-checkboxes-2.png" alt="radiobutton and check box replacement with jquery" title="radiobutton and check box replacement with jquery" width="500" height="161" class="alignnone size-full wp-image-521" /></p>
<h4>2. Setting Equal Heights with jQuery</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/equal-height-jquery.png" alt="equal height columns using jquery" title="equal height columns using jquery" width="475" height="240" class="alignnone size-full wp-image-524" /><br />
Creating the visual effect of equal-height columns or content boxes has been a challenge ever since we abandoned table-based layouts. Here&#8217;s the jQuery way to set equal height of multiple elements using the <a href="http://www.filamentgroup.com/lab/setting_equal_heights_with_jquery/">equalHeights plugin</a>. With this plugin, you can make equal height columns with just a single line of code.</p>
<pre name="code" class="js" >
$(&quot;someselector&quot;).equalHeights();
</pre>
<h4>3. Styling Select Elements </h4>
<p><code>&lt;select&gt;</code> is another HTML element that is not easy to customize using CSS, but with jQuery at our disposal, we can certainly make them look cool and usable. </p>
<p><a href="http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/" ><strong>jQuery UI Selectmenu</strong></a><br />
This is a plugin for jQuery UI that lets you customize select elements easily.<br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/selectmenu-jquery-ui.png" alt="jquery ui selectmenu plugin" title="jquery ui selectmenu plugin" width="500" height="160" class="alignnone size-full wp-image-526" /></p>
<p><a href="http://marghoobsuleman.com/mywork/jcomponents/image-dropdown/jquery-image-dropdown-2.1/index.html" ><strong>jQuery image dropdown</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/image-dropdown.png" alt="jQuery image dropdown" title="jQuery image dropdown" width="500" height="186" class="alignnone size-full wp-image-525" /></p>
<h4>4. Current Field Highlighting in Forms</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/current-field-highlight.png" alt="highlight current field in a form" title="highlight current field in a form" width="500" height="107" class="alignnone size-full wp-image-519" /><br />
It is always good to provide a visual feedback to users when they perform any action while using a web form. Highlighting the field in which user is currently typing is one of the usability features you should add to web forms. Though, this can be achieved using the <code>:focus</code> pseudo selector in CSS. But this technique of <a href="http://css-tricks.com/improved-current-field-highlighting-in-forms/" >highlighting the label along with the selected input field</a> from CSS Tricks provides good user experience.</p>
<h4>5. Fix IE Overflow problem</h4>
<p>Internet Explorer has this rather strange problem, when <code>overflow</code> is set to auto or scroll, the scrollbar shows up inside the width of element. This is fine when you have multiple lines of text within that element, but if you just have a single line of text, then scrollbar would cover that and it won&#8217;t be visible. This <a href="http://remysharp.com/2008/01/21/fixing-ie-overflow-problem/">jQuery technique</a> from Remy Sharp will fix that IE bug.</p>
<h4>6. Block Hover Effect</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-biggerlink.png" alt="jquery biggerlink" title="jquery biggerlink" width="500" height="160" class="alignnone size-full wp-image-527" /><br />
Creating block hover effect with CSS using <code>display:block</code> is possible but when you have some other content inside a box alongside the link, then it is not possible to create a semantically correct block hover effect using CSS. Here&#8217;s a nice jQuery plugin &#8211; <a href="http://www.ollicle.com/eg/jquery/biggerlink/" ><strong>Bigger Link</strong></a> to achieve that.</p>
<h4>7. Rounded Corners</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-curvy-corners.png" alt="jQuery Curvy Corners" title="jQuery Curvy Corners" width="500" height="160" class="alignnone size-full wp-image-530" /><br />
CSS Rounded corners are now supported by most browsers like Firefox, Safari but some browsers like IE do not support them. For those unsupported browsers, you can use <a href="http://blue-anvil.com/jquerycurvycorners/test.html" ><strong>jQuery Curvy Corners</strong></a>.</p>
<h4>8. Attractive Menus with jQuery</h4>
<p>Creating a CSS based navigational menu that displays hover state separately is not difficult, but with a little amount of jQuery you can achieve some really nice effects. Check out these two example menus that use jQuery to produce a very subtle hover effect.<br />
<a href="http://www.queness.com/post/411/create-an-attractive-jquery-menu-with-fadein-and-fadeout-effect" ><strong>Create an Attractive jQuery Menu with Fade In and Fade Out Effect</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-attractive-menu.png" alt="Attractive menu with jQuery" title="Attractive menu with jQuery" width="500" height="89" class="alignnone size-full wp-image-532" /><br />
<a href="http://www.shopdev.co.uk/blog/animated-menus-using-jquery/" ><strong>Animated Menu Using jQuery</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-animated-menu.png" alt="Animated menu with jQuery" title="Animated menu with jQuery" width="500" height="100" class="alignnone size-full wp-image-531" /></p>
<h4>9. Creating a Floating HTML Menu Using jQuery and CSS</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/live-floating-menu.png" alt="Live Floating Menu" title="Live Floating Menu" width="500" height="190" class="alignnone size-full wp-image-535" /><br />
You can fix the position of an element using the <code>position:fixed</code> property but that won&#8217;t provide as rich user experience as <a href="http://net.tutsplus.com/html-css-techniques/creating-a-floating-html-menu-using-jquery-and-css/">Live floating menu using jQuery</a>. It creates a floating menu on the page and as you scroll down, menu also follows your mouse  scroll.</p>
<h4>10. Splitting Content over multiple columns</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/columnizer-jquery-plugin.png" alt="Split content into multiple columns" title="Split content into multiple columns" width="500" height="250" class="alignnone size-full wp-image-536" /><br />
Ever thought of splitting text of a page into multiple columns just like newspaper. With CSS, this will take a lot of effort but this <a href="http://welcome.totheinter.net/columnizer-jquery-plugin/"><strong>Columnizer jQuery plugin</strong></a> will do all the effort for you to split content into multiple columns with a single line of code.</p>
<h4>11. Semantic Blockquotes with jQuery</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/blockquotes.jpg" alt="Semantic Blockquoteswith jQuery" title="Semantic Blockquoteswith jQuery" width="500" height="141" class="alignnone size-full wp-image-537" /><br />
If you use blockquotes in your design to highlight important points of an article, then you also duplicate the content within blockquotes as it is also there in the article. Here&#8217;s a <a href="http://www.thewebsqueeze.com/web-design-tutorials/semantic-blockquotes-with-jquery.html">nice jquery way</a> to do this leaving the duplication of content to jQuery by specifying which content to show as blockquote.</p>
<h4>12. Text Shadows</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/text-shadow-ie.png" alt="Text Shadow in IE" title="Text Shadow in IE" width="500" height="170" class="alignnone size-full wp-image-538" /><br />
CSS3 includes a nice property of text-shadow that allows you to set a text-shadow generate nice text-effects without using any images. But IE does not support this feature till date. <a href="http://kilianvalkhof.com/2008/javascript/text-shadow-in-ie-with-jquery/" ><strong>Text-shadow in IE</strong></a> adds this support to Internet Explorer using jQuery.</p>
<h4>13. Border Image</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/border-image.png" alt="CSS3 border-image" title="CSS3 border-image" width="465" height="177" class="alignnone size-full wp-image-539" /><br />
CSS3 lets you use images as border backgrounds in addition to just colors. But since it is not supported my many browsers, you&#8217;ll need jQuery to come to rescue. <a href="http://www.lrbabe.com/sdoms/borderImage/index.html"><strong>jQuery.borderimage</strong></a> provides cross-browser support for <code>border-image</code> property.</p>
<h4>14. Opacity</h4>
<p>Opacity is one such CSS property which is supported by most browsers including IE but each has a different way to implement it, though CSS3 standard defines a property <code>opacity</code> to be used for setting opacity of elements, but you end up writing many lines of CSS code just to make opacity cross-browser compatible. jQuery can make this easier too.</p>
<pre name="code" class="js" >
$(&quot;someselectoe&quot;).css(&quot;opacity&quot;, 0.5);
</pre>
<h4>15. Super CSS Selector Support with jQuery</h4>
<p>CSS 2.1 supports various types of selectors including <code>:focus, :first-child, nth-child</code> but not all browsers(IE!) support these selectors. but with <a href=" http://skulljackpot.com/2009/04/19/super-css-selector-support-with-jquery/"><strong>Super CSS Selector</strong></a>, you can be sure to have support for those selectors even in IE.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/' rel='bookmark' title='21 Amazing CSS Techniques You Should Know'>21 Amazing CSS Techniques You Should Know</a></li>
<li><a href='http://webdeveloperplus.com/jquery/21-brilliant-jquery-image-galleryslideshow-plugins/' rel='bookmark' title='21 Brilliant jQuery Image Gallery/Slideshow Plugins'>21 Brilliant jQuery Image Gallery/Slideshow Plugins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>AJAX User Poll Using jQuery and PHP</title>
		<link>http://webdeveloperplus.com/php/ajax-user-poll-using-jquery-and-php/</link>
		<comments>http://webdeveloperplus.com/php/ajax-user-poll-using-jquery-and-php/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:49:54 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[user poll]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=494</guid>
		<description><![CDATA[Today, we&#8217;ll be creating a nice user poll script using jQuery and PHP utilizing AJAX and animation effects of jQuery to spice up the user interface and provide a rich user experience. Let&#8217;s get started. Set up the database For storing poll questions, options and votes, we&#8217;ll be using a MySQL database. Here is the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/ajax-poll-jquery.png" alt="AJAX User Poll Using jQuery, PHP" title="AJAX User Poll Using jQuery, PHP" width="599" height="376" class="alignnone size-full wp-image-495" /><br />
Today, we&#8217;ll be creating a nice user poll script using jQuery and PHP utilizing  AJAX and animation effects of jQuery to spice up the user interface and provide a rich user experience. Let&#8217;s get started.</p>
<h3>Set up the database</h3>
<p>For storing poll questions, options and votes, we&#8217;ll be using a MySQL database. Here is the database structure required.<span id="more-494"></span><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/ajax-poll-database-structure.jpg" alt="Database Structure" title="Database Structure" width="460" height="192" class="alignnone size-full wp-image-496" /><br />
There are three tables:</p>
<ul>
<li><strong>questions</strong> table stores the poll questions.</li>
<li><strong>options</strong> table stores the options of a particular question.</li>
<li><strong>votes</strong> table stores information about each vote cast by the user.</li>
</ul>
<p>The required SQL code with sample data is provided in source code(below).</p>
<h3>The PHP Code</h3>
<h4>Displaying the poll form</h4>
<p>We&#8217;ll display the most recent poll question from the database and allow the user to vote for it. Here&#8217;s the required PHP code to generate poll form for latest poll question.</p>
<pre name="code" class="php" >
$conn=mysql_connect('localhost', 'root', 'password') or die(&quot;Can't connect to mysql host&quot;);
mysql_select_db(&quot;polls&quot;);
$query=mysql_query(&quot;SELECT id, ques FROM questions ORDER BY id DESC LIMIT 1&quot;);
while($row=mysql_fetch_assoc($query)){
	//display question
	echo &quot;&lt;p class=\&quot;pollques\&quot; &gt;&quot;.$row[&quot;ques&quot;].&quot;&lt;/p&gt;&quot;;
	$poll_id=$row[&quot;id&quot;];
}
//display options with radio buttons
$query=mysql_query(&quot;SELECT id, value FROM options WHERE ques_id=$poll_id&quot;);
if(mysql_num_rows($query)){
		echo '&lt;div id=&quot;formcontainer&quot; &gt;&lt;form method=&quot;post&quot; id=&quot;pollform&quot; action=&quot;'.$_SERVER['PHP_SELF'].'&quot; &gt;';
		echo '&lt;input type=&quot;hidden&quot; name=&quot;pollid&quot; value=&quot;'.$poll_id.'&quot; /&gt;';
		while($row=mysql_fetch_assoc($query)){
			echo '&lt;p&gt;&lt;input type=&quot;radio&quot; name=&quot;poll&quot; value=&quot;'.$row['id'].'&quot; id=&quot;option-'.$row['id'].'&quot; /&gt;
			&lt;label for=&quot;option-'.$row['id'].'&quot; &gt;'.$row['value'].'&lt;/label&gt;&lt;/p&gt;';
		}
		echo '&lt;p&gt;&lt;input type=&quot;submit&quot;  value=&quot;Submit&quot; /&gt;&lt;/p&gt;&lt;/form&gt;';
}
</pre>
<h4>Processing the Submitted Vote</h4>
<p>When user selects an answer and submits the form, we add the information to the <em>votes</em> table about the option selected and also set a cookie in user&#8217;s browser to identify that he has voted for the poll. </p>
<pre name="code" class="php" >
$query=mysql_query(&quot;SELECT * FROM options WHERE id='&quot;.intval($_POST[&quot;poll&quot;]).&quot;'&quot;);
if(mysql_num_rows($query)){
	$query=&quot;INSERT INTO votes(option_id, voted_on, ip) VALUES('&quot;.$_POST[&quot;poll&quot;].&quot;', '&quot;.date('Y-m-d H:i:s').&quot;', '&quot;.$_SERVER['REMOTE_ADDR'].&quot;')&quot;;
	if(mysql_query($query))
	{
		//Vote added to database
		setcookie(&quot;voted&quot;.$_POST['pollid'], 'yes', time()+86400*300);
	}
	else
		echo &quot;There was some error processing the query: &quot;.mysql_error();
}
</pre>
<p>In this case we first check to see if the answer to poll question has been provided and whether the user hasnot already voted(<em>code omitted for simplicity</em>) the selected option is there in database or not. Also here we are using <code>intval()</code> function to make sure only integer value for selected option passes through. After checking the information, the user vote is added to the <em>votes</em> table.</p>
<h4>Displaying the Results</h4>
<p>Once the user has voted, it&#8217;s time to display the results to him. We&#8217;ll be using the easy way out to display the result using CSS. Here&#8217;s the code for that.</p>
<pre name="code" class="php" >
$query=mysql_query(&quot;SELECT COUNT(*) as totalvotes FROM votes WHERE option_id IN(SELECT id FROM options WHERE ques_id='$poll_id')&quot;);
while($row=mysql_fetch_assoc($query))
	$total=$row['totalvotes'];
$query=mysql_query(&quot;SELECT options.id, options.value, COUNT(*) as votes FROM votes, options WHERE votes.option_id=options.id AND votes.option_id IN(SELECT id FROM options WHERE ques_id='$poll_id') GROUP BY votes.option_id&quot;);
while($row=mysql_fetch_assoc($query)){
	$percent=round(($row['votes']*100)/$total);
	echo '&lt;div class=&quot;option&quot; &gt;&lt;p&gt;'.$row['value'].' (&lt;em&gt;'.$percent.'%, '.$row['votes'].' votes&lt;/em&gt;)&lt;/p&gt;';
	echo '&lt;div class=&quot;bar ';
	if($_POST['poll']==$row['id']) echo ' yourvote';
	echo '&quot; style=&quot;width: '.$percent.'%; &quot; &gt;&lt;/div&gt;&lt;/div&gt;';
}
echo '&lt;p&gt;Total Votes: '.$total.'&lt;/p&gt;';
</pre>
<p>To display the results from the information we have in <strong>votes</strong> table, we will use a <strong>GROUP BY</strong> query to find out votes per option and then set the width of display bar based on percentage of votes each option received.</p>
<p>All the PHP code is in <strong>poll.php</strong> file.</p>
<h3>HTML Structure</h3>
<p>HTML structure is quite simple as jQuery will do the heavy lifting. We only need to define a container that will hold the poll form or display the results.</p>
<pre name="code" class="html" >
&lt;div id=&quot;container&quot; &gt;
	&lt;h1&gt;User Poll&lt;/h1&gt;
	&lt;div id=&quot;pollcontainer&quot; &gt;
	&lt;/div&gt;
	&lt;p id=&quot;loader&quot; &gt;Loading...&lt;/p&gt;
&lt;/div&gt;
</pre>
<h3>The JavaScript Code</h3>
<h4>Loading the Poll Form</h4>
<p>On page load, we will load and display the poll form to user and if user has already voted, then results will be displayed.</p>
<pre name="code" class="js">
var loader=$('#loader');
	var pollcontainer=$('#pollcontainer');
	loader.fadeIn();
	//Load the poll form
	$.get('poll.php', '', function(data, status){
		pollcontainer.html(data);
		animateResults(pollcontainer);
		pollcontainer.find('#viewresult').click(function(){
			//if user wants to see result
			loader.fadeIn();
			$.get('poll.php', 'result=1', function(data,status){
				pollcontainer.fadeOut(1000, function(){
					$(this).html(data);
					animateResults(this);
				});
				loader.fadeOut();
			});
			//prevent default behavior
			return false;
		})
</pre>
<h4>Processing User Vote</h4>
<p>To process the user vote, we first check to see if user has selected one of the options and then post the form data to <strong>poll.php</strong> and then display the results to the user in a nice animated way using the function <code>animateResults</code>. </p>
<pre name="code" class="js" >
('#pollform').submit(function(){
			var selected_val=$(this).find('input[name=poll]:checked').val();
			if(selected_val!=''){
				//post data only if a value is selected
				loader.fadeIn();
				$.post('poll.php', $(this).serialize(), function(data, status){
					$('#formcontainer').fadeOut(100, function(){
						$(this).html(data);
						animateResults(this);
						loader.fadeOut();
					});
				});
			}
			//prevent form default behavior
			return false;
		});
</pre>
<p>Download the complete source code and try it out for yourself.</p>
<div class="demo" ><a href="http://demo.webdeveloperplus.com/source-code/ajax-poll.zip" >Download</a></div>
<p><strong>Remember to set up database and tables using <em>polls.sql</em> file provided in source code and update database information in the <em>poll.php</em> file</strong> before trying out.</p>
<p><strong>Note:</strong> In this tutorial, i have only covered the user interface part of the user poll script. You&#8217;ll have to code the user interface for creating new polls or manually have to add questions and options in the tables. The sample database file provided with the source code contains a sample poll question along with some sample data.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/' rel='bookmark' title='AJAX Multiple File Upload Form Using jQuery'>AJAX Multiple File Upload Form Using jQuery</a></li>
<li><a href='http://webdeveloperplus.com/php/integrate-customized-recaptcha-in-your-php-application/' rel='bookmark' title='Integrate Customized reCaptcha in your PHP Application'>Integrate Customized reCaptcha in your PHP Application</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/php/ajax-user-poll-using-jquery-and-php/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>25 New &amp; Useful PHP Techniques &amp; Tutorials</title>
		<link>http://webdeveloperplus.com/php/25-new-useful-php-techniques-tutorials/</link>
		<comments>http://webdeveloperplus.com/php/25-new-useful-php-techniques-tutorials/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 14:39:30 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php debugging]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=473</guid>
		<description><![CDATA[PHP is the most popular and widely accepted server side scripting language among developers due to its easy to learn nature, free of cost and its large ever increasing helpful community. Here are 25 useful PHP techniques and tutorials, most of which have been published only in this year. 1. Facebook type image rotation and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/php.jpg" alt="PHP" title="PHP" width="160" height="85" class="alignleft size-full wp-image-487" />PHP is the most popular and widely accepted server side scripting language among developers due to its easy to learn nature, free of cost and its large ever increasing helpful community. Here are 25 useful PHP techniques and tutorials, most of which have been published only in this year. </p>
<h4>1. <a href="http://abhinavsingh.com/blog/2009/07/facebook-type-image-rotation-and-more-using-php-and-javascript/" >Facebook type image rotation and more using PHP and Javascript </a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/image-rotation.jpg" alt="image rotation with PHP" title="image rotation with PHP" width="500" height="290" class="alignnone size-full wp-image-485" /><br />
How does facebook rotate images in gallery. Here&#8217;s a nice solution using the inbuilt <em>imagerotate</em> functionality in PHP. <a href="http://abhinavsingh.com/webdemos/imagerotate/" >View Demo &raquo;</a><span id="more-473"></span></p>
<h4>2. <a href="http://davidwalsh.name/php-google-analytics" >Retrieve Google Analytics Visits and Pageviews with PHP</a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/google-analytics-data.png" alt="Retrieve Google Analytics data with PHP" title="Retrieve Google Analytics data with PHP" width="500" height="200" class="alignnone size-full wp-image-484" /><br />
Learn how to integrate Google Analytics data into your website using an easy to use PHP API<br />
<a href="http://davidwalsh.name/dw-content/google-analytics-stats-2.php"  >View Demo &raquo;</a></p>
<h4>3. <a href="http://papermashup.com/caching-dynamic-php-pages-easily/" >Caching Dynamic PHP pages easily</a></h4>
<p>Learn how to cache database intensive heavy pages and serve the static html cached files utilizing the output buffering in PHP</p>
<h4>4. <a href="http://www.hiteshagrawal.com/php/reading-excel-sheet-in-php" >Reading Excel Sheet in PHP</a></h4>
<p>In this article you will learn, how you can read Microsoft Excel Sheet in PHP using Open Source Tool PHPExcelReader.</p>
<h4>5. <a href="http://abhinavsingh.com/blog/2009/07/xml-parsing-in-php-xpath-way-the-best-i-know-so-far/" >XML Parsing in PHP/XPath Way</a></h4>
<p>If you are a PHP developer, you surely must have done XML parsing at some stage or the other. Parsing XML using XPath is far more better than other techniques, not only because it’s quite simple but also because it’s extendable.</p>
<h4>6. <a href="http://davidwalsh.name/gmail-php-imap" >Retrieve Your Gmail Emails Using PHP and IMAP</a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/gmail-email-using-php.png" alt="Grab emails from gmail using PHP" title="Grab emails from gmail using PHP" width="500" height="200" class="alignnone size-full wp-image-483" /><br />
Grabbing emails from your Gmail account using PHP is probably easier than you think. Armed with PHP and its IMAP extension, you can retrieve emails from your Gmail account in no time.<br />
<a href="http://davidwalsh.name/dw-content/php-gmail.php" >View Demo &raquo;</a></p>
<h4>7. <a href="http://www.lateralcode.com/directory-trees-with-php-and-jquery/" >Directory Trees With PHP and jQuery</a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/directory-tree.png" alt="Directory tree using PHP" title="Directory tree using PHP" width="500" height="170" class="alignnone size-full wp-image-482" /><br />
A simple way to keep track of many files is to use a directory tree. A directory tree lists out files and directories so that it’s easy to find what you’re looking for.</p>
<h4>8. <a href="http://dev-tips.com/featured/send-hassle-free-and-dependable-html-emails-with-php" >Send Hassle Free and dependable HTML emails with PHP</a></h4>
<p>A simple straightforward function that sends HTML e-mails with a plain text counterpart for those over 80 and still using AOL 2.5.</p>
<h4>9. <a href="http://dev-tips.com/featured/how-to-use-custom-ini-files-with-php" >How To Use Custom ini Files With PHP</a></h4>
<p>The config file typically holds information that will be used over and over again, such as database info. Today, we will have a look at a simple example of using a custom ini file to set our preferences.</p>
<h4>10. <a href="http://www.reynoldsftw.com/2009/09/from-mysql-to-jquery-via-php-xml-ajax/" >From MySQL to jQuery, via PHP, XML &#038; Ajax</a></h4>
<p>This article will focus on getting data from a database using PHP, converting that to an XML document, and reading that XML in through jQuery via Ajax calls. Seems complex, but is in fact, very easy.</p>
<h4>11. <a href="http://davidwalsh.name/web-service-php-mysql-xml-json" >Create a Basic Web Service Using PHP, MySQL, XML, and JSON</a></h4>
<p>Here’s how to create a basic web service that provides an XML or JSON response using some PHP and MySQL.</p>
<h4>12. <a href="http://corpocrat.com/2009/09/29/how-url-shortening-scripts-work/" >How URL shortner scripts work?</a></h4>
<p>Ever thought of how those URL Shortening services work. Have a look at a nice technique to create your own URL shortening service.</p>
<h4>13. <a href="http://corpocrat.com/2009/08/18/automatic-face-detection-with-php-in-linux/" >Automatic Face Detection in Photos with PHP </a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/php-face-detect.jpg" alt="Detect faces in image with PHP" title="Detect faces in image with PHP" width="247" height="159" class="alignnone size-full wp-image-486" /><br />
Find out how to automatically detect and tag a face in an image.</p>
<h4>14. <a href="http://codytaylor.org/2009/06/update-twitter-using-command-line-javascript-or-php.html" >Update Twitter using Command Line, Javascript, Or PHP.</a></h4>
<p>Everyone seems to be all about Twitter so here’s some simple examples of how to update your Twitter status from a command line prompt, web server or simple html web site.</p>
<h4>15. <a href="http://www.gen-x-design.com/archives/making-restful-requests-in-php/" >Making RESTful Requests in PHP</a></h4>
<p>APIs have become a very commonplace part of many popular web sites and services, especially REST APIs. This article discusses how to get, post, put and delete with a REST API in PHP.</p>
<h4>16. <a href="http://codestips.com/?p=226" >PHP Multithreading using CURL</a></h4>
<p>Simultaneously fetch data from multiple websites using CURL&#8217;s multithreading option.</p>
<h4>17. <a href="http://papermashup.com/php-http-authentication/" >PHP HTTP Authentication</a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/php-http-authentication.png" alt="HTTP Authentication With PHP" title="HTTP Authentication With PHP" width="500" height="132" class="alignnone size-full wp-image-481" /><br />
At times, you may wish to make certain pages of your site only viewable to a select few, you can do this by using PHP&#8217;s built in HTTP Authentication.</p>
<h4>18. <a href="http://codestips.com/?p=180" >PHP copy directory from source to destination</a></h4>
<p>To copy a directory source to a destination directory you will need to scan the source directory with all files and directory and copy to the destination. To accomplish this we should make a recursive function that will copy the files from source to target dir.</p>
<h4>19. <a href="http://viralpatel.net/blogs/2009/02/file-upload-in-php-file-upload-php-file-upload-tutorial-securing-things.html" >File Upload in PHP &#8211; Securing the things</a></h4>
<p>Secure your file upload forms and prevent malicious users from attacking your web app.</p>
<h4>20. <a href="http://www.hiteshagrawal.com/php/html-scrapper-in-php" >HTML Scraper in PHP</a></h4>
<p>Sometimes we want to extract the HTML content of the remote website page, this technique is called as HTML scraper. This article will discuss on how we can extract the HTML content of the remote webpage.</p>
<h4>21. <a href="http://hungred.com/useful-information/php-secure-login-tips-and-tricks/" >PHP Secure Login Tips and Tricks</a></h4>
<p>In this article, you will get a list of PHP secure login tips and tricks that will definitely help you decide on your secure rating of your login page.</p>
<h4>22. <a href="http://papermashup.com/use-php-to-gzip-css-files/" >Use PHP To Gzip CSS Files</a></h4>
<p>This technique is a powerful and simple way to reduce page download size and speed up your site that will work with most PHP installations</p>
<h4>23. <a href="http://davidwalsh.name/backup-database-xml-php" >Backup Your Database into an XML File Using PHP</a></h4>
<p>The database is the most important part of a web application. Imagine losing all of the data in your database — it would be tragic. Here’s a PHP snippet that outputs your database as XML.</p>
<h4>24. <a href="http://carsonified.com/blog/dev/how-to-debug-in-php/" >How To Debug in PHP</a></h4>
<p>This article breaks down the fundamentals of debugging in PHP, helps you understand PHP’s error messages and introduces you to some useful tools to help make the process a little less painful.</p>
<h4>25. <a href="http://giorgiosironi.blogspot.com/2009/10/optimizing-php-application-in-5-minutes.html" >Optimizing a php application in 5 minutes</a></h4>
<p>Optimizing means reducing loading and execution times, improving the user experience by making the application reacting more responsively. If your language of choice is php, fortunately this process takes only 5 minutes.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/php/21-really-useful-handy-php-code-snippets/' rel='bookmark' title='21 Really Useful &amp; Handy PHP Code Snippets'>21 Really Useful &#038; Handy PHP Code Snippets</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/php/25-new-useful-php-techniques-tutorials/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>13+ Fresh and High Quality Texture Sets &amp; Collections</title>
		<link>http://webdeveloperplus.com/design/13-fresh-high-quality-texture-sets/</link>
		<comments>http://webdeveloperplus.com/design/13-fresh-high-quality-texture-sets/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 08:34:01 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[freebies]]></category>
		<category><![CDATA[textures]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=461</guid>
		<description><![CDATA[Textures are very useful for web and graphic designers as they liven up the overall look and style of the design. Here are 15 fresh high quality texture sets that have been released in last 50 days which you might find useful for your next web or graphic design project. All of these texture sets [...]]]></description>
			<content:encoded><![CDATA[<p>Textures are very useful for web and graphic designers as they liven up the overall look and style of the design. Here are 15 fresh high quality texture sets that have been released in last 50 days which you might find useful for your next web or graphic design project. All of these texture sets and collections are free to use in personal or commercial projects.</p>
<h4>1.  <a href="http://regularjane.deviantart.com/art/Regularjane-s-Bokeh-Textures-137197516" target="_blank">Bokeh Textures Pack</a></h4>
<p><img class="alignnone" title="Bokeh Textures Pack" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/bokeh-texture-pack.jpg" alt="Bokeh Textures Pack" width="500" height="240" /></p>
<h4>2. <a href="http://desizntech.info/2009/10/10-free-high-res-surface-and-rock-textures/" target="_blank">10 Free High Res Surface and Rock Textures</a></h4>
<p><img class="alignnone" title="Surface Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/surface-textures.jpg" alt="Surface Textures" width="500" height="236" /><span id="more-461"></span></p>
<h4>3. <a href="http://env1ro.deviantart.com/art/2-Old-Postcards-textures-137389791" target="_blank">2 Old PostCards Textures</a></h4>
<p><img class="alignnone" title="Old Postcard Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/old-postcard-textures.jpg" alt="Old Postcard Texture Pack" width="500" height="240" /></p>
<h4>4. <a href="http://naldzgraphics.net/freebies/10-free-high-quality-jeans-textures/" target="_blank">10 Free High-Quality Jeans Textures</a></h4>
<p><img class="alignnone" title="Jeans Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/jeans-textures.jpg" alt="Jeans Textures" width="500" height="240" /></p>
<h4>5. <a href="http://naldzgraphics.net/freebies/50-high-quality-leaf-textures-and-resources/" target="_blank">50 High Quality Free Leaf Textures and Resources</a></h4>
<p><img class="alignnone" title="Leaf Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/leaf-textures.jpg" alt="Leaf Textures" width="500" height="240" /></p>
<h4>6. <a href="http://designm.ag/resources/wood-textures-2/" target="_blank">75 High-Quality Free Wood Textures</a></h4>
<p><img class="alignnone" title="Wood Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/wood-textures.jpg" alt="Wood Textures" width="500" height="240" /></p>
<h4>7. <a href="http://desizntech.info/2009/08/free-high-quality-grunge-metal-textures/" target="_blank">Free High Quality Grunge Metal Textures</a></h4>
<p><img class="alignnone" title="Grunge Metal Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/grunge-metal-textures.jpg" alt="Grunge Metal Textures" width="500" height="240" /></p>
<h4>8. <a href="http://sixrevisions.com/freebies/textures/free-and-high-quality-cloud-textures/" target="_blank">Free and High-Quality Cloud Textures</a></h4>
<p><img class="alignnone" title="Cloud Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/cloud-textures.jpg" alt="Cloud Textures" width="500" height="240" /></p>
<h4>9. <a href="http://regularjane.deviantart.com/art/Glitter-Bokeh-Texture-Pack-137887485" target="_blank">Glitter Bokeh Texture Pack</a></h4>
<p><img class="alignnone" title="Glitter Bokeh Texture Pack" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/glitter-bokeh-texture-pack.jpg" alt="Glitter Bokeh Texture Pack" width="500" height="240" /></p>
<h4>10. <a href="http://mango-01.deviantart.com/art/Fractal-Textures-139415354" target="_blank">Fractal Textures</a></h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/fractal-textures.jpg" alt="Fractal Texture Pack" title="Fractal Texture Pack" width="500" height="240" class="alignnone size-full wp-image-467" /></p>
<h4>11. <a href="http://sixrevisions.com/freebies/textures/12-free-and-high-res-grungy-wall-textures/" target="_blank">12 Free and High-Res Grungy Wall Textures</a></h4>
<p><img class="alignnone" title="Grungy Wall Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/grungy-wall-textures.jpg" alt="Grungy Wall Textures" width="500" height="240" /></p>
<h4>12. <a href="http://gild-a-stock.deviantart.com/art/Tree-Bark-Texture-Pack-136927671" target="_blank">Tree Bark Texture Pack</a></h4>
<p><img class="alignnone" title="Tree Bark Texture Pack" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/tree-bark-texture-pack.jpg" alt="Tree Bark Texture Pack" width="500" height="240" /></p>
<h4>13. <a href="http://naldzgraphics.net/freebies/60-totally-free-rusted-metal-textures-for-designers/" target="_blank">60+ Totally Free Rusted Metal Textures For Designers</a></h4>
<p><img class="alignnone" title="Rusted Metal Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/rusted-metal-textures.jpg" alt="Rusted Metal Textures" width="500" height="240" /></p>
<h4>14. <a href="http://www.designer-daily.com/9-free-rusty-photoshop-textures-3034" target="_blank">9 Free Rusty Photoshop Textures</a></h4>
<p><img class="alignnone" title="Rusty Photoshop Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/rusty-textures.jpg" alt="Rusty Photoshop Textures" width="500" height="240" /></p>
<h4>15. <a href="http://thedesignmag.com/11-high-resolution-free-fabric-textures.html" target="_blank" >11 High Resolution Free Fabric Textures</a></h4>
<p><img alt="Fabric Textures" src="http://static.webdeveloperplus.com/uploads/2009/10/texture-sets-collections/fabric-textures.jpg" title="Fabric Textures" class="alignnone" width="500" height="240" /></p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/design/40-fresh-beautiful-examples-of-websites-with-large-backgrounds/' rel='bookmark' title='40 Fresh &amp; Beautiful Examples of Websites With Large Backgrounds'>40 Fresh &#038; Beautiful Examples of Websites With Large Backgrounds</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/design/13-fresh-high-quality-texture-sets/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>15 Time Saving CSS Tools You Should Be Aware Of</title>
		<link>http://webdeveloperplus.com/css/15-time-saving-css-tools/</link>
		<comments>http://webdeveloperplus.com/css/15-time-saving-css-tools/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 06:14:32 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css optimization]]></category>
		<category><![CDATA[layout generator]]></category>
		<category><![CDATA[speed optimization]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=448</guid>
		<description><![CDATA[CSS is the essential component of modern web design. But writing the CSS code from scratch for each web design project is a tiring and time-consuming job. Here are 15 CSS tools ranging from layout generators, form generators to code compressors that will save you a lot of time writing the CSS code for your [...]]]></description>
			<content:encoded><![CDATA[<p>CSS is the essential component of modern web design. But writing the CSS code from scratch for each web design project is a tiring and time-consuming job. Here are 15 CSS tools ranging from layout generators, form generators to code compressors that will save you a lot of time writing the CSS code for your next web design.</p>
<h4>1. <a href="http://csstypeset.com/" target="_blank">CSS Typeset</a></h4>
<p><img class="largepostimage" title="CSS Typeset" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/css-typeset.png" alt="" width="605" height="344" /></p>
<p>CSS Typeset is a handy tool that allows to test different font-styles on a piece of text and provides with the CSS code for chosen font-style that you can copy paste into your stylesheet quickly.</p>
<h4>2. <a href="http://www.typetester.org/" target="_blank">TypeTester</a></h4>
<p><img class="largepostimage" title="Type Tester" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/Typetester.jpg" alt="" width="613" height="204" /></p>
<p>TypeTester is similar to CSS Typeset but with this, you can compare three different font-styles simultaneously and choose the one you find suitable. It also lets you specify the base font-size to adjust the <em>em</em> values.</p>
<h4>3. <a href="http://lab.xms.pl/css-generator/" target="_blank">CSS Frame Generator</a></h4>
<p><img class="largepostimage" title="CSS Frame Generator" src="http://webdeveloperplus.com/wp-content/uploads/2009/10/css-frame-generator.jpg" alt="CSS Frame Generator" width="600" height="292" /></p>
<p>CSS Frame Generator generates an empty CSS frame for provided HTML elements. Just copy paste the XHTML content and it&#8217;ll create a CSS Frame and then you can add styles to the CSS frame which will save you a lot of time.</p>
<h4>4. <a href="http://developer.yahoo.com/yui/grids/builder/" target="_blank">CSS Grid Builder</a></h4>
<p><img class="largepostimage" title="CSS Grid Builder" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/css-grid-buider.png" alt="" width="600" height="317" /></p>
<p>With CSS Grid Builder, you can quickly create a CSS-based, standards compliant web page layout. It uses the YUI Grids CSS framework which supports more than 1000 types of layouts.</p>
<h4>5. <a href="http://builder.yaml.de/" target="_blank">YAML Builder</a></h4>
<p><img class="largepostimage" title="YAML Builder" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/yaml-builder.jpg" alt="" width="600" height="251" /></p>
<p>YAML Builder is another layout generation tool that uses YAML framework to create grid layouts.</p>
<h4>6. <a href="http://www.spiffycorners.com" target="_blank">Spiffy Corners</a></h4>
<p><img class="largepostimage" title="Spiffy Corners" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/spiffy-corners.jpg" alt="" width="498" height="307" /></p>
<p>Spiffy Corners lets you create rounded corner flexible boxes without any images. With just few clicks you can add nice looking rounded corner box to your web page.</p>
<h4>7. <a href="http://www.jotform.com/" target="_blank">JotForm</a></h4>
<p><img class="largepostimage" title="Jot Form" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/Jotform.png" alt="" width="604" height="302" /></p>
<p>JotForm makes creating HTML forms a breeze. With its Visual drag drop interface, you can quickly create HTML forms. Also there are pre-built templates like registration form, feedback form which you can use to set up your web forms in almost no time.</p>
<h4>8. <a href="http://www.askthecssguy.com/kotatsu" target="_blank">Kotatsu</a></h4>
<p><img class="largepostimage" title="Kotastu Table Generator" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/kotatsu.png" alt="" width="399" height="192" /></p>
<p>Kotatsu lets you easily and quickly create HTML tables and attach CSS classes to rows, columns and cells of table.</p>
<h4>9. <a href="http://spritegen.website-performance.org/" target="_blank">CSS Sprite Generator</a></h4>
<p>CSS Sprite Generator is a big time saver. Just upload a zip file containing all the images you want to convert into CSS sprite, it&#8217;ll not only create the sprite image but will also provide you with CSS styles which you can quickly use in your web page to utilize CSS sprites.</p>
<h4>10. <a href="http://jigsaw.w3.org/css-validator/" target="_blank">W3C CSS Validator</a></h4>
<p><img class="largepostimage" title="W3C CSS Validator" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/w3c-css-validation.png" alt="" width="600" height="279" /></p>
<p>W3C CSS validator is perhaps the most widely used CSS validator. It is a great time saver in the sense as it points out various errors within your stylesheet so that you can create better and more accessible web pages.</p>
<h4>11. <a href="http://www.lonniebest.com/FormatCSS/" target="_blank">Format CSS</a></h4>
<p><img class="largepostimage" title="Format CSS" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/format-css.png" alt="" width="601" height="237" /></p>
<p>With FormatCSS, you can upload your CSS code and select from the options available to achieve code formatting the way you want. For example you can convert a compact CSS code into readable form with proper line-breaks and indentation or vice-versa.</p>
<h4>12. <a href="https://addons.mozilla.org/en-US/firefox/addon/5392" target="_blank">Dust-Me Selectors</a></h4>
<p>Dust-Me Selectors is a firefox add-on that analyzes the opened web page&#8217;s HTML content and CSS code to find out those style definitions that are not used.</p>
<h4>13. <a href="http://www.cssoptimiser.com/" target="_blank">CSS Optimizer</a></h4>
<p>CSS Optimizer is a tool for optimizing the file size of CSS files. It extracts every whitespace character out of CSS file to considerably reduce the file size.</p>
<h4>14. <a href="http://services.immike.net/css-checker/" target="_blank">CSS Redundancy Checker</a></h4>
<p><img class="largepostimage" title="CSS Redundency Checker" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/css-redundency-checker.png" alt="" width="555" height="355" /></p>
<p>CSS Redundancy Checker finds out redundant CSS styles that are no longer in use on your web pages so that you can remove them from the stylesheet to reduce CSS file size.</p>
<h4>15. <a href="http://csstidy.sourceforge.net/" target="_blank">CSSTidy</a></h4>
<p>CSSTidy is an open source CSS optimizer and parser that cleans up unnecessary white space within CSS file, modifies the color values to reduce the file size and optimizes margin, padding values and removes the last semi-colon from style definitions to reduce the file size.</p>
<p>If you know of some other CSS tool that you think should be listed here, do tell us in comments below.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/15-time-saving-css-tools/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.852 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-17 03:07:46 -->

