CLASSIFADS - PHP/MySQL
Copyright (C) 2001 Michael de la Rue
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
- Customised appearance using templates.
- Any number of easily configurable categories
- Posters choose how many weeks to display their ad for.
- A "new listings" front page with a drop-down selection of categories to choose from.
- The script uses a combination of IP logging and cookies, so that if visitors have either a static IP address or cookies enabled, they can alter their ad without having to remember a password. Any ads posted by the visitor are listed with an "alter it" and "delete it" button beneath them.
- If an email address / url is given, the listing will include an EMAIL / SITE link at the bottom. If not, only the Title - Author & Description are shown.
- The script automatically erases expired ads from the database.
- 1) Load 'classifads' table schema (MySQL).
- Load the "classifads" table into your MySQL database (You will find the schema in classifads.sql)
- 2) Edit 'config.php' (variables).
- Alter the variables in config.php to reflect your setup.
- 3) Upload, set permissions & use.
- Upload index.php, updata.php, config.php, functions.php (execute permission - 755)
together with logo.gif, classifads.css, incl-top.php, incl-bottom.php (read permission - 644) in the same directory. Go to http://www.yoursite.com/classifads_dir/index.php and try submitting an ad.
- 4) Edit 'incl-top.php' and 'incl-bottom.php' (html layout).
- Edit incl-top.php and incl-bottom.php (the html template files) to create a layout for your site. The output of the script will go between these. The following . . <link rel="stylesheet" type="text/css" href="classifads.css"> (in 'incl-top.php') points to the 'classifads.css' stylesheet which can also be altered.
I have tested this script on Apache and it works (It needs the register_globals directive set), and it probably works fine with other Servers, but I haven't tested it.
It may work with php3, however I didn't write it with backwards compatibility in mind.
Feel free to modify and extend it.
If you are pleased with this script and would like to make a donation to support a Zimbabwean programmer, please click the button below.
Thank You
If you have a particular need, and would like a custom solution in Java/Php/Javascript, get in touch with me for a good deal.
Mike de la Rue
mice@hotpop.com.
16 Ridge Road,
Avondale,
Harare,
Zimbabwe