Приглашаем посетить
Писемский (pisemskiy.lit-info.ru)

Classified Ads

#######################################################################
#                                                                     #
#              ClassifiedAds.pl - v1.1 - by Michael Hall              #
#                                                                     #
#         Copyright ©1996 by Virtual Marketing Technologies.          #
#                         All Rights Reserved.                        #
#                                                                     #
# The user of this script is licensed to use this script on one       #
# machine only for non-commercial use only.  For commercial use, a    #
# payment is required.  See The Scripts Home at                       #
# "http://www.virtualcenter.com/scripts2" for more details.  Use of   #
# this script means acceptance of this license agreement.  Commercial #
# use of this script without payment is a violation of copyright laws #
# and subject to fines and/or prosecution.  If you have questions     #
# regarding the use of this script for commercial purposes, please    #
# e-mail vmt@airmail.net.  The author of this script cannot be held   #
# responsible for any errors or cause of loss due to this program.    #
# Use of this program is provided as is.  No other warranties are     #
# expressed or implied.                                               #
#                                                                     #
# If you do not pay for a license to use this program, you may not    #
# edit out any sections of this script that give credit and links to  #
# the author, The Scripts Home, and Virtual Marketing Technologies.   #
#                                                                     #
#######################################################################

CHANGES IN THIS VERSION
-----------------------

The only major changes to this version are that it no longer requires the
cgi-lib.pl or cgi-test.pl libraries and has been renamed classifieds.cgi so
as to be compatible with directories that will only recognize Perl scripts with
the .cgi extension.  This should aid in installation of this program as no
other programs are needed for this to run.


INSTRUCTIONS FOR SETTING UP THE CLASSIFIEDS.CGI SCRIPT
------------------------------------------------------

This script requires atleast Perl v4 to run.  Place it in your cgi-lib
directory on your web server and "chmod 755" to turn it into an
executable script.

Now, you'll need to edit the included form html file for your
own ad form.  Find the file "index.html" and make the
following changes:

	<form method=post action="/cgi-bin/classifieds.pl">
		Edit this to where you placed the script.  If you simply placed
		it in the cgi-bin directory then this is sufficient.
		
	<input type="hidden" name="ClassifiedsDir" value="/var/www/docs/classifieds/">
		Edit this to where your classified ads will be located.
		
	<input type="hidden" name="ViewDir" value="http://www.virtualcenter.com/classifieds/">
		Edit this to the URL where your classified ads will be located.
		
	<input type="hidden" name="ErrorReturn" value="http://www.virtualcenter.com/classifieds/index.html">
		Edit this for where you want the system to return the user if they
		make an error.  It would be wise to return the user back to the ad
		form.
		
	<input type="hidden" name="ReturnURL" value="http://www.virtualcenter.com/classifieds/Thanks.html">
		This is the URL for the thank you page that thanks the user for
		placing an ad on your system.  You'll need to create this thank you
		page to whatever you want it to say.


Now you'll need to create the individual files that the ads will be appended
to.  If you have five different topics such as "Business", "Employment",
"Real Estate", "For Sale", and "Computers", you'll need a file for each
different topic.  It needs to be the exact name for the department you
named in the form.  Take a look at the sample index file to see how the
departments were added up.

Place the AdNumber.dta in the same directory as your classified ads.  Make
sure you chmod 777 this file and all the classified topic files that you
created for each department.  You'll also need to take the UserDataFile.html
file and place it in the same directory and chmod 777 this file.  The name
and address info for each advertiser is placed in this file with a link
added to the person's name to e-mail them if you need to.  It also tells
you what ad number it is, what department it was placed in, and the complete
text of the ad.
		

You can go by the example form for an idea of how to set up your own.


Now you're all set.  Make sure your ad form is pointed to "post" the information
to the directory and file of the script.  It should work.


NOTICE ON SUPPORT
-----------------

Support is available only to those who purchased support when they purchased this script.
To gain that support, simply send an e-mail to "vmt@airmail.net" and include
the support number you got with the e-mail for this script.

If you did not purchase the support but find you are having problems, a special
message forum has been set up in The Scripts Home at "http://www.virtualcenter.com/scripts2"
for those needing help.  If you are able to successfully setup this program, please stop
by these message forums and help others set them up.

If you need help, please post a message to this message forum.  DO NOT send e-mail to the
author or Virtual Marketing Technologies unless you have purchased a license.  These scripts
are provided at no charge for personal, non-commercial use and we simply don't have the
resources to provide further support at no charge.


NOTICE ON NEW VERSIONS
----------------------

A newer version of this program is already complete and available.  Version 2.0
includes great new features such as the ability to search for ads by keyword, and
is automated to delete ads as soon as they expire.  It can also handle automatic billing
if you charge for ads.

However, because this new version was designed to be used for commercial purposes, it
will not be available for free download.  To obtain a copy of Classified Ads v2.0,
please send a check or money order for $200 to Virtual Marketing Technologies, 1510
North Hampton Road, Suite 270, DeSoto, TX  75115.


NOTICE ON INSTALLATION
----------------------

Installation of this program is available from Virtual Marketing Technologies at the
standard rate of $50/hour (minimum 1 hour).  If you find it too difficult to install
this program on your own, you may request custom installation.  $50 is due immediately
before installation can be started.