<?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>Free script resoure online - WP theme - Joomla theme - VBB theme - Graphic theme &#187; How to</title>
	<atom:link href="http://www.w3code.net/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.w3code.net</link>
	<description>WP theme - Joomla theme - VBB theme - Graphic theme</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:55:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to redirect IP addresses to different page</title>
		<link>http://www.w3code.net/how-to-redirect-ip-addresses-to-different-page/</link>
		<comments>http://www.w3code.net/how-to-redirect-ip-addresses-to-different-page/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 21:36:38 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Wordpress template]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How to redirect IP addresses]]></category>
		<category><![CDATA[PHP script]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1684</guid>
		<description><![CDATA[If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip. Its working well. Done &#8230;!]]></description>
			<content:encoded><![CDATA[<p>If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip.</p>
<p>
<div class="codesnip-container" ><?php<br />
//array of ip&#8217;s you wish to block.  Note that you can block an<br />
//entire class by replacing it with 0, so to block a class c<br />
//(254 computers) use something like 123.123.123.0<br />
$blockIP = array(&#8217;123.123.123.0&#8242;,&#8217;100.100.100.101&#8242;);</div>
</p>
<p>$remote = explode(&#8216;.&#8217;,$_SERVER['REMOTE_ADDR']);<br />
foreach($blockIP as $ip) {<br />
  $goodIP = false;<br />
	for($i=0;$i&lt;4;$i++) {<br />
    $ipSeg = explode(&#8216;.&#8217;,$ip);<br />
    if($remote[$i] == $ipSeg[$i] || $ipSeg[$i] == &#8217;0&#8242;) {<br />
      //segment qualifies<br />
      $goodIP = true;<br />
    } else {<br />
      //ip no good so move to the next<br />
      $goodIP = false;<br />
      continue 2;<br />
    }<br />
  }<br />
  if($goodIP) {<br />
    //ip passes so no need to check the rest<br />
    $blockThisIP = $ip;<br />
    break;<br />
  }</p>
<p>}<br />
//for convenience test $blockThisIP and process here<br />
//replace www.crayola.com with the place you wish to<br />
//send ip&#8217;s too<br />
if($blockThisIP) {<br />
  //php header method &#8211; can only use this if the page<br />
  //has not begin to display in the browser<br />
  header(&#8216;Location: http://www.crayola.com&#8217;);</p>
<p>  //javascript redirection &#8211; use this method if browser has<br />
  //begun to display page<br />
  echo &#8220;<script type="text/javascript">
  window.location = "http://www.crayola.com";</script>&#8220;;<br />
}<br />
?></p>
<p>Its working well. Done &#8230;!</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/how-to-redirect-ip-addresses-to-different-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to automated backups your database ?</title>
		<link>http://www.w3code.net/how-to-automated-backups-your-database/</link>
		<comments>http://www.w3code.net/how-to-automated-backups-your-database/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 14:21:33 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[Automated backup]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=606</guid>
		<description><![CDATA[Here is a php script that will create a compressed backup of your website files, creating a different file each day for a month (then start over) so you have 30 days of backups. It will email you with a backup confirmation. Run it every night using cron to kick it off. You should download [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a php script that will create a compressed backup of your website files, creating a different file each day for a month (then start over) so you have 30 days of backups.  It will email you with a backup confirmation.  Run it every night using cron to kick it off.  You should download the backup files from the server on a regular basis. Remember to rename the file as a .php file.</p>
<p style="padding-left: 30px;">&lt;?php<br />
$emailaddress = &#8220;XXXXXX@yourdomain.com&#8221;;<br />
$path = &#8220;/full_server_path_to_file_goes_here&#8221;; // full server path to the directory where you want the backup files (no trailing slash)<br />
// modify the above values to fit your environment<br />
$target = $path . &#8220;/backup&#8221; . date(d) . &#8220;.tar.gz&#8221;;<br />
if (file_exists($target)) unlink($target);<br />
system(&#8220;tar &#8211;create &#8211;preserve &#8211;gzip  &#8211;file=&#8221;.$target.&#8221; ~/public_html ~/mail&#8221;,$result);<br />
$size = filesize($target);<br />
switch ($size) {<br />
case ($size&gt;=1048576): $size = round($size/1048576) . &#8221; MB&#8221;; break;<br />
case ($size&gt;=1024);    $size = round($size/1024) . &#8221; KB&#8221;; break;<br />
default:               $size = $size . &#8221; bytes&#8221;; break;<br />
}<br />
$message = &#8220;The website backup has been run.\n\n&#8221;;<br />
$message .= &#8220;The return code was: &#8221; . $result . &#8220;\n\n&#8221;;<br />
$message .= &#8220;The file path is: &#8221; . $target . &#8220;\n\n&#8221;;<br />
$message .= &#8220;Size of the backup: &#8221; . $size . &#8220;\n\n&#8221;;<br />
$message .= &#8220;Server time of the backup: &#8221; . date(&#8221; F d h:ia&#8221;) . &#8220;\n\n&#8221;;<br />
mail($emailaddress, &#8220;Website Backup Message&#8221; , $message, &#8220;From: Website &lt;&gt;&#8221;);<br />
?&gt;</p>
<p>If you want to exclude a directory, add the &#8211;exclude parm to the tar command as shown in the example below (which will exlcude the public_html/audio directory):</p>
<p style="padding-left: 30px;">system(&#8220;tar &#8211;create &#8211;preserve &#8211;gzip &#8211;file=&#8221;.$target.&#8221; &#8211;exclude ~/public_html/audio ~/public_html ~/mail&#8221;,$result);</p>
<p>Please note that this script is very resource intensive.  Do not run it more than once a day, and do not run it at peak times.  If you have a large site the script may timeout depending on the server settings, but the backup may still be created.</p>
<ol>
<li>Before using cron, run the script from your browser to make sure it works as anticipated.</li>
<li>Set a cron job to run the script once a day (at an odd time &#8211; like 4:23am &#8211; to minimize server load issues).</li>
<li>This example backs up the public_html and mail directories. The backup file (named backup.day.tar.gz) will be created in your root directory (above public_html).</li>
<li>When you run this script you will likely get the message &#8220;tar: Removing leading `/&#8217; from member names&#8221;.</li>
</ol>
<p>This is normal, the script is using the settings that most people would want to use.  You can read more about this message, what it means, and alternatives here</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/how-to-automated-backups-your-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Ban or allow IP Addresses</title>
		<link>http://www.w3code.net/php-ban-or-allow-ip-addresses/</link>
		<comments>http://www.w3code.net/php-ban-or-allow-ip-addresses/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 14:15:48 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How to BAN IP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=601</guid>
		<description><![CDATA[While a .htaccess file can be used to ban or allow, it cannot be selective by function. This is something you can easily do with a script. In these examples the IP Addresses are in a file called IP.dat (in the same directory as the script) with one address per line. These scripts can also [...]]]></description>
			<content:encoded><![CDATA[<p>While a <strong><a href="http://www.w3code.net/using-htaccess-to-rewrite-your-url/">.htaccess</a></strong> file can be used to ban or allow, it cannot be selective by function.  This is something you can easily do with a script.</p>
<p>In these examples the IP Addresses are in a file called IP.dat (in the same directory as the script) with one address per line.  These scripts can also ban or allow based on partial IP Addresses.  The code in these scripts must be placed before any other output to the browser (for this page) as they use the header() function for the redirection.</p>
<p>This first script can be used to ban an IP Address from any function on your site. Remember to rename the file as a .php file.</p>
<p style="padding-left: 30px;">&lt;?php<br />
$ip = $_SERVER['REMOTE_ADDR'];<br />
$ipArray = preg_replace(&#8220;#\r\n?|\n#&#8221;,&#8221;",file(&#8216;IP.dat&#8217;));  // read the file into an array and remove new line breaks (should cover all OS)<br />
foreach ($ipArray as $ipTest) {<br />
if (substr_count($ip, $ipTest) != &#8220;0&#8243;) {<br />
header(&#8216;location: /banned.htm&#8217;);  // the banned display page<br />
die();<br />
}<br />
}<br />
?&gt;</p>
<p>For the opposite function, the below script can be used to only allow the specified IP Addresses. Remember to rename the file as a .php file.</p>
<p style="padding-left: 30px;">&lt;?php<br />
$ip = $_SERVER['REMOTE_ADDR'];<br />
$ipArray = preg_replace(&#8220;#\r\n?|\n#&#8221;,&#8221;",file(&#8216;IP.dat&#8217;));  // read the file into an array and remove new line breaks (should cover all OS)<br />
unset($allowed);<br />
foreach ($ipArray as $ipTest) if (substr_count($ip, $ipTest) != &#8220;0&#8243;) $allowed = &#8220;yes&#8221;;<br />
if ($allowed != &#8220;yes&#8221;) {<br />
header(&#8216;location: /banned.htm&#8217;);  // the banned display page<br />
die();<br />
}<br />
?&gt;</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/php-ban-or-allow-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using .htaccess to rewrite your URL</title>
		<link>http://www.w3code.net/using-htaccess-to-rewrite-your-url/</link>
		<comments>http://www.w3code.net/using-htaccess-to-rewrite-your-url/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 14:06:53 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Ebooks - Tips]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Friendly URL]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Rewrite URL]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=598</guid>
		<description><![CDATA[If you want your website to have friendly URLs you can use this .htaccess code. With this example code, the URL http://www.w3code.net/about would cause the page about.html to load. RewriteEngine On RewriteCond %{REQUEST_URI} !\. RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [L] With the above example, if there is no dot in the requested name (this [...]]]></description>
			<content:encoded><![CDATA[<p>If you want your website to have <a href="http://www.w3code.net/php-ban-or-allow-ip-addresses/">friendly URL</a>s you can use this <strong>.htaccess</strong> code.  With this example code, the URL http://www.w3code.net/about would cause the page about.html to load.</p>
<blockquote><p>RewriteEngine On<br />
RewriteCond %{REQUEST_URI} !\.<br />
RewriteCond %{REQUEST_FILENAME}\.html -f<br />
RewriteRule ^(.*)$ $1.html [L]</p></blockquote>
<p>With the above example, if there is no dot in the requested name (this prevents executing the filename lookup logic for every file request), and the request matches a filename (with a .html on the end), it will take the request and put .html on the end.</p>
<p>There are two restrictions with this method.  Make sure there is not a directory with the same name as the url you are using (if using http://www.w3code.net/about &#8211; make sure there is not a directory named about), or you may get undesired results.  And the page you wish to load cannot have a dot in the name (i.e. about.me.htm will not work).</p>
<p>Here is a second method.  This one does not do a filename check so it is faster, but it could also do a rewrite when there is no file.</p>
<blockquote><p>RewriteEngine On<br />
RewriteRule ^([^\./]+)$ $1.html [L]</p></blockquote>
<p>With the above example, if there is no dot or slash in the requested name, and the request is not empty (meaning the default page), it will take the request and put .html on the end.</p>
<p>There are also two restrictions with this method.  Make sure there is not a directory with the same name as the url you are using (if using http://www.w3code.net/about &#8211; make sure there is not a directory named about), or you may get undesired results.  And the page you wish to load cannot have a dot or slash in the name (i.e. about.me.html or sub/about.html will not work).</p>
<p>You can make any number of variations as to the criteria using these examples as a starting point.</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/using-htaccess-to-rewrite-your-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert WordPress to Blogger ?</title>
		<link>http://www.w3code.net/how-to-convert-wordpress-to-blogger/</link>
		<comments>http://www.w3code.net/how-to-convert-wordpress-to-blogger/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 16:23:50 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Ebooks - Tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Export Blogger]]></category>
		<category><![CDATA[Import Blogger]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=578</guid>
		<description><![CDATA[Blogger is getting better and there could be bloggers wanting to import and convert their WordPress blog to Blogger blog. WordPress has in-built feature (under ‘tools’ tab) to import any Blogger blog. However, reverse conversion of WordPress blog to Blogger blog is not supported. Well, not anymore &#8211; you can convert your WordPress blog to [...]]]></description>
			<content:encoded><![CDATA[<p>Blogger is getting better and there could be bloggers wanting to import and convert their WordPress blog to <a target="_blank" href="http://blogger.com">Blogger blog</a>. <a target="_blank" href="http://wordpress.org">WordPress</a> has in-built feature (under ‘tools’ tab) to import any Blogger blog. However, reverse conversion of WordPress blog to Blogger blog is not supported.</p>
<p>Well, not anymore &#8211; you can convert your WordPress blog to Blogger blog. WordPress2Blogger web service provide a dead simple way for this conversion. To get started, login into your WordPress blog then goto ‘Manage’ or ‘Tools’ tab and look for export option. Using this option download WordPress WXR export file.</p>
<p>Now upload this file to <a target="_blank" href="http://wordpress2blogger.appspot.com/">WordPress2Blogger</a> online service to make it Blogger compatible. Download the resultant file and upload it into Blogger blog using import feature in Blogger dashboard. Your WordPress posts should start appearing in Blogger blog. This method is suitable for smaller blogs with <a href="http://www.w3code.net/import-export-xml-file-blogger/">export / import files</a> less than 1MB.</p>
<p>In case you want more technical way for WordPress to Blogger conversion then checkout <a target="_blank" href="http://code.google.com/p/google-blog-converters-appengine/">Google Blog Converter project</a>. As pointed by Google OpenSource blog “… This new Open Source project provides the ability to easily move blog posts and comments from service to service. This initial release provides Python libraries and runnable scripts that convert between the export formats of Blogger, LiveJournal, MovableType, and WordPress.”</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/how-to-convert-wordpress-to-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to import /export xml file Blogger ?</title>
		<link>http://www.w3code.net/import-export-xml-file-blogger/</link>
		<comments>http://www.w3code.net/import-export-xml-file-blogger/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 16:19:57 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Ebooks - Tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Export Blogger]]></category>
		<category><![CDATA[Import Blogger]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=575</guid>
		<description><![CDATA[Long back in June Blogger introduced Blogger import / export feature along with loads of other new Blogger features. Import &#8211; export feature just got better and now support very large blogger blogs. HOW TO IMPORT / EXPORT BLOGGER BLOG? Instead of using www.blogger.com, use draft.blogger.com and sign into your blogger account. Then click on [...]]]></description>
			<content:encoded><![CDATA[<p>Long back in June Blogger introduced <a href="http://www.w3code.net/how-to-convert-wordpress-to-blogger/">Blogger import / export feature</a> along with loads of other new Blogger features. <strong>Import &#8211; export</strong> feature just got better and now support very large blogger blogs.</p>
<p><strong>HOW TO IMPORT / EXPORT BLOGGER BLOG?</strong></p>
<p><strong></strong>Instead of using www.blogger.com, use draft.blogger.com and sign into your blogger account. Then click on ’settings’ button. You will see ‘import blog’, ‘export blog’ and ‘delete blog’ button as shown in image above.</p>
<p>As pointed by Blogger blog, make sure you first test this feature on a temporary throw away blog. Also, currently it only support importing Blogger blogs. “… We don’t yet support importing from WordPress, Typepad, LiveJournal or any other blogging platforms.”</p>
<p>So, is suport for importing from Wordpres, Typepad etc is in MAKING? If yes, then this is great and Blogger will rock more and more!</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/import-export-xml-file-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Unable to create directory with WordPress</title>
		<link>http://www.w3code.net/fix-unable-create-directory-wordpress/</link>
		<comments>http://www.w3code.net/fix-unable-create-directory-wordpress/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 07:48:22 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Ebooks - Tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress solution]]></category>
		<category><![CDATA[Wordpress tip]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=573</guid>
		<description><![CDATA[I&#8217;m having issues uploading images to to a post. I keep getting the following error: Unable to create directory /var/www/vhosts/domain.com/httpdocs/wp-content/uploads/2008/05. Is its parent directory writable by the server? 1. Firstly, on my test install, file uploads wouldn&#8217;t work and I got the &#8220;HTTP Error&#8221;. This was fixed with the addition to the .htaccess (in the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having issues uploading images to to a post. I keep getting the following error:</p>
<blockquote><p>Unable to create directory /var/www/vhosts/domain.com/httpdocs/wp-content/uploads/2008/05. Is its parent directory writable by the server?</p></blockquote>
<p>1. <strong>Firstly</strong>, on my test install, file uploads wouldn&#8217;t work and I got the &#8220;HTTP Error&#8221;. This was fixed with the addition to the .htaccess (in the top level of your WordPress install).</p>
<p>I added the first four lines below to my .htaccess, so this is what I ended up with.</p>
<blockquote><p>&lt;IfModule mod_security.c&gt;<br />
&lt;Files async-upload.php&gt;<br />
SecFilterEngine Off<br />
SecFilterScanPOST Off<br />
&lt;/Files&gt;<br />
&lt;/IfModule&gt;<br />
# BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;<br />
# END WordPress</p></blockquote>
<p>2. <strong>Second</strong>: <strong>I am using WP 2.6. I CH&#8217;MOD (777) the following directories:</strong></p>
<p>I found: wp-conten/ uploads, If not create this folder name:  <strong>uploads</strong></p>
<p>I then went to <strong>Settings</strong> &gt; <strong>Miscellaneous</strong> &gt; <strong>Full URL</strong> path to files (optional)</p>
<blockquote><p>I put in: http://asia-dns.net/wp-content/uploads</p></blockquote>
<p>And made sure my uploads were set to:</p>
<blockquote><p>wp-content/uploads</p></blockquote>
<p>Testing Success this problem, Reupload and test on your upload site. Done</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/fix-unable-create-directory-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Create Zoom Photo in your Blogger ?</title>
		<link>http://www.w3code.net/how-to-create-zoom-photo-in-your-blogger/</link>
		<comments>http://www.w3code.net/how-to-create-zoom-photo-in-your-blogger/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 19:17:56 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Java script]]></category>
		<category><![CDATA[Themes Blogger]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Create Zoom Photo]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=540</guid>
		<description><![CDATA[Zoom Your Images In Blogger Posts is the script you would have seen in many websites to show of there image demos as large one as its very nice way to show there images and templaes.Today i will tell you how to install this script in your blog so as the images in your post [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://bannergallery.blogspot.com/2008/08/test-zooming.html">Zoom Your Images</a> In Blogger Posts is the script you would have seen in many websites to show of there image demos as large one as its very nice way to show there images and templaes.Today i will tell you how to install this script in your blog so as the images in your post can be clicked and viewed in larger size.</p>
<p>Firstly Download these two scripts to your computer FancyZoom.js and FancyZoomHTML.js</p>
<p>Upload these files to your server which you use to upload js files or can use mine too but exceed bandwidth can be an problem for you in near future.</p>
<p>Now Goto <strong>LAYOUT</strong> &gt; Edit Html and Find <strong>&lt;/head&gt;</strong> tag<br />
Place the below codes before it.</p>
<ol>
<li>&lt;script src=&#8217;http://www.vietchecker.com/jsblogger/FancyZoom.js&#8217; type=&#8217;text/javascript&#8217;&gt;&lt;/script&gt;</li>
<li>&lt;script src=&#8217;http://www.http://vietchecker.com/jsblogger/FancyZoomHTML.js&#8217; type=&#8217;text/javascript&#8217;&gt;&lt;/script&gt;</li>
</ol>
<p>Look at down a little and find this code <strong>&lt;body&gt;</strong></p>
<p>Reply this code &lt;body&gt; and change with the code:</p>
<blockquote><p>&lt;body onload=&#8221;setupZoom()&#8221;&gt;</p></blockquote>
<p>Click <strong>SAVE TEMPLATE. Now whenever you embed image in your post use cods like this below:</strong></p>
<blockquote><p>&lt;a href=&#8221;http://urldomain.com/image.gif&#8221;&gt;&lt;img height=&#8221;200&#8243; src=&#8221;http://urldomain.com/image.gif&#8221; width=&#8221;300&#8243; border=&#8221;0&#8243; /&gt;&lt;/a&gt;</p></blockquote>
<p>Width=&#8221;300&#8243; and height=&#8221;200&#8243; are the size of images so that the shown images are smaller that the original images.You can change them with your own sizes.</p>
<p>When you click theses images they will be zoomed on your same screen and click zoomed image again to make it small again.</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/how-to-create-zoom-photo-in-your-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add multi language translator in Blogger ?</title>
		<link>http://www.w3code.net/how-to-add-multi-language-translator-in-blogger/</link>
		<comments>http://www.w3code.net/how-to-add-multi-language-translator-in-blogger/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 16:51:56 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Themes Blogger]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Language translator]]></category>
		<category><![CDATA[Theme Layout]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=520</guid>
		<description><![CDATA[Here&#8217;s the code you can add to create the flag buttons (above) to translate your blog into different languages, depending on which country flag the visitors click. Simply copy all the code below and paste them into a widget (Test a Page Element) and all the 9 flag buttons will appear. &#60;form action=&#8221;http://www.google.com/translate&#8221;&#62; &#60;script language=&#8221;JavaScript&#8221;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the code you can add to create the flag buttons (above) to translate your blog into different languages, depending on which country flag the visitors click. Simply copy all the code below and paste them into a widget (Test a Page Element) and all the 9 flag buttons will appear.</p>
<p><img class="aligncenter size-full wp-image-521" title="add-google-translate-in-blogger" src="http://www.w3code.net/wp-content/uploads/2009/04/add-google-translate-in-blogger.jpg" alt="add-google-translate-in-blogger" width="307" height="30" /></p>
<blockquote><p>&lt;form action=&#8221;http://www.google.com/translate&#8221;&gt;<br />
&lt;script language=&#8221;JavaScript&#8221;&gt;<br />
&lt;!&#8211;<br />
document.write (&#8220;&lt;input name=u value=&#8221;+location.href+&#8221; type=hidden&gt;&#8221;)<br />
// &#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;input value=&#8221;en&#8221; name=&#8221;hl&#8221; type=&#8221;hidden&#8221;/&gt;<br />
&lt;input value=&#8221;UTF8&#8243; name=&#8221;ie&#8221; type=&#8221;hidden&#8221;/&gt;<br />
&lt;input value=&#8221;" name=&#8221;langpair&#8221; type=&#8221;hidden&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;French&#8221; value=&#8221;en|fr&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539949_e76af75976.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;German&#8221; value=&#8221;en|de&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539933_041ca1eda2.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Italian&#8221; value=&#8221;en|it&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539953_0384ccecf9.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Portuguese&#8221; value=&#8221;en|pt&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539966_0d09b410b5.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Spanish&#8221; value=&#8221;en|es&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539946_2fabed0dbf.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Japanese&#8221; value=&#8221;en|ja&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539955_925e6683c8.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Korean&#8221; value=&#8221;en|ko&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/13539958_3c3b482c95.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Chinese Simplified&#8221; value=&#8221;en|zh-CN&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://photos1.blogger.com/img/43/1633/320/14324441_5ca5ce3423.jpg&#8221; width=&#8221;30&#8243; name=&#8221;langpair&#8221;/&gt;<br />
&lt;input onclick=&#8221;this.form.langpair.value=this.value&#8221; title=&#8221;Arabic&#8221; value=&#8221;en|ar&#8221; type=&#8221;image&#8221; height=&#8221;20&#8243; src=&#8221;http://farm4.static.flickr.com/3043/2347434064_0d36a04624_o.gif&#8221; width=&#8221;30&#8243; name=&#8221;langpair2&#8243;/&gt;</p></blockquote>
<p>Download this code: <a href="http://www.w3code.net/wp-content/uploads/2009/04/google-translate.txt">google-translate</a></p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/how-to-add-multi-language-translator-in-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adsense block IP to avoid the invalid clicks.</title>
		<link>http://www.w3code.net/adsense-block-ip-to-avoid-the-invalid-clicks/</link>
		<comments>http://www.w3code.net/adsense-block-ip-to-avoid-the-invalid-clicks/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 11:05:40 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Google adsense]]></category>
		<category><![CDATA[PHP script]]></category>
		<category><![CDATA[Adsense for Blogger]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PHP code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=515</guid>
		<description><![CDATA[When my adsense was disable, i very sad for this&#8230;, I try thing whats the problem due to my adsense account disable ? I cant understand whats the reason make my adsense disable. Today i want to introdue to everybody known, the ways to avoid invalid clicks from yourseft, your wife, or your children&#8230; Go [...]]]></description>
			<content:encoded><![CDATA[<p>When my adsense was disable, i very sad for this&#8230;, I try thing whats the problem due to my adsense account disable ? I cant understand whats the reason make my adsense disable.</p>
<p>Today i want to introdue to everybody known, the ways to avoid invalid clicks from yourseft, your wife, or your children&#8230;</p>
<p>Go to <strong>C:\WINDOWS\system32\drivers\etc\hosts</strong> open it and add this code belows:  Add the following line to your host file:</p>
<blockquote><p>127.0.0.1                   pagead2.googlesyndication.com</p></blockquote>
<p>On your webpage, add this code:</p>
<p><strong>Option 1: </strong></p>
<blockquote><p>&lt;?<br />
if ($blockadsense == &#8220;yes&#8221;) {<br />
echo &#8220;&lt;!&#8211; Nothing to show&#8211;&gt;<br />
&lt;table width=\&#8221;400\&#8221; height=\&#8221;400\&#8221;&gt;<br />
&lt;tr&gt;&lt;td&gt;Nothing here&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&#8220;;<br />
} else {<br />
echo &#8220;&lt;!&#8211; Adsense code here &#8211;&gt;&#8221;;<br />
}<br />
?&gt;</p></blockquote>
<p><strong> Option 2:</strong></p>
<blockquote><p>&lt;?<br />
if ($blockadsense == &#8220;yes&#8221;) {<br />
echo &#8220;&lt;!&#8211; Nothing to show here &#8211;&gt;&#8221;;<br />
} else {<br />
echo &#8220;&lt;!&#8211; Adsense code here &#8211;&gt;&#8221;;<br />
}<br />
?&gt;</p></blockquote>
<p>Have fun, Done</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/adsense-block-ip-to-avoid-the-invalid-clicks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

