Plugin Directory

Simple TTIW List

Author: David Artiss

If you are using version 1.0 of this plugin you must update your code before using this version

It would appear that TheThingsIWant.com use different formats for their XML filenames, so the plugin has been updated to take that into account. Unfortunately, it rules out compatibility with the original 1.0 version of the plugin. Apologies. If you install this plugin, and were previously using version 1.0, a message will appear on your site showing that you need to upgrade the code.

You must be signed up to TTIW (http://www.thethingsiwant.com) to use this plugin.

When you sign into one of your lists you'll notice an XML/RSS 2 icon on the left. If you right click on this and select "Copy Shortcut" or "Copy Link Location" then this will copy a filename to your clipboard. You will need this for this plugin.

To display your want list on your WordPress site you will need to insert the following code, where appropriate, into your theme…

<?php ttiw_list('listurl','limit','priceflag'); ?>

Where..

listurl : This is your TTIW list URL that you copied to your clipboard earlier and must be specified

limit : The number of items to display from 1 to 99 (default is 99)

priceflag : This indicates whether you wish to display prices on your list or not. Specify either Yes or No. Leaving this as blank will default to No.

This will then display the list of wanted items in an HTML list (i.e. with <li> and </li> around each entry).

An example would be...

<?php ttiw_list('http://www.thethingsiwant.com/dartiss/list/davids%20list/','20','No'); ?>

This would display a list of my 20 most recent wanted items, with no prices displayed.

The following is an example of how it could be used, with a function_exists check so that it doesn't cause problems if the plugin is not active...

<?php if (function_exists('ttiw_list')) : ?>
<h2>The Things I Want</h2>
<ul><?php ttiw_list('http://www.thethingsiwant.com/dartiss/list/davids%20list/','20','No'); ?></ul>
<?php endif; ?>
Tags: , ,

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)