Simple classified ads module for Drupal 4.7 and Drupal 5

I've created a simple classified ads module for Drupal 4.7 and Drupal 5. It is now in use on a large number of Drupal-based sites.

Background

My classified module creates a new node type ('ed_classified') and associates an expiration timestamp with all nodes of that type. Borrowing from the image.module image gallery scheme, it creates and associates a custom taxonomy with the classified ads. Site administrators then need to create child taxonomy terms for each classified ad category. As with any Drupal taxonomy, ad categories may be nested to arbitrary depth.

It's pretty simple in terms of data structures, but there are many details like:

  • automatic content expiration on cron run,
  • ad renewals (user can renew an ad before it expires),
  • body text length limitations,
  • client-side javascript to display body text length consumed in real time while user enters ad text,
  • custom CSS (ed_classified.css),
  • new/popular ad blocks,
  • views module integration,
  • admin/user menu add-ins and other policy/admin stuff.

Note: The current implementation does not, and the 1.0 version will not support the following features:

  • Paid ads. There is a paypal payments module that should allow one to charge for ads, though. I'm considering integrating with that module at some point in the future, after the initial feature set is implemented and released.
  • Image ads. I use upload_image module on my sites, but you could also use image_attach (included with the image module) - I tried it and found that image_attach does not delete attached image nodes when the parent node is deleted - important, since I want to have ad photos deleted automatically when the original ad is deleted.

Great, so how do I use it on my site?

NEWS FLASH: It's now available on Drupal.org. Classified Ads for Drupal 4.7 and Drupal 5.


Enhancements planned for post-1.0 releases

(These will not be in the 1.0 version described above.)

  • email notifications prior to ad expiration (feature development in progress),
  • per-category (taxonomy term) configuration for things like ad duration, body text length, etc.
  • integrated photo ads using the filemanager.module api
  • smart integration with the paypal payments module (to be defined)
  • report mis categorized/inappropriate ad
  • additional views.module support
  • tighter integration with location.api module
  • provide limited ability for ad creators to add new categories
  • email notification of new ads matching user-supplied criteria
Posted by: Mike on Fri, 10/20/2006 at 3:47pm

Update

Hi, Mike...

I am very interested in the status of your module. Could you please contact me at "ldacuna (at) gmail.com" with any relevant information? I am willing to contribute, pending more concrete information.

Kind regards,

Luis,
From San José, Costa Rica

Guest – Thu, 12/07/2006 – 8:04pm

Classified Ads module now available on Drupal.org

As mentioned above, ed_classified.module is now available for download on Drupal.org in the contributed modules area. Classified Ads for Drupal

Mike – Sun, 02/11/2007 – 3:46pm

want to donate

Tried using your "Support ongoing development!" link off to the left there, but even though I'm a verified paypal user, they kept telling me that you wouldn't accept payment from "unverified" accounts. I sent you a private email, asking you about this.

Meanwhile, my humble opinion is that the more difficult you make it for people to send you development funds, the fewer people will do so. You might consider changing your paypal settings, at least for this particular link.

I hope you're able to make a drupal 5.x version of your module. I have a lost and found pets website that it would be just perfect for. Far better than what I'm using now. But, due to hosting limitations, I can only install drupal through cpanel and only the latest version. (5.1)

Benny Archuleta (not verified) – Mon, 02/19/2007 – 3:07pm

Fixed now, thanks

The problem you experienced was due to a misconfiguration on paypal causing this problem for some contributors. I've fixed it now, and have received and claimed your donation. Thanks very much for your patience, and your donation!

Mike – Tue, 02/20/2007 – 9:20pm

Menu to view ads

I am sorry if this is a real noobie question. I installed drupal 5 on my site and then your ed_classifieds module. I have it all working as I want apart from one thing.

On the menu there is a 'Classified ads' item which links to http://mydomain.com/ed_classified which just displays the message

Classified ads
There are 0 ads in this category

This is obviously not what is intended, I assume this should either show all adds or a list of categories. Any help would be appreciated

Greg

Greg (not verified) – Wed, 02/21/2007 – 11:40am

What child categories?

Have you created any child categories in the Classified Ads taxonomy term?
Have you created any classified ads within the child categories?
Can you provide a link to your site so I can see the problem?

Mike – Wed, 02/21/2007 – 11:49pm

Hiding unpaid ads

I am playing with your classifieds module and it does most everything I need... which is great.

I came up with one question: When someone doesn't pay (or the ad expires I assume), the ad is private... but I still see the title on my page. I would like to hide the ad all together from the public unless it is paid for... not just mark it as private.

Is this possible?

Thanks!
Dan

Dan Wassink (not verified) – Mon, 03/19/2007 – 8:49pm

Unpublished ads should not show

When an ad expires, it's marked as unpublished. You should set your workflow settings so that new classified ad nodes are not published. (admin/settings/content-types in drupal 4.7, not sure where it's at in drupal 5)

If an ad is not 'published', are they still visible to the public? If so, you have something else going on. Or, if you are logged in as admin, you will see them because you see unpublished nodes due to your permission level.

Mike – Sat, 03/24/2007 – 8:14am

Closing comments for this page - use forum

Please visit our forum to discuss this module.

Mike – Sat, 03/24/2007 – 8:26am