Introduction
- Easy to Use for both Users and Admins
- Users must pay to publish their ads
- Users can choose from different pay plans
- Ads will expire after a certain number of days
- Users are able to renew expired ads, and extend current ads by paying
- Payment will be processed by Paypal
- Users will have a screen which displays all of their ads
- Ads can support images, videos, location, and whatever else is offered by CCK
Setting Things Up
For those of you who don't want to set this all up manually (it CAN get kinda complex) you can buy my installer which will install all of the things needed in this tutorial, and set up all of the configuration options automatically for you, including creating roles, installing modules, and setting up subscriptions. Just visit my site to get the installer: http://www.moneyscripts.net
Here is a list of modules you will need for this tutorial:
- Paypal Nodes
- ImageField (Optional)
- FileField (Optional)
- CCK
- Views (Optional)
Step 1: Add Plans
Next, you will need to add some new Plans. Go to 'admin/build/paypal_node/list' and click 'Add Plan'. Fill in the fields and click 'Save' to save your plan. Make as many plans as you want to offer your users.

Add the Plans here
Next, you will need to create a new Content-Type for your Classified Ads. The page for adding Content Types is 'admin/content/types'. We'll call it 'Classified Ad'. Fill in all the settings. Two things to make sure you do here are:
- Choose the Plans you want to offer for publishing this content type
- Uncheck the 'Published' field in the Workflow Settings area
Step 2: Content Type
Create the Classified Ad content type
Add Fields (Optional)
Once this content-type has been created, you can add any Fields to it that you want. For this tutorial, we will add a simple Upload Image field. Click on 'Manage Fields' for your new content-type, and then in the New Field area, add the new image field like so:


Add the Image field
Set Up Taxonomy (Optional)
If you want users to be able to categorize your ads (recommended), then you will need to use the Taxonomy module. Create a new Vocabulary called 'Classified Categories' and add as many categories to it as you want:

Set up the Taxonomy Terms
Set Up Views (Optional)
To make it easier for your users to see the Classified Ads, you can se up a View for the Classified Ads. Go to 'admin/build/views/' and click Add New view. Name the View Classifieds, and create a new Page Display:

Settings for the View
Step 3: Permissions
The next thing to do is set the Permissions. Go to 'admin/user/permissions' and set the 'authenticated user' role to have the 'create classified_ad content' (In the Node section, not shown in picture below), 'renew own paypal nodes' and 'view own paypal nodes' permissions:

Set the Permissions
Finished!
Choose Your Plan
Closing
I hope that this guide and module will help you in your Classified Ads site. It can also be adapted for use with any kind of Pay to Publish website, and it is very straightforward and reliable. If you wish to see more screenshots, go here: Drupal Paypal Nodes - Pay to Publish





Very helpful write up, thanks very much for that. will this work alongside the http://drupal.org/project/node_limitnumber module?
Post new comment