WordPress Classifieds Plugin
DescriptionWith this plugin, you will be able to add a Classifieds Advertising for Personals, Auto or Business in to your wordpress blog. Installing the plugin:Click here to download the: 1) 1.3.0-g (classifieds Page in one column) 2) Extract the zip files |
3) Upload folder to your site (./wp-content/plugins/wp-classified)
4) Login to the administration and go to “admin panel/plugins” and activate the plugin
5) Go to the “Manage” tab of your WP. You have now there a new tab called “WP-Classified Admin”.
6) Go into the Manage — WpClassified –
7) Click on “Add Category”
8) Categories are the MAIN sections of your classifieds. For example, Autos For Sale
9) Now that you have a category, click on “Add List” under the Add/Edit Categories menu.
10) Create a list and then choose its parent category.
Lists are your subsections on your classifieds. For example, “Trucks” would be a list whose parent category would be “Autos For Sale.”
Unless you create lists under your categories, you won’t see a thing on your classified page.
Configure the plugin
Make sure the folder images have the correct writing permissions.
You will need to make the following folders writeable (chmod 777) :
/wp-classified/images (user images)
/wp-classified/images/topic (plugin images)
/wp-classified/images/cpcc
Uninstalling the plugin
For uninstalling deactivate the plugin in the WordPress admin menu and delete the wp-classified directory from the /wp-content/plugins/ directory and the page and tables, which are installed by the plugins with drop table in phpMyAdmin.
IMPORTANT:
I create and tested on Wordpress version 2.3.2 on default and unchanged Permalink structure.
The plugins works successfully with the latest version of wordpress 2.6.
Demo:
Upgrade Instructions
- Deactivate the plugin from your Wordpress admin panel.
- Backup Database tables *_wpClassified_* and files.
- Upload the files to your /wp-content/plugins/ folder and overwrite the existing file.
- Activate the plugin from your Wordpress admin panel.
- Please Note: in ‘Classified Options‘ page in admin interface, check that all the required fields are filled in and save!
Questions and Examples of Use
Frequently Asked Questions
For people who have the problem with Invalid argument supplied for
foreach() on line 1052 or line 731 for the older WP version
To fix this problem we have installed the plugin on different machine/environment, but we cannot reproduce it.
Mr. Derrick Eckardt have found a solution to the foreach() problem on line 1052.
Q: Why the main site gives me the 404 or Not Found error message
This is a .htaccess 404 error message and you should update your .htaccess file in the WP root directory.
Q: I would like to put the last ads in my sidebar. is it possible?
Inside the WordPress admin ‘Design’ menu, ‘Widgets’ submenu, add the wpCalssifieds widget to your blog
where you want, then save the changes.
To support Permalink structure:
This is an example for .htaccess file to redirect to wpClassified for the people who use ‘ /%category%/%postname%/’ as permalink structure
Please open the .htaccess file in the WP root folder in your favourite editor and look for line
RewriteRule . /index.php [L]
and replace it with:
#RewriteRule . /index.php [L]
RewriteRule !classified/ /index.php [L]
RewriteRule ^classified/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=classified [QSA,L,R,NS]
Q: Warning: imageftbbox() [function.imageftbbox]: Could not read font?
Enable the GD and FreeType Support in php configuration or unselect the ‘Show the confirmation code’ in admin interface
Changelog
Changes 1.3.0-a - October 13/10/2008
- Modify to expanded and collapses the Categories
- Modify to show the last post in footer
Changes in 1.3 - September 10/2008
- Update to display-style classified ads in one column
- Added the ad images viewer
- Allowed more images per ad
- All the pages using templates
- Added style sheet for page layout
Changes in 1.2 - August 10/2008
- Added some fields mail, phone, web
- implement the conformation code (captcha)
- added sent to his friend’s button
- included language file (The Work is Not Finished!)
- fixed some of the issues discussed and posted here’
- Tested with wordpress 2.6 and Internet Explorer, Firefox.
- Allow the guests (identify by IP-Address ) to delete/edit their ads.
Changes in 1.1 - May 12/2008
- initial version

Comments(109)
The problem is caused by php 5. all you have to do is edit line 1052 and change
foreach ($array as $k => $v) {
to:
foreach ((array) $array as $k => $v) {
Found this by reading these pages by reading the comments post on the PHP documentation page for the foreach() function (http://us.php.net/foreach)