If you're interested in adding Chitika code to your MovableType blog, here is how I did it. First, some hat tips to Problogger.net for promoting the Chitika code and bringing it to my attention. Props to LiewCF.com as well, a WordPress-based blog that has several tips on using Chitika. I also came across a few Wordpress plugins for Chitika, which at first inspired me to write my very first MovableType plugin to handle the Chitika ad code. But then I realized it was just as easy to leverage several other Movabletype plugins along with MovableType's existing Keyword field for adding in keywords pertinent to each blog entry.
I should mention that due to Google Adsense's TOS (Terms of Service) you cannot place contextual ads on the same pages as Google Adsense. Fortunately, you can disable the contactual ad search in Chitika by adding this line of code to the Chitika javascript.ch_non_contextual = 1;
So in order to Chitika in combination with Google Adsense you have to turn off the contextual search. But with contextual search turned off, you are forced to either "statically" define keywords to search on OR you can leverage your CMS or blogger software to automatically insert the title of the blog posts or keywords that you enter in a special field within the blogging software.
I added the Chitika code to the both the Main Template and the Individual Template and then used the <MTIfNotEmpty> plugin to determine if I added any keywords to each blog entry. If I didn't it doesn't place them in the Chitika javascript array. Another plugin I leveraged was <MTGlue> which automatically appends a delimiter(such as a comma) at the end of each item - except for the last item. This allows me to create the list of keywords separated by commas to put into the Chitika Javascript array. I also add into the Chitika array the title of the blog post <$MTEntryTitle$> as well as the Primary Category of the blog post.
If you have the MTGlue and MtIfNotEmpty plugins installed, you are good to go to use my code. Just insert the Chitika code into the appropriate MovableType templates, i.e. Individual Template, Main template, as well as the Category and Date templates if you want.
Note: I had to insert a carriage return (line feed) after </MTGlue> because otherwise the code won't wordwrap and will bleed into my skyscraper ads, since there are no spaces or line feeds to permit it to autowrap. So make sure to remove the carriage return for this to work.<script type="text/javascript"><!--
ch_client = "tkeating";
ch_width = 468;
ch_height = 180;
ch_non_contextual = 1;
ch_nosearch = 1;
var ch_queries = new Array(
<MTIfNotEmpty var="EntryKeywords"><MTGlueContainer><MTKeyWordList>"<$MTKeyWord$>"<MTGlue>,</MTGlue></MTKeyWordList></MTGlueContainer></MTIfNotEmpty><MTIfNotEmpty var="EntryKeywords">,"<$MTEntryTitle$>"</MTIfNotEmpty><MTIfEmpty var="EntryKeywords">"<$MTEntryTitle$>"</MTIfEmpty>);
var ch_selected=Math.floor((Math.random()*ch_queries.length));
ch_query = ch_queries[ch_selected];
//--></script>
<script src="http://scripts.chitika.net/eminimalls/mm.js" type="text/javascript">
</script>
android apple asterisk at&t blackberry cell phone cisco dell digium e911 facebook fcc google google talk gps im ip-pbx ipad iphone ipod itexpo ITEXPO lync microsoft mobile phone open source outage phone review sip skype sony unified communications verizon video video conferencing voip vonage wireless xbox 360
- Apple (280)
- Bittorrent (2)
- Call Center and CRM (48)
- Computer Hardware (183)
- Computer Software (71)
- Gadgets (650)
- Google (225)
- Home Entertainment (263)
- Internet (173)
- Linux (111)
- Microsoft (376)
- MovableType (48)
- News (187)
- Personal and Humor (118)
- Politics (9)
- Reviews (246)
- Security (2)
- Social Networking (42)
- Sports/Outdoor Technology (9)
- Tablets (32)
- Technology and Science (355)
- Unified Communications (471)
- VoIP (2285)
- Wireless (584)
- p2p (20)
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
Featured Videos