Home Contact Addins Demo FAQ Purchase Smart Classified ADs Professional Edition

The configuration file is the main module of the Smart Classified ADs system that determines all the configurable variables available and runs the program. You just edit the settings as desired in this ONE file. You don't need to know CGI or Perl!

Smart Classified Ads Configuration File
############## Smart Classified ADs configuration file ####################
##############   Version 4.0 - PROFESSIONAL EDITION   ####################
##############         Released July 31, 2001        ####################

####################### Classified AD categories ##########################
# This is the list of AD categories you offer for placing classified ADs.
# Change the category names accordingly here, & in viewads.html, newad.html.
# Do NOT change until you have tested your installation! Do NOT edit in WordPad!

@Departments = (
'Automotive',            # 0   Enter as many categories as you desire.
'Computer Products',     # 1
'Financial',             # 2
'Health & Beauty',       # 3
'Import-Export',         # 4
'Personal ADs',          # 5
'Pets',                  # 6
'Professional Services', # 7
'Real Estate',           # 8
'Travel Related',        # 9
'Wholesalers',           # 10
'Miscellaneous'          # 11 No "comma" after last category!
);

################# configurable system variables ########################

 # FULL SERVER PATH TO THE classpro DIRECTORY (automatically determined by server)

       $BaseDir = "$ENV{'DOCUMENT_ROOT'}/classpro";
    $DataDir = "$BaseDir/data"; # data directory. Obtains info from $BaseDir.
                   # no need to change.


    $DateFormat = '1';     # 1 = North American date format (month day, year)
               # 0 = European date format (day month year)
               #     (See "European format" in docs)

               # ADs can be posted by the month OR week.
        $AdTime = "month"; # Month=31 days, week=7 days
               # Enter "month" or "week" (in LOWER case)

   $WebSiteName = 'Your Company Name Here';

               # Full URL to your web site:
    $WebSiteURL = 'http://www.domain_name.com';

      $mailprog = '/usr/lib/sendmail'; # Location of the sendmail
                                       # program on your web server

  $EmailAddress = 'pro4@hoffice.com'; # Email address to receive mail
                       # from Smart Classified ADs

     $SendEmail = "yes";   # Enter yes in lowercase to receive
                           # e-mail notice of new AD submitted
               # or renewed.
    $EditNotice = "yes";   # Receive e-mail copy of edited ADs?
               # yes or no. If yes, $SendEmail must
               # be "yes" also.

   $CannedEmail = "yes";   # Send follow-up E-mail to Advertiser when AD
               # submitted? "yes or no". When set to "yes", will
               # automatically send the E-mail text from the
               # 'FollowUp' section below. Edit to suit your needs

    $ValidEmail = "yes";   # Require valid E-mail address from AD submitter?
               # If $CannedEmail="yes", then this must be "yes" also.
               # this function insures that a valid E-mail address
               # is posted with the submitted AD.

    $BlindEmail = '1';     # 0 = Display real E-mail address in AD
               # 1 = Activate "Blind AD E-mail replying"
    $SendNotify = '1';     # 1= Notify Advertiser that AD is about to expire. 0=no

    
    $NoticeDays = 10;      # Days in advance to notify advertiser that AD is
               # about to expire. (requires running notice.cgi)

      $MailList = "no";    # Collect advertiser's name & e-mail address?
               # yes or no.
      $ListFile = "emaillist"; # default name of email maillist file

    $PassWord   = "xxxxx"; # Webmaster's password, 10 characters max
    $MaxWords   = '125';   # Amount of words allowed in AD body
    $SortAds    = "yes";   # Sort ADs, latest AD displays first!
    $AdSubColor = "000099";# Text color of AD subject line (default deep blue)
    $AdTextFont = "verdana,courier"; # Default AD body text font. Suggested
               # are: verdana, courier, arial. See docs.

# For specialty type web sites, you can change the default use of the word "AD"
# to your specialty need, such as; Listing/Listings, Resum�/Resum�s, Job/Jobs, 
# Personal AD/Personal ADs, etc. Edit these 2 variables to reflect your use.
# NOTE: These variables effect cgi generated pages only. Edit html pages as needed.

      $Singular = "AD";
        $Plural = "ADs";


   $AdHeadlines = '0';     # 0 = for normal full AD display (default).
               # 1 = to initially display AD Headlines only.
     
   $SrchDisplay = '0';     # '0' = Display AD headlines only, when displaying
                           #  keyword search results (default). '1' = Display
                           #  full ADs when displaying search results.
                
  $AutoNextPage = '15';    # Use "Auto Next Page" when any category exceeds
               # this amount of ADs.
    $AdsPerPage = '10';    # Amount of ADs to display per Auto Next Page.

     $PostLimit = '3';     # Maximum categories AD can be posted to.
    $RenewLimit = '2';     # ADs can be renewed how many times?
    $NoRenewalUntil = '10';    # AD cannot be renewed until xx days before expiration.
               # set to '0' to allow renewal at any time.

    $AllowURL = "yes";   # Allow submitter to place their URL in AD?
    $AutoBackup = '1';     # 1 = Make daily backup copy of AD datafile. 0 = no.
    $AutoExpire = '1';     # 1 = Automatically delete expired ADs once 
               #     each day. 0 = no.

    $ReqAddress = '1';     # 1 = Require street address, 0 = no.
      $ReqPhone = '1';     # 1 = Require phone number entry, 0 = no.
 $ReqPostalCode = '1';     # 1 = Require zip/postal code, 0 = no.


      $AudioMsg = '1';     # 1 = Audio messaging system active, 0 = off.
               #     see classpro.doc for details
      $AudioDir = "../audio";   # relative path to audio directory
    $Images_Dir = "../images";  # Relative path to images directory
       $HelpDir = '../pophelp'; # relative path to help directory

  $ImpNoticeClr = "FF0000";# Color of text for error and important messages
                           # The user should be aware of. Recommended
               # color is Red.

                # Setable background colors for AD display
                # table, and CGI generated screens.
                            # READ classpro.doc before changing!
       $Row1Clr = "336666"; # Table row 1 color (AD header row) (dark)
       $Row2Clr = "E7EFE7"; # Table row 2 color (AD Byline row) (light)
       $Row3Clr = "E7EFE7"; # Table row 3 color (AD subject row)
       $Row4Clr = "FFFFFF"; # Table row 4 color (AD content row)
       $Row5Clr = "CCCC99"; # Table row 5 color (AD footer row)

    $TableWidth = '580';   # Default AD table width(pixels). Adjustable for
               # frames. Logical range: 540-640 (see classpro.doc)
               # To accomodate 640x480 viewers, set to 540.
               # Do not set lower than 500! This setting effects
                           # ALL CGI generated screens.

      $AdBorder = '1';     # Display AD table borders? 0=off, 1 to 5=on
                           # (Higher number = wider border)

    $ViewadsURL = "$WebSiteURL/classpro/viewads.html";
               # This FULL URL is required/used by the Keyword
               # Advisory Service system. It is inserted in the
               # E-mail AD copy received by Subscribers to the service.

         $Flock = 1;       # System wide file locking
               # 1=on (default), 0=off (See documentation)

# * * * * * * * * * * * * * FEE based ADs setup * * * * * * * * * * * * *
                           # All fees charged are amount per month or week
                           # as defined in "$AdTime" variable above.
 
   $ChargeForAd = "yes";   # Enter yes in lowercase if charging for posting
               # NEW ADs. If yes, edit the following items:

    $FreeAdTime = '0';     # '1' = first month/week free. Based on "$AdTime"
               # setting above. Read classpro.doc for details.
     $MoneySign = '$';     # Monetary symbol for your country. Example:
               # RM, DM, USA=$, UK=£.
$SingleCategory = 4.99;    # Price to charge for AD, first category placement
$MultipleCategory = 1.99;  # Price to charge for AD in additional categories.

   $RenewCharge = "yes";   # Enter yes if charging for AD RENEWALS.
      $RenewAmt = 2.99;    # Price to charge for renewing AD.

     $EmailBill = "yes";    # Send invoice by E-mail? (for payment by mail)
     $PayInDays = '5';     # E-mail invoice must be paid within x business days
# If you will be using E-mail Invoicing, fill-in the following Payee details:

         $PayTo = "Payee Name"; # Check/Money Order payable to?
    $MailToName = "Name";
 $MailToAddress = "Address";
    $MailToCity = "City,State,Postal Code";

################ END of configurable system variables ###################

########### If needed, edit outgoing email notices below    #############

The rest of the configuration file consists of webmaster configurable "Header" and "Footer" areas used by the CGI displayed pages...

"If you think Smart Classified ADs is a nice CGI package, would you take a moment to enter YOUR "vote" at the cgi-resources index?"

Purchase Smart Classified ADs

Script Rating:

Web Hosting | FAQ's | Online Demo | Add-in Modules | Contact | Home

Smart Photo ADs also available | A photo based Classified AD system

Copyright © 1997-2012 Home Office Online All rights reserved.