The Joomla! Extensions Directory ™


Craigslistrss Module

Craigslist Rss module will get the latest ads from craigslist from the city where the user is browsing from based on ip address.

You can set up the number of ads to display.
You can also choose from category.
You can also filter the results with certain keywords too.

So, for example if you choose category 'free' and put 'computer', 'furniture' then it will display ads containing either of those keywords.

additional features in the backend
option to open link in new window.
option to force entry a particular city.
option to add nofollow to links
option to change date format
Attempts to use curl first to retrieve geo ip service, if curl fails then attempts to use file_get_content().

Report

Images
2011-04-06
Reviews: 8
This module installs easily and displays fine, but it does not appear to be taking the visitor's IP address into consideration when displaying results. I'm hoping it won't take too much brain damage to get it to work. This module is a great idea.
Owner's reply

thanks for the review, this module works for the cities that are available in craigslist. It displays the default craigslist post for users who are in say 'kathmandu'. A new version with more options have been added. Now you have option to manually enter a city rather than detect automatically.

2011-04-01
Reviews: 8
The tutorial that this module is based on is still available on the web, and between that tutorial and this work that has been done already, I have been able to tweek and customize a few things, like the city that is detected for your isp is not always the subdomain for craigslist.org as in my case so it defaulted to something else so I just hacked it myself in the helper.php file. Also timestamps from get_date() I changed to get_date( $date_format = 'D, M j, g:i a' ) for my preference, and also added the line near the top of the file: date_default_timezone_set('America/Los_Angeles'); for my timezone.
Overall it is simple enough code so that a php newbie like me can reference and search out a few things and have some success with a needed feature for a project while learning a little.
I appreciate modules like this being shared.
Owner's reply

Thank you using the module. I have uploaded a new version with the date format option along with some other features.