WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Chitika RPU 4 WordPress

This plugin lets you insert the Chitika RPU into your blog instantly. It also gives you the flexibility to position the RPU in the desired location.

Adding an RPU

You can add the Chitika RPU code to your blog in one of three ways.

The first method is very simple and does not require you to change any part of your template files. Just go to the "Chitika RPU 4 WP" Options page and enter the appropriate option in the "Add code automagically" input box. The RPU code will be automatically added to the end of the post content on the required pages.

The second method to add the Chitika RPU is using the widget. Just go to Presentation > Widgets, drag and drop the Chitika RPU 4 WP widget on to the desired sidebar. At present all options will have to be set from the options page. For this widget it is desirable to have a sidebar after the post.

The third method requires you to enter the following piece of PHP code into your template files. This gives you the flexibility to place the RPU code in your desired location.

<?php if (function_exists('writeChitikaRPUCode')) { writeChitikaRPUCode(); } ?>

As you can see, we are using a function, writeChitikaRPUCode(), to echo the RPU code. This function accepts 19 string parameters which I have listed below in the order in which they are accepted. All these parameters are optional. If you want you can set all these parameters from the options page and just insert this function without any parameters within your template. If you use any of these parameters, don't forget to enclose strings within single quotes.

List of Parameters

  1. Channel Tracking

  2. Keywords - You can even use the option strings available below the keyword field on the options page.

  3. Default Category - By default it is set to 200001 (Seasonal Specials). To change, get the numeric category code from http://chitika.com/categories.php.

  4. Alternate ad URL - In case there are no ads to display from Chitika.

  5. Title Text - Use this to customize the title to say something other than "Related Products:". You can also remove the heading using ' ' (a blank space within single quotes). Although Chitika doesn't recommend it.

  6. Hide bullets - Accepts '1' as yes or '0' as no.

  7. Hide price - Accepts '1' as yes or '0' as no.

  8. Alternate CSS URL - For help using this feature, refer to this Knowledgebase article - http://chitika.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=115.

  9. Width of the RPU

  10. Height of the RPU

    Note that the width, and height has to be on this list, or else the RPU will not show up.

  11. Background Color

  12. Title Color

  13. Text Color

  14. Title Font

  15. Text Font

  16. Shuffle Queries - Accepts '1' as yes or '0' as no.

  17. Target Frame or Window - To open links in a different frame or window. Use '_blank' to open links in a new window (Chitika doesn't recommend it though).

  18. Non contextual - Accepts '1' as yes or '0' as no.

  19. Chitika Client ID - Your chitika username.

Examples

<?php if (function_exists('writeChitikaRPUCode')) { writeChitikaRPUCode('My Blog RPU'); } ?>

<?php if (function_exists('writeChitikaRPUCode')) { writeChitikaRPUCode(get_bloginfo('name').' RPU',get_the_title().', %post_tags%, "chocolate", "flowers"','7185','','Related Items:','','','http://yourdomain.tld/pathtoyourcssfile.css','','','#000000','#FFFFFF','#CCCCCC','Georgia','Arial','','_top'); } ?>

Requires: 2.3 or higher
Compatible up to: 2.3.3
Last Updated: 2008-3-29
Downloads: 1,720

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.