<?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>I Am Sumeet &#187; My Scripts</title>
	<atom:link href="http://iamsumeet.com/category/my-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamsumeet.com</link>
	<description>Personal Weblog Of Sumeet</description>
	<lastBuildDate>Wed, 21 Apr 2010 14:47:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get more traffic from digg &amp; stumble by gaining more votes using personalized greeting message</title>
		<link>http://iamsumeet.com/get-more-traffic-from-digg-stumble-by-gaining-more-votes-using-personalized-greeting-message/</link>
		<comments>http://iamsumeet.com/get-more-traffic-from-digg-stumble-by-gaining-more-votes-using-personalized-greeting-message/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 08:39:03 +0000</pubDate>
		<dc:creator>Sumeet</dc:creator>
				<category><![CDATA[My Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://iamsumeet.com/?p=77</guid>
		<description><![CDATA[Social Bookmarking Website like Digg and stumbleupon are one of the best source of traffic for your website.In fact about 70% of one of my website&#8217;s traffic comes from stumble.
The problem with the traffic from social networking websites is,that its not very consistent.You need to have more votes to get more traffic. In case of [...]]]></description>
			<content:encoded><![CDATA[<p>Social Bookmarking Website like Digg and stumbleupon are one of the best source of traffic for your website.In fact about 70% of one of my website&#8217;s traffic comes from stumble.</p>
<p>The problem with the traffic from social networking websites is,that its not very consistent.You need to have more votes to get more traffic. In case of Digg.com you need to have more digs where as for Stumbleupon you need more &#8220;thumbs up or reviews&#8221; to get a consistent traffic.</p>
<p>Let&#8217;s see how SU works.You give your thumb&#8217;s up to a page. Initially SU refers low traffic to that page (as per my knowledge ,initially they refer old and top stumblers to that page). If they give a thumbs up to that page then you get more traffic from SU until the ratio of THUMBS-UP per REFERS remains high.</p>
<p>So I coded a very simple javascript to greet users coming from the social networking websites and asking them to give a thumbs-up OR digg to that page.I tested this script for about one month and its worked very nicely,especially in case of Stumbleupon votes.</p>
<p>Its a very simple javascript which check the page refer using ( document.referrer) and an if-else ladder to find the case.Then a popup dialog box (using alert function) is used to display the message.</p>
<p>CODE : (just for reference : DONT USE THIS CODE ,DOWNLOAD IT FROM THE LINK BELOW)</p>
<blockquote><address><em><span style="color: #000000;"><span style="color: #800000;">&lt;SCRIPT LANGUAGE=JAVASCRIPT TYPE=&#8221;TEXT/JAVASCRIPT&#8221;&gt; </span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #339966;">if </span><span style="color: #0000ff;">((document.referrer.indexOf( &#8216;digg&#8217; ) &gt; 1))</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #0000ff;"> {</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #0000ff;"> alert(&#8220;welcome Digg user.If you liked the content then please digg this page&#8221;);</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #0000ff;"> }</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #339966;">else if </span></span></em></address>
<address><em><span style="color: #000000;"> <span style="color: #0000ff;">((document.referrer.indexOf( &#8216;</span></span><span><span><span style="color: #000000;"><span style="color: #0000ff;">stumbleupon</span></span></span></span><span style="color: #000000;"><span style="color: #0000ff;">&#8216; ) &gt; 1))</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #0000ff;"> {</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #0000ff;"> alert(&#8220;welcome SU user.</span></span><span><span><span style="color: #000000;"><span style="color: #0000ff;">If you liked the content then please give a thumbs up to this page</span></span></span></span><span style="color: #000000;"><span style="color: #0000ff;">&#8220;);</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #0000ff;"> }</span></span></em></address>
<address><em><span style="color: #000000;"><span style="color: #800000;">&lt;/SCRIPT&gt;</span></span></em></address>
</blockquote>
<p><strong><a href="http://iamsumeet.com/wp-content/uploads/greet_users_script.txt" target="_blank">Download</a></strong></p>
<p>Similarly you can add others if you want.You can also add google/yahoo/msn to greet users from search engines,but it makes no sense to greet users from search engine.</p>
<p>I am planing to code a wordpress plugin with this script after my exams get over. Although you can use this script directly on your wordpress blog. Just place this script in the &lt;head&gt; tag of the template. If you are using Joomla then you can use this script or you can also use a extension known as <a title="mfReferral" href="http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,4359/Itemid,35/" target="_blank">mfReferral</a></p>
<p>If you want to check this script, then you can use <a title="RefControl" href="http://www.stardrifter.org/refcontrol/" target="_blank">RefControl</a> .</p>
<p>Current issues with this script:</p>
<ul>
<li>Doesn&#8217;t work on IE6.I guess IE6 Doesn&#8217;t pass refer data to JavaScript.You will have to use php.</li>
<li>This script cannot sidtinguish between subdomain and domains.So something.blogspot.com and blogspot.com are the same for this script.</li>
</ul>
<p>Please comment if you find this script useful <img src='http://iamsumeet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://iamsumeet.com/get-more-traffic-from-digg-stumble-by-gaining-more-votes-using-personalized-greeting-message/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Block The Visitors Who Are Using Ad-Blockers</title>
		<link>http://iamsumeet.com/block-the-visitors-who-are-using-ad-blockers/</link>
		<comments>http://iamsumeet.com/block-the-visitors-who-are-using-ad-blockers/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 08:40:38 +0000</pubDate>
		<dc:creator>Sumeet</dc:creator>
				<category><![CDATA[My Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[adblocker]]></category>
		<category><![CDATA[forefox]]></category>

		<guid isPermaLink="false">http://iamsumeet.com/?p=67</guid>
		<description><![CDATA[While checking your website&#8217;s stats you may have thought  that, although my site has a good traffic but my ad revenue very low, why so??  Then you might have tried all the different positioning, color and format of ads to make them more attractive.
Actually the main problem is ,even you make changes to [...]]]></description>
			<content:encoded><![CDATA[<p>While checking your website&#8217;s stats you may have thought  that, although my site has a good traffic but my ad revenue very low, why so??  Then you might have tried all the different positioning, color and format of ads to make them more attractive.</p>
<p>Actually the main problem is ,even you make changes to your  ad formats to make it more visible and attractive, majority of the visitors do not want to see them. Most of the regular Internet users uses ad-blockers.  Especially in case of FireFox, people use an add-on named – Ad-block plus [Even I  am using it :p ].</p>
<p>Ad Blocker gets both positive and negative reactions.Majority of people  love it, as it blocks all those unwanted ads .On the other hand the webmasters  hate this add-on as it disables the source of income for ad supported websites.</p>
<p>Let’s see what we can do to block/redirect these vis&#8230;.<span id="more-42"></span>itors.<br />
While searching for blocking scripts I came across two nice solutions</p>
<ul>
<li><a href="http://www.thepcspy.com/read/how_to_block_adblock">How To Block Adblock</a></li>
<li><a href="http://www.adblock.org/2004/07/adblock_detection_script/">Adblock Detection Script</a></li>
</ul>
<p>Both of them work very nicely but they are a bit complicated and only work with Adblock Plus on firefox.</p>
<p>Hence I  worked out a very simple JavaScript which redirect these kinds of visitors to some other webpage. This script uses code form <a href="http://www.adblock.org/2004/07/adblock_detection_script/">Adblock Detection Script</a> .</p>
<p>This script checks whether adsense ads were displayed on that page or not. If not, then it redirects the visitor to another page.You can create a warning page for such visitors but what I will recommend you to create a special &#8220;lite&#8221; version of your website for such visitors and ask them to disable their adblocker to browse the whole website.Please keep in mind blocking visitors means you may see a declination in your traffic but you may earn more revenue as you will make them disable their adblocker.</p>
<p>Here is the code of the script</p>
<blockquote>
<pre class="style9"><span style="color: #0000ff;"><strong>&lt;script type="text/javascript"&gt;</strong></span></pre>
<pre class="style9"><strong><span style="color: #000000;">setTimeout('check_ads()', 100);
      function check_ads()
      {
      var rnd = </span><span style="color: #000000;">Math.random();
      if (rnd &lt; 1)
      { </span><span style="color: #000000;"><span class="style10">// only execute the following if rnd &lt; .2</span>
      var blocked = false;
      var e = document.getElementsByTagName("iframe");
      for (var i = 0; i &lt; e.length; i++)
      if ((e[i].src.</span><span style="color: #000000;">indexOf("</span><span style="color: #000000;">googlesyndication.com") &gt; -1) &amp;&amp;
      (e[i].setAttribute </span><span style="color: #000000;">&amp;&amp; (e[i].style.visibility == "hidden" ||
      e[i].style.display == "</span><span style="color: #000000;">none"))) blocked = </span><span style="color: #000000;">true;
      if ((e.length == 0) || blocked)
      { </span>
      location = "<span style="color: #ff6600;">http://www.YOURWEBSITE.COM/warningpage.html</span>"; <span class="style10">
<span style="color: #999999;">//enter the url of the page which contain the message for the
//blocked visitors.Alternatively you can create a lite website
//for them and ask them to disable their blocker who browse the
//full website.</span></span>
      window.location(location);
    }}}</strong></pre>
<pre class="style2"><span style="color: #0000ff;"><strong>&lt;/script&gt;

If you are unable to see the whole code :
 <a href="http://iamsumeet.com/wp-content/uploads/code.txt">Download the text file from here</a></strong></span></pre>
</blockquote>
<p>To use this script simple copy paste the code blow, just above your<span style="color: #0000ff;"> &lt;/body&gt;</span> tag OR your Adsense ad code.</p>
<p>A working demo is available here</p>
<blockquote>
<p style="text-align: center;"><span style="color: #0000ff;"><strong><a href="http://iamsumeet.com/wp-content/uploads/testpage.html" target="_blank">DEMO Page</a></strong></span></p>
<p style="text-align: center;">
<p style="text-align: center;"><strong><span style="color: #ff0000;">(Please disable your adblocker before continuing else you will directly land on the warning page).</span></strong></p>
</blockquote>
<p>The issues with this script are:</p>
<ul>
<li>If the visitor use their browsers back button from the warning page then the script fails.</li>
<li>Only works with Adsense because it only checks the access of googlesyndication.com from the webpage. Although you can replace it for other advertisers</li>
<li>I have no idea whether Adsense allows these kinds of scripts or not.</li>
</ul>
<p>Please do comment on this script. <img src='http://iamsumeet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://iamsumeet.com/block-the-visitors-who-are-using-ad-blockers/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
