If your an avid Twitter user or looking for more ways to market your site then this classifieds Twitter feed module is for you. It is a module that enables your 68 Classifieds site to automatically make a tweet with each new listing added to your site. This is the first release of this module and it is considered beta. So use it at your own risk and report any issues to me.
Some of the features of classifieds twitter feeder are:
- Works automatically in the background. Set it and forget it.
- Uses the is.gd url shortening api service.
- It uses the status of the listing to determine if it should be sent. So unapproved listings will not be posted.
- Creates a field to flag which listings have been sent. This is to prevent any duplicates.
Requirements
The Classifieds Twitter Feeder requires 68 Classifieds v4.1.7 and PHP 5 or better with cURL installed.
Instructions
Download the zip file and extract it.
Open twitter/settings.php and enter your Twitter username and password.
Upload the “twitter” folder to your modules directory.
Finally visit administration -> manage modules -> activate.
If you are running a version less than 68 Classifieds v4.1.7 then you will need to make this manual change. (Requires Developer Edition)
Open includes/classes/kernel/Listings.php and find:
$data=array('id'=> $id, 'status'=>$status);
$modules->call_hook('change_display_status', $data); // Call any module functions
Replace with:
$data=array('id'=> $id, 'status'=>$status, 'orderid'=>$orderid);
$modules->call_hook('change_display_status', $data); // Call any module functions
Errors
If you are getting a mysql error when adding listings then it is a good chance a new row wasn’t added to the listing table during the install. I have had a few reports of this. To fix it you can manually run this query in phpmyadmin:
ALTER TABLE `class_listings` ADD `tweeted` INT( 1 ) NOT NULL DEFAULT '0';
Change class_listings to match your table prefix.
No Listings Sent to Twitter
Since v0.3: If you are having trouble getting listings sending to Twitter then you can open twitter/hooks.php and find:
var $debug = false;
Then change it to true.
Change Log
- v0.6 September 14, 2009 – Had to use a new hook which should fix it from not running.
- v0.5 August 27, 2009 – Removed a few hooks will hopefully run fully now.
- v0.4 August 26, 2009 – Fixed an error causing the admin to shut down
- v0.3 August 25, 2009 – Added debugging code
- v0.2 March 27, 2009 – Bug Fixes
- v0.1 March 14, 2009 – First Release
Help & Support
This is a free plugin and I make absolutely no guarantee I can offer support. If you find any bugs please report it to the Issue Tracker.
