<?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>Another Wordpress Blog &#187; Blog Hacks</title>
	<atom:link href="http://money.bigbucksblogger.com/category/blog_hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://money.bigbucksblogger.com</link>
	<description></description>
	<lastBuildDate>Mon, 05 Jul 2010 17:53:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Here Are Two Quick Ways to Catch Cloaked Nofollows</title>
		<link>http://money.bigbucksblogger.com/here%e2%80%99s-two-quick-ways-to-catch-cloaked-nofollows/</link>
		<comments>http://money.bigbucksblogger.com/here%e2%80%99s-two-quick-ways-to-catch-cloaked-nofollows/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 21:28:59 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Monetize]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/here%e2%80%99s-two-quick-ways-to-catch-cloaked-nofollows/</guid>
		<description><![CDATA[Recently, rustybrick at SEO Roundtable mentioned that some publishers are selling links, but then adding cloaked nofollows. That is: The links appear to &#8220;follow&#8221; and pass page rank to normal visitors, but say &#8220;nofollow&#8221; to  Google. 

Clearly, this sort of &#8220;nofollow&#8221; is lessens the value to advertisers who think they are paying for the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, rustybrick at <a href="http://www.seroundtable.com/archives/014763.html">SEO Roundtable</a> mentioned that some publishers are selling links, but then adding cloaked nofollows. That is: The links appear to &#8220;follow&#8221; and pass page rank to normal visitors, but say &#8220;nofollow&#8221; to  Google. </p>
<div style="float:right; margin 2px 2px 2px 5px;"><!--adsense#AdbriteBox--></div>
<p>Clearly, this sort of &#8220;nofollow&#8221; is lessens the value to advertisers who think they are paying for the both link juice and traffic, but get traffic only.   </p>
<p>This type of cloaking is fairly easy to do.  But, I want to warn any ninja bloggers out there: it&#8217;s also <em>it&#8217;s easy to catch!</em> <img src='http://money.bigbucksblogger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>How can advertisers detect cloaked no follows?</h4>
<p>There are two ways: One is quick, and will often work; the second takes more time, but is more effective.  </p>
<p>Here&#8217;s how:</p>
<ol>
<li><strong>Visit pages using <a href="https://addons.mozilla.org/en-US/firefox/addon/59">User Agent Switcher</a> and <a href="https://addons.mozilla.org/en-US/firefox/addon/59">Search Status</a>:</strong><br />
Search Status makes &#8220;nofollow&#8221; links easy to detect by highlighting them in pink.  User Agent Switcher lets switch your &#8220;user agent&#8221; to &#8220;Googlebot&#8221; and surf the web seeing it the way the Googlebot does (at least usually.)  </p>
<p>Used together, you should be able to catch <em>most</em> publishers who cloak to show &#8220;nofollows&#8221; only to the Googlebot.  If you use both, you will <i>usually</i> see all cloaked nofollows will be shown in pink when  you set your user agent to Googlebot. They will not be pink when you set your user agent to default. </p>
<p>Unfortunately, this method is not foolproof, because a) Spam plugins like Bad Behavior will notice you aren&#8217;t really the Googlebot and refuse to show you the pages. This is an entirely legitimate way for a publisher to protect their page.  b) Some &#8220;clever&#8221; publishers may cloak by detecting IP in addition to user agent. This could foil detection using the User Agent Switcher.  </p>
<p>Luckily, you can always rely on method 2:</li>
<li><strong>Check cached page at Google:</strong> Periodically, while the your contract is in place, visit Google and check the <em>cached</em> copy of all pages with paid links. Obviously, if the Googlebot is shown &#8220;nofollows&#8221;, it will cache a page containing nofollows. So, this method is foolproof. </li>
</ol>
<h4>Will I be writing a cloaking plugin?</h4>
<p>I&#8217;m tempted to write a cloaking extension to NoOldSpamLinks plugin.  It would be great for traffic. But, I&#8217;ve decided against it.  </p>
<p>I&#8217;m all for letting bloggers control their nofollows.  I think bloggers should be able to do whatever they prefer with their links within the law and contractual obligation.   </p>
<p>But, I&#8217;m afraid I can&#8217;t bring myself to help bloggers show &#8220;follows&#8221; to advertisers who pay for them, and &#8220;nofollows&#8221; to Google.   If you want to sell &#8220;nofollow&#8221; links, negotiate that with the advertiser; then show the nofollows to both the public and Google.  If you as a blogger want to cloak to show nofollow to Google, and &#8220;follow&#8221; to your paying customers,   I&#8217;m not telling you how to do it! <img src='http://money.bigbucksblogger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/here%e2%80%99s-two-quick-ways-to-catch-cloaked-nofollows/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Get Hacked: Google Bot Trick!</title>
		<link>http://money.bigbucksblogger.com/dont-get-hacked-google-bot-trick/</link>
		<comments>http://money.bigbucksblogger.com/dont-get-hacked-google-bot-trick/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 21:23:56 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/dont-get-hacked-google-bot-trick/</guid>
		<description><![CDATA[Justin&#8217;s blog was hacked and he didn&#8217;t notice for a while.  Why not? The hack made blog look normal to everyone except Google.  This caused Justin&#8217;s blog for dropping out of Google&#8217;s index&#8211; which results in a major loss of traffic.
If this happened to Justin, you can bet it could happen to you! [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://justinsomnia.org/2007/08/search-engine-marketeers-are-the-new-script-kiddies/">Justin&#8217;s blog was hacked</a> and he didn&#8217;t notice for a while.  Why not? The hack made blog look normal to everyone <i>except</i> Google.  This caused Justin&#8217;s blog for dropping out of Google&#8217;s index&#8211; which results in a major loss of traffic.</p>
<p>If this happened to Justin, you can bet it could happen to you! Luckily there are steps you can take to could protect yourself both from getting hacked, or failing that, at least discover if you have fallen victim of this sneaky hack! </p>
<h3>How to protect yourself</h3>
<div style="float:right; margin:2px 2px 2px 5px;"><!--adsense#AdbriteBox--></div>
<ol>
<li><strong>Periodically change passwords you use to access by FTP.</strong> This is generally done at the account web host gives you.  If you don&#8217;t know how to do this, ask your host! </li>
<li><strong>Protect your wp-admin area using htaccess.</strong>  Hacking into wp-admin is a common tactic. I discussed the steps you can take to protect that area of your blog in <a href="http://money.bigbucksblogger.com/blog-security-htaccess-block/">Blog Security: htaccess block</a>. </li>
<li><strong>Periodically look at your pages through Google&#8217;s eyes:</strong>
<ul>
<li>Install the FireFox <a href="https://addons.mozilla.org/en-US/firefox/addon/59">User Agent Switcher</a></li>
<li> Create a Googlebot user agent.<br />
Do this buy pulling down &#8220;Tools&#8221; -> User Agent Switer ->Options ->Options.<br />
Next click &#8220;User Agents&#8221; then  &#8220;add&#8221;.<br />
An entry box will appear. Enter Googlebot 2.1 for &#8220;Description&#8221; and &#8220;User Agent&#8221;. Don&#8217;t worry about the other boxes; leave them blank.<br />
Save these settings. </li>
<li>Switch to the Googlebot user agent by selecting &#8220;Tools->User Agent Switcher&#8221;. You&#8217;ll now see &#8220;Google bot 2.1&#8243;. Select that.
</li>
<li>Turn off BadBehavior (or the next step will fail.)</li>
<li>View your blog. If should look the same when viewed with the Googlebot user agent and when viewed normally. If you see something horrible, you have been hacked. (Sorry, I don&#8217;t tell you how to fix that here. The &#8216;fix&#8217; will depend on precisely what the hacker modified. )</li>
<li>Reactivate BadBehavior (to protect you from malicious &#8216;bots.</li>
<li>Head on back to &#8220;Tools->User Agent Switcher&#8221; and pick &#8220;default&#8221;.</li>
</ul>
</li>
<li><strong>Back up everything:</strong> Just in case protecting your ftp and wp-admin areas fails, be sure to periodically back up your blog templates, database, and Wordpress files (including images etc.)  Backing up won&#8217;t prevent you from being hacked, but it lets you recover if someone does hack you. I back up my database daily using <a href="http://www.ilfilosofo.com/blog/wp-db-backup/">WordPress Database Backup.</a>
<p>I back up the whole blog by saving the entire domain as a zip file and emailing to myself from time to time. (No, not every day.)</li>
</ol>
<p>Hey, it&#8217;s Saturday. That&#8217;s as good a time to back up as any. Good luck and safe blogging! </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/dont-get-hacked-google-bot-trick/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Blog Security: htaccess block</title>
		<link>http://money.bigbucksblogger.com/blog-security-htaccess-block/</link>
		<comments>http://money.bigbucksblogger.com/blog-security-htaccess-block/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 17:20:48 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/blog-security-htaccess-block/</guid>
		<description><![CDATA[Reading Matt Cutts blog, I got a chuckle when I  read a blog security tip I&#8217;d been using at my  blog for two years.  Evidently, the tips is news to SEO blogging types?  

(Which maybe means if you get your security tips from knitting blogs,  you an avoid getting hacked [...]]]></description>
			<content:encoded><![CDATA[<p>Reading <a href="http://www.mattcutts.com/blog/whitehat-seo-tips-for-bloggers/#comments">Matt Cutts blog,</a> I got a chuckle when I  read a blog security tip I&#8217;d been using at my <em> blog</em> for <em>two years</em>.  Evidently, the tips is news to SEO blogging types? <img src='http://money.bigbucksblogger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div style="float:left; margin:2px 10px 2px 2px;"><!--adsense#200by200--></div>
<p>(Which maybe means if you get your security tips from knitting blogs,  you an avoid getting hacked the way  <a href="http://www.threadwatch.org/node/11333#comment-50189">Greywolf</a> was in January of 2007?) </p>
<p>Anyway, since I know this can  happen to anyone, I&#8217;m going to describe what the hackers do, and then describe two things <em>you</em> can do to increase security against these hacking attempts. </p>
<p>One will require you to deal with &#8216;.htaccess&#8217; manually, but results in the most convenient set up while working at home. The other involves using a <i>brand new plugin</i> available at <a href="http://www.askapache.com/wordpress/htaccess-password-protect.html">Ask Apache.</a>  That plugin is <i>almost</i> perfect. However, it could be improved. Because I got an error when trying to leave comments at &#8220;Ask Apache&#8221;, I&#8217;m going to suggest improvements to the plugin. (The developer asked!)  </p>
<p>If he or she takes the suggestions to heart, this will be a truly <em>awesome</em> plugin.  (It&#8217;s already very useful.)</p>
<p>So, now onto the meat of the article.</p>
<h3>What do hackers do?</h3>
<p><span id="more-276"></span><br />
<a href='http://money.bigbucksblogger.com/blog-security-htaccess-block/wordpress-login-screen/' rel='attachment wp-att-277' title='Wordpress login screen'><img src='http://money.bigbucksblogger.com/wp-content/uploads/2007/08/wordpresspassword.gif' alt='Wordpress login screen' hspace="5" vspace="5" align="left" /></a>To amuse themselves, hackers load your login screen. Then they running a script that guesses the &#8220;name&#8221; and &#8220;password&#8221; in the login screen. The script just keeps guessing over and over and over. Eventually, they get in.</p>
<p>Once into admin,  they replace the front post of your blog with one of their own; they frequently point to a page announcing they hacked you.</p>
<p>Luckily, most these hackers are out for fun and don&#8217;t really do much else <i>but they could!</i>  Once they break into your admin area, they can do anything the you could do with your blog&#8211; including deleting all the files.  They could change your email and password. They can do an awful lot.</p>
<p>So, you really don&#8217;t want to let this happen.   </p>
<p>Because savy SEO types were hit this year,  WordPress may have done some work to make this more difficult for hackers. But, frankly, if <em>you</em> can get in, it&#8217;s possible for <em>someone</em> to get it. All WordPress can do is make it take longer to guess your user name and password.</p>
<p>So, it&#8217;s still prudent to protect your admin area, using a stronger block than WordPress can provide.</p>
<h3>How To protect Your wp-admin File: Very Secure Method.</h3>
<p>To protect your blog from being defaced, you need to write a small text file that looks sort of like this.<br />
<code><br />
<Files *><br />
Order allow,deny<br />
Allow from 131.215<br />
Allow from uiuc.edu<br />
</Files><br />
</code><br />
If this file is given the name &#8216;.htaccess&#8217; and loaded into your wp-admin directory for your blog, the server will block everyone <i>except</i> a) people with IP&#8217;s that begin with 131.215 or b) people with IPs resolving to uiuc.edu from accessing <i>anything</i> in  your wp-admin directory. </p>
<p>This includes the login screen!  See how this keeps hackers out?</p>
<p>But I bet you aren&#8217;t at the University of Illinois and your IP doesn&#8217;t start with 131.215.  </p>
<h4>How do you set this so <i>you</i> can get in?</h4>
<p>Now, you need to edit the lines to match your IP or your ISP.  For example, if you access your blog through aol.com, you will edit &#8220;uiuc.edu&#8221; to read &#8220;aol.com&#8221;.   Then people at uiuc.edu are blocked from the log in screen, but anyone with IPs supported by &#8220;aol.com&#8221; can access the login screen.  Also, you&#8217;ll also want to discover your IP address and edit 131.215 to match <em>your</em> IP. </p>
<p>Note: Your IP is actually longer. It has 4 sets of three digit numbers like this: 123.456.543.211</p>
<p>If you enter 123.456 everyone whose IP starts with 123.456 can get in. If you enter the full number, only those with 123.456.543.211 can get in. There are advantages to both.  </p>
<p>Also, if you notice your ISP gives resolves to a subdomain (like say, &#8220;aol.com&#8221; gives you &#8220;ca.aol.com&#8221; ), if you the subdomain, you&#8217;ll get more protection than using &#8220;aol.com&#8221;. </p>
<h4>I have multiple users. Can I add them?</h4>
<p>You can add as many exceptions at you like: just start with &#8216;Allow from&#8217; and add the suitable ending.  So add the IP address for your work place or any other places you might wish to access from.</p>
<p>I have approximately 10 &#8220;Allow from&#8221; lines in my .htacess file. </p>
<h4>Save the file</h4>
<p>After editing, save the file as &#8216;htaccess&#8217; with <i>no dot</i>.  That way you can see it on your pc or mac!</p>
<p>Next, ftp this file to your wp-admin directory (aka folder) of your blog. (Don&#8217;t put it in the root of your blog.)</p>
<p>Next, <i>verify you are in the correct directory</i> and change the name to &#8216;.htaccess&#8217;. (The dot is important.) Verifying that you are in the correct folder is important because you do not want to overwrite any pre-existing &#8216;.htaccess&#8217; files in the root directory! If you do, you will screw up your blog permalinks. (You can fix that, but it&#8217;s work.) </p>
<p>Next: visit the admin panel of your blog as you would to write a post. If you can&#8217;t get in that means you have a typo in the IP address or the domain name of your ISP.  Fix the typo in the &#8216;.htaccess&#8217; file and overwrite the old one. Once it&#8217;s ok, you can access your blog!</p>
<h4>How well does this work</h4>
<p>This protection gives <i>great</i> security. The only problem is you might need to access with some other IP address when you go on vacation or travel for work a lot. I bet you don&#8217;t know you hotel&#8217;s IP address!  </p>
<p>The other difficulty is your IP address may not be static. For example, it might be 123. 456.789.123 today and 123.456.789.124 tomorrow. If you wrote your file giving permision only to 123. 456.789.123 you&#8217;ll get in today but be blocked tomorrow.</p>
<p>However, by using the <i>domain name</i> (i.e. aol.com) or just the first six digits, you get around that problem. </p>
<p>That leaves vacation!</p>
<h3>But I <i>do</i>travel and I don&#8217;t know my hotel&#8217;s IP address!</h3>
<p>Well, if you travel a lot, instead of using IP protection, you can set up a secondary password protection scheme. </p>
<p>I could tell you how to write this, but actually, a very nice person has written <a href="http://www.askapache.com/wordpress/htaccess-password-protect.html">Htaccess  Password Protect</a> plugin! </p>
<p>The developer just published this and asked for suggestions. (I&#8217;m going to make some.)</p>
<p>The plugin is already useful. You can use it password protect access to your login screen without fiddling with htaccess.   To do so, first visit the <a href="http://www.askapache.com/wordpress/htaccess-password-protect.html">Ask Apache.</a> Get the plugin. Upload; activate.  Under &#8220;options&#8221; in your &#8220;Wordpress admin&#8221; area, find &#8220;AskApache&#8221;.</p>
<p>For now, use the &#8220;password only&#8221; option.  Select a &#8220;Ask Apache&#8221; username and password&#8211; if you have any brains, both should be different from your Wordpress username and password.  Type those into the appropriate boxes.  Then enable password protection by clicking.  (Do <i>not</i> add the IP protection unless you are absolutely, positively <i>sure</i> your IP is static. Mine is not. It changes about every 2 weeks.)</p>
<p>When you click, the plugin will create an .htacess file that will password protect your wp-admin file.  </p>
<p><a href='http://money.bigbucksblogger.com/blog-security-htaccess-block/password-image/' rel='attachment wp-att-278' title='password image'><img src='http://money.bigbucksblogger.com/wp-content/uploads/2007/08/passwordimage.gif' alt='password image' align="left" hspace="5" vspace="5" /></a>Now,  when you try to log in, you will first see a password screen similar to the one shown.  When you see <i>this</i> screen, enter &#8220;Ask Apache&#8221; user name and password you created, then click.</p>
<p>Now, the <em>Wordpress</em> access login screen will show up! So, what have you done? You&#8217;ve doubled bagged your wp-admin area. </p>
<p>Does this seem silly and a bit inconvenient? Well, it&#8217;s a bit inconvenient, but <i>it&#8217;s not silly</i>.  </p>
<p>Plus, the developer has asked for suggestions. I have some and if they are implemented, this plugin will give <i>awesome</i> protection that is both more convenient and flexible.  And if you keep an eye out, you an get this after it&#8217;s improved.</p>
<h3>Recommendations to developer:</h3>
<p>To help bloggers with dynamic IP&#8217;s, or who access from multiple locations, modify the &#8216;IP&#8217; portion of your protection to permit the user to include multiple IP&#8217;s, truncated IPs and domain names.</p>
<p>That is, let me enter 123.456, then let me enter 234.421 as well. Then also let me include both uiuc.edu and aol.com.  </p>
<p>Once you&#8217;ve done that, permit bloggers to select<br />
a) password only (which is good while on vacation)<br />
b) IP only (more convenient when not on vacation)  or<br />
c) password and IP (for the truly paranoid!) </p>
<p>But most of all: Kudo&#8217;s for thinking of this!</p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/blog-security-htaccess-block/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Test of My Hacks to WordTwit A Plugin: This title is really long for that reason.</title>
		<link>http://money.bigbucksblogger.com/test-of-my-hacks-to-wordtwit-a-plugin-this-title-is-really-long-for-that-reason/</link>
		<comments>http://money.bigbucksblogger.com/test-of-my-hacks-to-wordtwit-a-plugin-this-title-is-really-long-for-that-reason/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 15:23:50 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Traffic]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/test-of-my-hacks-to-wordtwit-a-plugin-this-title-is-really-long-for-that-reason/</guid>
		<description><![CDATA[To attract Technorati and Twitter traffic, I&#8217;m now getting all my posts logged at Twitter, and manually pinging Technorati.  But I was thinking: If I&#8217;m going to ping Technoratiy, wouldn&#8217;t it be great if I could get some of my tag words into the Twitter log?
Of course it would! 

So, I decided to modify [...]]]></description>
			<content:encoded><![CDATA[<p>To attract Technorati and Twitter traffic, I&#8217;m now getting all my posts logged at Twitter, and manually pinging Technorati.  But I was thinking: If I&#8217;m going to ping Technoratiy, wouldn&#8217;t it be great if I could get some of my tag words into the Twitter log?</p>
<p>Of course it would! </p>
<div style="float:left; margin:2px 10px 2px 2px;"><!--adsense#200by200--></div>
<p>So, I decided to modify the string I send using WordTwit: This involves adding code to WordTwit.  But what should I send to Twitter?</p>
<p>Examining twitter, I noticed I get to enter 140 characters. I also noticed the url gets changed into a tinyurl that takes up to 28 characters&#8211; which I will round up &#8220;just in case&#8221;.   I&#8217;m guessing (only guessing) that to get tags to show, I need to keep the title, tags and any extra characters to less than 110 characters. (That leaves room for the 30 character tiny url.)</p>
<p>So, I did a bit of coding to chop long titles down to 40 characters and slap on some categories at the end of the the message . I only add categories if they fit inside the 110 character budget.  </p>
<p>The only way to test this is to post, so I&#8217;m doing that. We&#8217;ll see if this shows at Twitter! Here&#8217;s sort of what my Twit should look like if it works: </p>
<phpcode>
<?php<br />
$shortTitle=trim( substr( the_title('','',false), 0, 40) );<br />
$titleLength=strlen ( $shortTitle );<br />
$tagLength=100-$titleLength;  // twitter permits 140.  The tiny url uses up to 30, other text uses about 10</p>
<p>foreach((get_the_category()) as $cat) {<br />
      $shortCats .= $cat->cat_name . &#8216; &#8216;;<br />
       //echo(&#8217;<br /> short cats= &#8216;.$shortCats);<br />
} </p>
<p>$shortCats=trim( substr($shortCats, 0, $tagLength) );<br />
$i = &#8216;\&#8221; . $shortTitle . &#8216;\&#8217; &#8211; &#8216; . get_permalink().&#8217; &#8216;.$shortCats;</p>
<p>echo(&#8217;<br />&#8216;.$i);<br />
?>
</phpcode>
<p>This may or may not work. If it doesn&#8217;t, you&#8217;ll see a another test (with the tags listed before the url!)</p>
<p>Wish me luck! <img src='http://money.bigbucksblogger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/test-of-my-hacks-to-wordtwit-a-plugin-this-title-is-really-long-for-that-reason/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ALinks NOT a memory Hog&#8211; usually!</title>
		<link>http://money.bigbucksblogger.com/alinks-not-a-memory-hog-usually/</link>
		<comments>http://money.bigbucksblogger.com/alinks-not-a-memory-hog-usually/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 02:08:38 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Monetize]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[aLinks]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/alinks-not-a-memory-hog-usually/</guid>
		<description><![CDATA[ALinks has been cleared! Sort of. (And, at least I think it&#8217;s cleared!) 

The difficulty was mostly due to a bug in PHP 5.2.2.  The bug causes Wordpress&#8217;s xmlrpc.php file to break down. For some reason I don&#8217;t quite understand, aLinks uses the xmlrpc.php. (Why aLinks uses this is a mystery. )
The fix was [...]]]></description>
			<content:encoded><![CDATA[<p>ALinks has been cleared! Sort of. (And, at least I think it&#8217;s cleared!) </p>
<div style="float:left; margin:2px 10px 2px 2px;"><!--adsense#200by200--></div>
<p>The difficulty was mostly due to a bug in PHP 5.2.2.  The bug causes Wordpress&#8217;s xmlrpc.php file to break down. For some reason I don&#8217;t quite understand, aLinks uses the xmlrpc.php. (Why aLinks uses this is a mystery. )</p>
<p>The fix was easy. I added this line to the top of xmlrpc.php in my blog directory. </p>
<p><code>$HTTP_RAW_POST_DATA = file_get_contents("php://input"); </code></p>
<p>By &#8220;top&#8221;, I mean I placed it immediately after the &lt;?php.   ( If you cut and paste from a blog, retype the double quotes.  These are sometimes replaced with slightly different quotes which will not work. Just retype.)</p>
<p>I found both the solution and a description of the problem at <a href="http://will.hughesfamily.net.au/20070513/wordpress-xml-rpc-server-accepts-post-requests-only/">hughesfamily.net.au</a> and <a href="http://www.red-sweater.com/forums/viewtopic.php?pid=1087#p1087">red-sweater.com</a>. </p>
<h3>Does this problem affect more than aLinks?</h3>
<p>Yes.  The &#8216;xmlrpc.php&#8217; file contains some functions associated with pinging.  So, if you are noticing difficulties receiving pings (which I was) you may be having problems with this file.  (Presumably, my problems will be cured now.)</p>
<h3>Do I have to fiddle with my xmlrpc.php file to fix the bug?</h3>
<p>No. WP 2.2.2 includes the work around for the PHP 5.2.2 bug. When you upgrade, things will be fixed. </p>
<div style="float:left; margin:2px 2px 2px 10px;"><img src="http://redirect.alexa.com/redirect?http://lordmatt.co.uk/images/alexa.jpg" /></div>
<p>Thanks <a href="http://lordmatt.co.uk/">Lord Matt</a> for noticing that aLinks was getting all bogged up trying to ping and ping and ping and&#8230;. Now I think I have the problem licked.  </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/alinks-not-a-memory-hog-usually/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is Your Blog a CPU Hog?</title>
		<link>http://money.bigbucksblogger.com/is-your-blog-a-cpu-hog/</link>
		<comments>http://money.bigbucksblogger.com/is-your-blog-a-cpu-hog/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 20:09:48 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/is-your-blog-a-cpu-hog/</guid>
		<description><![CDATA[Poor Tricia; her host told her her blogs are using too many server resources. The problem is what with running a lot of popular blogs and installing load of plugins, her blog just chows down CPU!

Tricia sent out an ABP about this at the PPP forums, so I went and visited Tricia&#8217;s Musings. After loading [...]]]></description>
			<content:encoded><![CDATA[<p>Poor Tricia; her host told her her blogs are using too many server resources. The problem is what with running a lot of popular blogs and installing load of plugins, her blog just chows down CPU!</p>
<div style="float:left;margin:2px 10px 2px 2px;"><!--adsense#200by200--></div>
<p>Tricia sent out an ABP about this at the PPP forums, so I went and visited <a href="http://www.feverishthoughts.com/">Tricia&#8217;s Musings</a>. After loading the page, I used the &#8220;view source&#8221; button on my browser, scrolled to the bottom and found the last few lines in the html. I read  this:<br />
<code><br />
&lt;/body&gt;<br />
&lt;/html&gt;&lt;/center&gt;<br />
&lt;!-- Dynamic Page Served (once) in 3.866 seconds --&gt;<br />
</code></p>
<p>3.886 seconds? That&#8217;s a lot.   I just checked BigBucksBlogger; it took 0.73 seconds to serve the page without Cacheing. It took 1.07s with Caching. (More on caching later.) </p>
<p>Tricia is using WP-Cache, but almost 4 seconds is a major amount of time to serve one page. (Mind you, this number isn&#8217;t exactly the cpu. But it is proportional to cpu, so big numbers are bad.)</p>
<p>Anyway,  Tricia is using lots of resources; it&#8217;s probably due to one very badly written plugin.  Which? I have no idea.</p>
<p>Now I bet, you are asking me exactly what Tricia and Anabella asked: How can you tell how much time a page uses? And how can you tell if a plugin is a hog?   </p>
<h3>How to Tell How Much Time it Takes to Serve a Page</h3>
<p>On Wordpress blogs, you can print out the amount of time it takes to serve a full page by adding this to your after your footer is loaded. </p>
<p>&lt;?php printf(__(&#8217;%s seconds&#8217;), timer_stop(0, 2)); ?&gt;</p>
<p>Where ever you place this bit of code, it will print the time lapsed since you first requested the page.   By putting it in the footer, you can see the full time required.<span id="more-199"></span></p>
<p>Many templates include this command, but wrap it in comment tags. That  hides it from visitors, who generally don&#8217;t care. But since I know most Templates show this,  I knew that if I read  Tricia&#8217;s <i>source</i> I would be likely to find the time required to serve the page. </p>
<p>Some templates don&#8217;t include the command; mine didn&#8217;t. But you can add the code easily. Just go to &#8220;presentation&#8221; open up the main index template and slap that php in! (Do the same for single posts if you want the time to appear in those too.)</p>
<p>I added it to my template and if you scroll down, you&#8217;ll see the time appears.  </p>
<p>Note: don&#8217;t expect the time to to say 0.7 seconds.  If you load my page several times, and I&#8217;m not caching,  you&#8217;ll see the number varies a bit&#8211; in fact quite a bit. But you aren&#8217;t going to see 4 seconds as I saw at Tricia&#8217;s site!  If I&#8217;m caching, you&#8217;ll probably see the same time listed every time you reload the page and you&#8217;ll see more than 0.7 seconds.  That&#8217;s because when I cache, the page takes about 0.7 pages to &#8220;create&#8221; and a little more to cache it. But once it&#8217;s cached, it takes zero cpu to for the next hour. That&#8217;s because instead of creating a page, the cached page is served for that hour; that takes zero CPU.  For heavily visited blogs, caching saves CPU. </p>
<h3>How can I tell if a plugin is a CPU hog?</h3>
<p>You can add the code to your footer, deactivate the plugin and turn the cache off. Reload your page two or three times and see how much time it takes to load. Now activate the plugin, reload two or three times. See how much time it takes with the plugin activated.</p>
<p>If the page load using the plugin is <i>much larger</i> than without, that plugin is a <i>hog</i>. Turn it off. Find something else!</p>
<h3>Couldn&#8217;t you give me something easier and more efficient to use? </h3>
<p>Yes. This could all be made easier if I wrote you a plugin that did this:</p>
<ul>
<li>Recorded the time it took to generate the header.</li>
<li>Recorded the time it took to exit from &#8220;the_loop&#8221;. (That&#8217;s Wordpress lingo for finishing delivering all the posts. Most templates deliver the sidebar after that.</li>
<li>Recorded the time it took to finish creating the footer</li>
<li>Displayed all that in a visible table at the end of the footer.</li>
</ul>
<p>With this data, not only would you know how much time it took to run each plugin, but you&#8217;d also have data that would help you figure out if the cpu hogging plugin is something you use when loading content, creating the sidebar or generating the footer.  This really helps because many, many of the CPU hogs are inefficiently written comments plugins.  A few operate elsewhere.  It&#8217;s easier to figure out which is which if you know where the cpu gluttony is taking place.</p>
<h3>My Question to You</h3>
<p>It would take me time to do this. How many people out there have problems with CPU resources? &#8216;Cuz if it&#8217;s a lot of you, I&#8217;ll be happy to write it (especially if after you use it, you blog about my mad plugin-writin&#8217; skillz!)</p>
<p>So, how many of you want this? Only one? The it would be better if you just looked at the footer? Millions and zillions? I&#8217;ll write it tomorrow! Let me know. </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/is-your-blog-a-cpu-hog/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>NoOldSpamLinks: With User Interface.</title>
		<link>http://money.bigbucksblogger.com/nooldspamlinks-with-user-interface/</link>
		<comments>http://money.bigbucksblogger.com/nooldspamlinks-with-user-interface/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 18:56:37 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/nooldspamlinks-with-user-interface/</guid>
		<description><![CDATA[Following Andy Beard&#8217;s suggestion, I created a user interface for my NoOldSpamLinks plugin.  I thought it would take a month, but creating the interface was easier than I expected.  The user interface lets you easily add or delete links from the plugin.  I&#8217;ve tested it at my three blogs, and it seems [...]]]></description>
			<content:encoded><![CDATA[<p>Following Andy Beard&#8217;s suggestion, I created a user interface for my NoOldSpamLinks plugin.  I thought it would take a month, but creating the interface was easier than I expected.  The user interface lets you easily add or delete links from the plugin.  I&#8217;ve tested it at my three blogs, and it seems to work fine. But, testing at only three blogs means &#8220;less than beta&#8221;. Still, if you are brave, and would like to try the plugin, I&#8217;m posting it!    </p>
<p>What does the plugin do: This plugin lets the user create a blacklist of links which will be tagged &#8220;nofollow&#8221; after 10 days.  The &#8220;nofollow&#8221; is added in the articles themselves and comments. </p>
<p>Reasons why you might want to use it:</p>
<ul>
<li>There may be site you once liked linking and giving page-rank juice, but now you&#8217;d like to make the links nofollow so the search engines count those votes for the site. You can now make all back-links to that link on posts older than 10 days &#8220;nofollow&#8221;.  Once you do, you will stop contributing to that site&#8217;s high page rank. Any new links you post to that site will remain &#8220;follow&#8221; for 10 days. </li>
<li>If you are running the &#8220;DoFollow&#8221; plugin, you may be getting regular site visitors who post borderline comments. They may not be bad enough for you to want to delete the comments, but you may want to &#8220;nofollow&#8221; that particular link, thus depriving it of link juice. Now you can. Those link will automatically nofollow when the post associated with the comment is more than 10 days old.</li>
</ul>
<p>To use the plugin:</p>
<ul>
<li>Download <a href="http://money.bigbucksblogger.com/wp-content/uploads/files/NoOldSpamLinksV0.3.txt">NoOldSpamLinks Ver. zero.3</a></li>
<li>Save it with the extension &#8216;.php&#8217;.</li>
<li>Upload to your plugin directory; activate. The plugin is ready to accept links.</li>
<li>To add links, visit your Wordpress admin panel. Click &#8220;Options&#8221;; find &#8220;NoOldSpamLinks&#8221; in the submenu. Click. You will be asked to add a link.  Add one (the http:// is not required.) Click add.</li>
</ul>
<p>As with all plugins: Back up your database before installing. (You should backup regularly anyway.) Also, if you have a problem using any plugin with recent installations of Wordpress,  just delete the plugin from the plugin directory. </p>
<p>Let me know if you have any trouble. </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/nooldspamlinks-with-user-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NoOldSpamLinks Plugin</title>
		<link>http://money.bigbucksblogger.com/nooldspamlinks-plugin/</link>
		<comments>http://money.bigbucksblogger.com/nooldspamlinks-plugin/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 23:04:52 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/nooldspamlinks-plugin/</guid>
		<description><![CDATA[Have you ever wished you could easily switch a whole bunch of old links in your blog to &#8220;nofollow&#8221;?  For whatever reason? Because you discovered a blogger you&#8217;d frequently linked was a Republican. Or Democrat? Or maybe you used to link JohnChow but are upset to learn he is now charging visitors for links [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wished you could easily switch a whole bunch of old links in your blog to &#8220;nofollow&#8221;?  For whatever reason? Because you discovered a blogger you&#8217;d frequently linked was a Republican. Or Democrat? Or maybe you used to link <a href="www.johnchow.com/get-nofollow-removed-on-your-comments/ ">JohnChow</a> but are upset to learn he is now charging visitors for links at his site? </p>
<div style="float:right;margin:0px 10px 0px 10px;"><!--adsense#200by200--></div>
<p>So, you figured, &#8220;Charge me for links? I&#8217;ve been giving him free links! It&#8217;s my freely given links that gives him his PR=6! If  he&#8217;s charging people, I want to take them all back!&#8221; </p>
<p>Hey, if you were a bit put out by Chow&#8217;s action, you are in good company!<sup>(<a href="http://dmiracle.com/conversation/should-i-begin-billing-you-for-nofollow-links/">1</a>, <a href="http://www.webstractions.com/news/2007/05/john-chow-offers-dofollow-links.html">2</a>, <a href="http://www.jimkukral.com/google-crackdown-part-ii-johnchowcom-freefall-begins/">3</a>, <a href="ttp://www.raproject.com/articles/blogging/a-surefire-way-to-tell-your-readers-you-dont-give-a/">4</a> <a href="http://www.itsphishie.com/community-news/john-chow-delivers-a-swift-punch-to-the-groin-of-his-rea.html">5</a>, <a href="http://thepisstakers.com/weekly/webtech3oct06_files/Do-Follow-No-Follow-or-silly-fellow.html">6</a> and <a href="http://andybeard.eu/2007/05/nofollow-dofollow.html">7</a>)</sup></p>
<p>Unfortunately, you may also have thought it was too much of a hassle to go back through your old blog articles and find all the links to that hungry capitalist blogger (or the Democrat or Republican!)  So, you did nothing. </p>
<p>Well, no more! </p>
<p>Today, after a few conversations at forums, I was inspired to write <a href="http://money.bigbucksblogger.com/wp-content/uploads/files/NoOldSpamLinks.txt">first plugin</a>. I call it &#8220;NoOldSpamLinks&#8221;; it&#8217;s for WordPress blogs. No, it&#8217;s not thoroughly tested.  I finished it, and tested it at my blog. It works at my blog. It doesn&#8217;t do anything very fancy, so presumably it will work at yours.   </p>
<p>(Would you like proof that the plugin works? Visit my <a href="/index.php?p=1">first post.</a> It&#8217;s more than 10 days old; you&#8217;ll see the &#8216;nofollows&#8217;. )  </p>
<p>If you install NoOldSpamLinks in your plugin folder and activate it, it will change all links to <a href="http://johnchow.com">JohnChow&#8217;s</a> blog that are  older than 10 days to &#8216;nofollow&#8217;.</p>
<p>I bet you are wondering why 10 days? Well, that&#8217;s <i>my</i> evil scheme!</p>
<p>By giving follows for a brief time, you can be sure that the your blog will be listed as linking to those domains on services like Technorati because they won&#8217;t be able to tell the difference between your link and other links.  That will ensure a person who is looking for reactions to the blog post you link can find your post.  But, if you prefer a different period of time, you can change that.</p>
<p>Don&#8217;t have anything against John Chow, but know another site you&#8217;d like to delink?  You may also edit the domain names on your blacklist. Add or subtract, but do make sure there is at least 1 domain in the list. Otherwise, deactivate the plugin.</p>
<ol>
<li>Get the plugin by clicking <a href="http://money.bigbucksblogger.com/wp-content/uploads/files/NoOldSpamLinks.txt">NoOldSpamLinks</a>. The page should open: Copy the code and paste it into a text editor. Name it NoOldSpamLinks.php. Save.</li>
<li>If you wish to customize, find the number of days, and change it from 10 to the time you prefer.  Find the list of domains, delete or add as you wish. Save the edited file.</li>
<li>Upload to your plugins directory and activate.  You can check and see that all old links pointing to your list of domain names are now set to &#8216;nofollow&#8217;. </li>
</ol>
<p>You know&#8230; it&#8217;s too bad this is a new blog with only 10 visits a day.   I&#8217;d love zillions to learn of this, install it and see how fast a PR6 can fall! </p>
<p><HR><br />
June 14 Edited to reflect the way this really works. </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/nooldspamlinks-plugin/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t lose Money: Hide the Sponsored Tag!</title>
		<link>http://money.bigbucksblogger.com/dont-lose-money-hide-the-sponsored-tag/</link>
		<comments>http://money.bigbucksblogger.com/dont-lose-money-hide-the-sponsored-tag/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 15:09:50 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Demo]]></category>
		<category><![CDATA[Kontera]]></category>
		<category><![CDATA[Monetize]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/dont-lose-money-hide-the-sponsored-tag/</guid>
		<description><![CDATA[Want to  make more money with sponsored posts?  
Remember, I told you how to remove the Kontera ads automatically from sponsored ads by editing your Wordpress template?  Editing the template lets you conveniently run Kontera ads on a blog runs sponsored ads.  But, to use that trick, you need to create [...]]]></description>
			<content:encoded><![CDATA[<p>Want to  make more money with sponsored posts?  </p>
<p>Remember, I told you how to <a href="http://money.bigbucksblogger.com/remove-kontera-by-modifying-templates/">remove the Kontera ads</a> automatically from sponsored ads by editing your Wordpress template?  Editing the template lets you conveniently run Kontera ads on a blog runs sponsored ads.  But, to use that trick, you need to create a &#8220;Sponsored&#8221; category. </p>
<div style="float:right; margin:0px 5px 10px 5px;"><!--adsense#200by200--></div>
<p>Some advertisers won&#8217;t let you show the post is sponsored, which means you can&#8217;t let that category display on that sponsored post. </p>
<p>So, what&#8217;s a gal to do? Edit her template some more! </p>
<p>My knitting blog, which has been accepted in PayPerPost, used to show <em>every</em> tag including the &#8220;Sponsored&#8221; tag.  But I changed that by looking up the appropriate WordPress template tags and coding a bit of logic to suppress display of the &#8220;Sponsored&#8221; category in a list of tags.  </p>
<p>Below, you&#8217;ll find  PHP code to create a string of tags that omits the category &#8216;Demo&#8217; (rather than &#8216;Sponsored&#8217;); the tags will display this way: </p>
<phpcode>
<?php<br />
/* ========Code to omit 'Demo' from listed tags. ========<br />
You can edit three lines. </p>
<p> Edit your links to match your categories.<br />
For the purpose of demonstrating this, I won't show tags called "Demo".<br />
*/<br />
$preCatName='<a href="http://www.yourdomain.com/blog/category/';<br />
$postCatName='" rel="category tag">&#8216;;<br />
$omitTag=&#8221;Demo&#8221;;<br />
// don&#8217;t edit below this.</p>
<p>$tagString=&#8221;Tags: &#8220;;<br />
$iFirst=0;</p>
<p>foreach((get_the_category()) as $cat) {<br />
   if($cat->cat_name !=$omitTag ) {<br />
        if(0<$iFirst) $tagString .=', ';<br />
        $catName = $cat->cat_name;<br />
        $tagString .= $preCatName.&#8221;. strtolower($catName).&#8221;. $postCatName.&#8221;.$catName .&#8217;</a>&#8216;;<br />
   $iFirst++;<br />
    }<br />
}<br />
$tagString .=&#8217;.';<br />
if(0<$iFirst){ echo($tagString);}<br />
// ========== End listing tags without 'Demo'.<br />
?>
</phpcode>
<p>If you compare these tags to the ones running at the top of my post, you&#8217;ll see the &#8216;Demo&#8217; tag is gone.  Beauty!</p>
<p>Here&#8217;s the code (comment in blue):<code><br />
&lt;?php<br />
/* </p>
<p><font color="blue">Edit three lines.<br />
My categories look like this:<br />
&lt;a href="http://www.yourblog.com/blog/category/cat_name/" rel="category tag"&gt;&nbsp; <br />
For the purpose of demonstrating this, I won't show tags called "Demo".</font><br />
*/<br />
$preCatName='&lt;a href="http://www.yourblog.com/blog/category/';<br />
$postCatName='" rel="category tag"&gt;';<br />
$omitTag="Demo"; <br />
// <font color="blue">don't edit below this.<br /></font></p>
<p>$tagString="Tags: ";<br />
$iFirst=0;</p>
<p>foreach((get_the_category()) as $cat) {&nbsp; &nbsp;<br />
  if($cat-&gt;cat_name !=$omitTag ) { &nbsp;</p>
<p>  if(0&lt;$iFirst) $tagString.=', ';<br />
  $catName = $cat-&gt;cat_name;<br />
  $tagString.=$preCatName.''.strtolower($catName).''.$postCatName.''.$catName.'&lt;/a&gt;';<br />
  $iFirst++;<br />
  }<br />
}<br />
$tagString .='.';<br />
if(0&lt;$iFirst){ echo($tagString);}<br />
?&gt;</code><HR width="20%"><br />
Use this in your WordPress template and make more money! </p>
 <div class='series_toc'></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/dont-lose-money-hide-the-sponsored-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kontera: Show on older posts only!</title>
		<link>http://money.bigbucksblogger.com/kontera-show-on-older-posts-only/</link>
		<comments>http://money.bigbucksblogger.com/kontera-show-on-older-posts-only/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 16:15:34 +0000</pubDate>
		<dc:creator>Bucks</dc:creator>
				<category><![CDATA[Blog Hacks]]></category>
		<category><![CDATA[Kontera]]></category>
		<category><![CDATA[Monetize]]></category>

		<guid isPermaLink="false">http://money.bigbucksblogger.com/kontera-show-on-older-posts-only/</guid>
		<description><![CDATA[Do you think Kontera ads look &#8220;junky?&#8221; Tricia did.  Bloggers have used them to make money, but the links can be distracting:  let&#8217;s face it, contextual doesn&#8217;t necessarily equal meaningful!  
Depending on the blog content, the context links can be really aggravating to blog visitors!  If you don&#8217;t control them properly, [...]]]></description>
			<content:encoded><![CDATA[<p>Do you think Kontera ads look &#8220;junky?&#8221; Tricia did.  <a href="http://paulamooney.blogspot.com/">B</a><a href="http://beginners-make-money-on-internet.blogspot.com/2007/05/kontera-and-rich-jerk.html">l<a href="http://www.johntp.com/2007/05/26/how-to-automate-bold-text-exclusion-in-contentlink/">o</a><A href="http://www.bestoday.com.au/archives/000891ad_revenue_earnings_foiled_by_ad_blockers.php">g</a><a href="http://sabrinasmoneymadness.blogspot.com/2007/05/i-might-have-to-take-kontera-off-anyway.html">g</a><a href="http://www.savvyaffiliate.com/Blog/monetize/dont-use-in-content-advertising/">e</a><a href="http://www.itsphishie.com/content/view/21/">r</a><a href="http://thoughtsfrommylife.com/article-274-Loss_in_Traffic_Does_Not_Mean_A_Loss_in_Revenue">s</a> have used them to make money, but the links can be distracting:  let&#8217;s face it, contextual doesn&#8217;t necessarily equal meaningful!  </p>
<p>Depending on the blog content, the context links can be really aggravating to blog visitors!  If you don&#8217;t control them properly, you could lose regular readers or never attract them in the first place!</p>
<p>I thought about this problem and decided I would prefer to keep the Kontera ads out of the <em>most recent</em> blog articles, but allow them show up in archives.  It&#8217;s a compromise that lets my regular subscribers get a less ad intensive experience, but shows ad links to visitors who wander to the blog by way of search engines. </p>
<p>So, I wrote some PHP code that lets me run Kontera ads, but:</p>
<ol>
<li>Keeps ads out of all posts that are less than 20 days old.</li>
<li>Keeps ads out of all <i>sponsored</i> posts that are less than 60 days old. (At my knitting blog, sponsored ads are in &#8220;category 60&#8243;.) </li>
<li>Doesn&#8217;t slow down to load the Kontera Javascript when I&#8217;m not showing any ads at all! </li>
</ol>
<p>If you visit the main page of my knitting blog you&#8217;ll see no Kontera ads.  If you visit an older article in the archives you <i>may</i> see ads, (though not many because knitting doesn&#8217;t generate a huge number of words that get linked. If you want to see mega-Kontera linkage visit my diet blog!)</p>
<p>You can change dates and category numbers to match your needs and the TOS of any programs in which you participate.</p>
<p>So, now for the code! </p>
<p>This is the code you want to wrap around the part of your template that actually creates the content of the post. If your blog template in sell organized, you&#8217;ll find it in a file called &#8220;post.php&#8221; called from  your main template file.  The code to add is shown in red font: </p>
<p>Code: <code></p>
<p><font color="red">&lt;?php<br />
$earlyAd = time() - 86400*60; //  wait 60 days before slapping extra ads in sponsored.<br />
$earlyPost = time() - 86400*20; //  wait 20 days before slapping ads in other blogs.</p>
<p>if (mysql2date('U', $post->post_date) < $earlyAd) {$oldAd=1;} else {$oldAd=0;}<br />
if (mysql2date('U', $post->post_date) < $earlyPost) {$oldPost=1;} else {$oldPost=0;}</p>
<p>    // When sponsored_supress_Kontera==1, the page won't even waste time loading the Kontera script.<br />
if (is_home()) {$GLOBALS['sponsored_supress_Kontera']=1; }</p>
<p>    // edit the value of '60' to match the category you are checking to remove Kontera adds from sponsored ads.<br />
if (in_category(60)&#038;&#038; $oldAd==0) {<br />
        $filter='"KonaFilter"';<br />
        if ($single) {$GLOBALS['sponsored_supress_Kontera']=1;<br />
        }<br />
 }</p>
<p>else if( in_category(60)) {$filter='"Konabody"'; }<br />
else if($oldPost==0) {$filter='"KonaFilter"';<br />
       if ($single) {$GLOBALS['sponsored_supress_Kontera']=1;}<br />
}</p>
<p>else {$filter='"Konabody"';}<br />
?></p>
<p>&lt;?php<br />
	// insert the span tag into post:<br />
echo('&lt;span name='.$filter.'>');<br />
?><br />
	</font><br />
&lt;!-- actual post post.php --&gt;<br />
STUFF EVERYTHING THAT SHOWS YOUR INDIVIDUAL POST IN HERE.<br />
&lt;!-- end actual post.php --&gt;</p>
<p><font color="red">&lt;!--&nbsp; close the span tags--&gt;<br />
&lt;?php echo(&lt;'/span>'); ?></font><br />
</code></p>
<p>This is a footer code to speed loading in cases where the span tags are preventing Kontera ads from appearing on the full page:<br />
<code><br />
 <font color="red">&lt;php<br />
 global $sponsored_supress_Kontera;</p>
<p>if($sponsored_supress_Kontera==1){<br />
       echo('<br />No Kontera ads. <br />');}<br />
else{echo('<br />Kontera ads show. <br />');<br />
?></font></p>
<p>&lt;!-- Kontera ContentLink™ --&gt;<br />
Stuff the javascript for the Kontera ads in here.<br />
&lt;!-- Kontera ContentLink™ --&gt;<br />
<font color="red"><?php<br />
}<br />
?></font></code></p>
<p>Bonus tip: While searching for blogs that complained about not being able to control Kontera ads, I found this trick at <a href="http://www.johntp.com/2007/05/26/how-to-automate-bold-text-exclusion-in-contentlink/">John Chow&#8217;s blog</a>: to avoid Kontera ads in the headings inside &lt;h1>, &lt;h2>, and &lt;h3> tags or bold text inside &lt;b>, and &lt;strong> tags you can add this line to your contera javascript:</p>
<p><font color="red">var dc_isBoldActive= ‘no’ ;</font></p>
<p>So, you might as well do modify the Kontera ad while you are adding the extra PHP code! </p>
<p>Do all of three things, and you can run Kontera where you like, and avoid a &#8220;junky&#8221; look! </p>
<p>Update:<br />
I wrote the <a href="http://money.bigbucksblogger.com/kontera-control-plugin/">Kontera Control</a> plugin to do this all for you. Now you can use pulldown menus instead of coding.</p>
 <div class='series_toc'><h3>Read all posts in series Control Kontera Ads</h3><ol><li><a href='http://money.bigbucksblogger.com/keeping-kontera-out-of-sponsored-ads/' title='Keeping Kontera out of Sponsored Ads: Easy Method'>Keeping Kontera out of Sponsored Ads: Easy Method</a></li><li><a href='http://money.bigbucksblogger.com/remove-kontera-by-modifying-templates/' title='Remove Kontera by modifying templates.'>Remove Kontera by modifying templates.</a></li><li>Kontera: Show on older posts only!</li></ol></div>  ]]></content:encoded>
			<wfw:commentRss>http://money.bigbucksblogger.com/kontera-show-on-older-posts-only/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.571 seconds -->
