daily gadgets, computers, and electronic news
03/10
2005

[CA] Chitika – Add Chitika Code to Your Post

Sponsored Links

ChitikaWith the increase of Chitika eMiniMals’ popularity, especially after Darren Rowse from ProBlogger.Net reviewed it, I think it’s time to throw a Wordpress plugin for Chitika. So here it is, [CA] Chitika, a Wordpress plugin to automatically add Chitika’s eMiniMalls code on your post :)


How It Works

Since the plugin is still in the early stage, I only focus on how to make it works. To add the Chitika’s code on your post, you simply use this tag:

<!--chitika(width,height)-->

so for example, if you want to display the banner layout (468 x 60), you’ll write:

<!--chitika(468,60)-->

The plugin will automatically substitute the tag with the corresponding Chitika eMiniMalls ad code. Note that you can only use the supported ad layout dimension.

Plugin also supports the targetted query/keyword (ch_query code). It can be based on four variables: tag parameter, custom field, post title, and default query. Even you can let Chitika decide the best keyword for your post, it’s not recommended if you’re using AdSense, since it againsts the AdSense TOS (contextual ads). More about targetting query/keyword on the Usage section below.

No admin interface yet, but I might add it in the future.

Requirement

Since this is a WordPress plugin, of course you need WordPress :) Currently tested under version 1.5.2. The plugin doesn’t use any Wordpress built-in functions, so it should work with other version as well.

Installation

1-Click Install: available using Wordpress Plugin Manager. Click here for the entry on the database.

Manual Install:

  • Download the latest version.
  • Extract the file.
  • Modify the variable (see Usage section).
  • Upload ca_chitika.php into your Plugins directory
  • Activate the plugin from admin panel.

Live Demo / Screenshot

Check my post here. Or see below for the screenshot of the post.

Chitika Screenshot

Usage

First, change the $chitika_client on the plugin file (ca_chitika.php) with your Chitika’s user id.

As I already mention above, the basic usage is, if you want to display Chitika’s ad, you have to add the following tag inside your post.

<!--chitika(width,height)-->

so for example, if you want to display the banner layout (468 x 60), you’ll write:

<!--chitika(468,60)-->

Now, to target the query/keyword:

  1. Direct Tag Parameter.
    This is the highest priority. If the plugin found the keyword parameter, it will automatically use it and ignore the other setting. Simply add the query/keyword list as the third parameter on the Chitika’s tag. To enter multiple keyword (the plugin will randomly choose one of them), separate it with comma.
    For example:

    • Single query/keyword.

      <!--chitika(468,60,"digital camera")-->

    • Multiple query/keyword.

      <!--chitika(468,60,"digital camera,mobile phone,computer")-->

  2. Custom Field.
    To use it, first change the value of $chitika_base on the plugin file (ca_chitika.php) to “tags”. Then on your post, add a custom field named Chitika and enter the value of the targetted query you want. To enter multiple query (the plugin will randomly choose one of them), separate it with comma.
  3. Post Title
    Using your post title is the easiest way since you don’t have to think about the query yourself. And if your title already contain at least one targetted keyword, Chitika will use it and ignore the rest of the non-targetted keyword.
    To use it, you only need to change the value of $chitika_base on the plugin file (ca_chitika.php) to “title”.
  4. Default Query/Keyword
    The default query/keyword will be used if: (1) you ask for it, (2) the custom field is empty, or (3) the post title is empty (which is almost impossible).
    To use it, change the value of $chitika_query on the plugin file (ca_chitika.php) with the value of the targetted query you want. To enter multiple query (the plugin will randomly choose one of them), separate it with comma. If you want to force the plugin to always use the default query, change the value of $chitika_base to an empty string “”.

Starting from v0.3, additional parameter has been added, nosearch.

<!-chitika(widht, height, keyword, nosearch)-->

nosearch parameter is used to hide or show Chitika’s Search tab. By default, nosearch is set to 1 (true). Since most of you are using Google AdSense together with Chitika, this is to comply with AdSense for Search TOS. If you’re not using AdSense for Search, use 0 (false) to display Chitika’s Search tab.

Tips/Tricks

  • Display Chitika eMiniMalls ad on your theme using the plugin.
    If you want to use the plugin to display Chitika’s ad code on your WP theme, you can use the following PHP code:

    <?php chitika(width, height, keyword list); ?>

    For example:

    <?php chitika(468, 60, "notebook"); ?>

    will display a 468×60 Chitika’s ad with “notebook” as the keyword. You can ignore the keyword list parameter as well, and it will automatically use the default setting on the plugin file.

  • Display Chitika eMiniMalls ad code on your theme using the plugin with target keyword based on your post category.
    Using the same technique as I did with Amazon’s Recommended Link query, you can also targetted the Chitika’s ad keyword based on your post category. Here’s the code:

    <?php chitika(468, 60, single_cat_title()); ?>

To Do

Future plan:

  • Admin interface
  • Quicktags button (done in v0.2)

Version History

v0.3 - October 11th, 2005

  • Add nosearch parameter to comply with AdSense TOS
  • Fix random keyword algorithm

v0.2 - October 3rd, 2005

  • Add direct keyword targetting on the tag
  • Add Quick Tags button

v0.1 - October 3rd, 2005

  • Initial release
[CA] Chitika – Add Chitika Code to Your Post is written by cosa and posted under Programming, WordPress , , , , . If you like it, you might consider subscribing to our feed, follows us on Twitter, or receive our latest posts via email. Or else, you could also or store it to your favourite social bookmark sites. Further information about this article can be found.

15 Comments »

  1. 1
    Chitika Owna | Cosa Aranda says:

    [...] sudah tahu kalo plugin CA-Chitika saya di-featured-kan di blog resmi Chitika? Komen di sana yah, biar keliatannya beken gitu, hehehe. [...]

  2. 2
    Jack Book says:

    wow.. awesome.
    i think i’ll use it on my sites later.
    thanks

  3. 3
      Chitika eMiniMalls - Geld verdienen mit der eigenen Website by Webdesignblog says:

    [...] Chitika eMiniMalls in Beiträge einbinden – Plugin (wordpress) [...]

  4. 4
    PaymentBlogger » The complete list of dosh plugins says:

    [...] affiliate program – which by the way is great for sites that have product reviews – you can use [CA] Chitika, a plugin that will automate the whole [...]

  5. 5
    Tom says:

    Thank you! I just stumbled upon this page and wanted to mention that Chitika works great for me! Over the last year I compiled some statistics of my earnings and I actually earned twice as more with Chitika compared to AdSense. For those of you considering Chitika – try them! You can check out this Chitika review for more info.

  6. 6
    yaşam ve sağlık says:

    thanks bacim!For those of you considering Chitika – try them!

  7. 7
    benbego says:

    thanks for your share

  8. 8
    Chitika eMiniMalls Tutorial | Thenett.net says:

    [...] WordPress Plugin – This plug in allows you to add eMiniMalls to your posts in Word Press WordPress Plugin – This plug in uses the custom fields features of WP to insert eMiniMalls WordPress Plug in – This is like the first one but by another developer Chitika eMiniMalls on Movable Type – MT plugins that can help MT users. [...]

  9. 9
    rüya tabirleri says:

    thanks

  10. 10
    rüya tabirleri says:

    wow hello thanks

  11. 11
    diziler says:

    hay

  12. 12
    videolar says:

    ne oldu

  13. 13
    rüya tabirleri says:

    thanks nol

  14. 14
    ANT says:

    If I have a bunch of domains that URL Forward, should I take them out of forwarding and park them adding Chitka? Any help would be appreciated. Newbie here and the amount of info is overwhelming. –ANT
    http://www.antcomic.com

  15. 15
    Lee says:

    A major part of finding the right MBA program is researching MBA business schools (B-Schools). Keep in mind, when we talk about MBA schools, we usually mean a college, school, or other division within a university

Leave a comment