Purchase Home Contact Addins Demo FAQ PhotoADs

The configuration file is the main module of the Smart Photo ADs system that determines all of the configurable variables available.

"Now with over 50 Webmaster configurable parameters!"

Smart Photo ADs Configuration File
##############   Smart Photo ADs Gold configuration file    ###############
##############   Version 3.0 Released June 18, 2003    ####################
####################### 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.
"Collector's Corner",               # 1
'Computer Products',                # 2
'Crafts and Hobbies',               # 3
'Electronics - For the Home',       # 4
'Employment',                       # 5
'Financial & Loans',                # 6
'Garage/yard sales',                # 7
'Health & Beauty',                  # 8
'Home - Furnishings, Services',     # 9
'Marine/Boating',                   # 10
'Personals',                        # 11
'Pets',                             # 12
'Photography- Video',               # 13
'Professional Services',            # 14
'Real Estate',                      # 15
'Recreational Living',              # 16
'Rentals and Leasing',              # 17
'Swap/Bartering',                   # 18
'Travel Related'                    # 19 No "comma" after last category!
);
################# configurable system variables ########################

# FULL SERVER PATH TO THE PHOTOADS DIRECTORY (automatically determined by server)
# In order for the default $BaseDir variable to function correctly, your site
# must have a valid domain name. If not, enter the "full server path" to the
# photoads directory instead. See photoads.doc for details.
 
       $BaseDir = "$ENV{'DOCUMENT_ROOT'}/photoads";

       $DataDir = "$BaseDir/data"; # data directory. Obtains info from $BaseDir.
                                   # no need to change.

    $WebSiteURL = "http://www.domain_name.com"; # Full URL to your web site.
                                                # This entry MUST be correct
                                                # before AD photos will be
                                                # displayed to your visitors.

     $PhotoPath = "$WebSiteURL/photoads/photos";# Combined path info for 
                                                # location of AD photos.

   $WebSiteName = "Your web site name here";    # Not necessarily your URL.
                                                # Your site's general name. 

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

  $EmailAddress = 'ads@your_domain.com'; # Email address to receive e-mail
                                         # from Smart Photo ADs

    $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)

     $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';     # 1 = Activate "Blind AD E-mail replying"
                           # 0 = Display real E-mail address in AD
                           

    $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.

      $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.
     
   $PhotoWithAD = '0';     # '0'="no". Viewer must 'click' on photo icon to
                           # display AD with photo(default). If you prefer
                           # to display AD photos when LISTING ADs, set to
                           # '1' (not recommended). "$AdsPerPage" below
                           # should be no more than '10' for slow modems.
                           # Read photoads.doc for more details...
                           # (Note: Setting not valid if $AdHeadlines = '1')

   $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. (set to '10' if variable:
                           # "$PhotoWithAD" = '1').
    $AdsPerPage = '15';    # Amount of ADs to display per page.

     $PostLimit = '3';     # Maximum categories AD can be posted to.
    $RenewLimit = '2';     # ADs can be renewed how many times?
$NoRenewalUntil = '20';    # 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, City & State entries. 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 photoads.doc for details
      $AudioDir = "../audio"; # relative path to audio 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 photoads.doc before changing!
       $Row1Clr = "336666"; # Table row 1 color (AD header row) (dark)
       $Row2Clr = "F1F1F9"; # Table row 2 color (AD Byline row) (light)
       $Row3Clr = "F1F1F9"; # 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 = '560';   # Default AD table width(pixels). Adjustable for
                           # frames. Logical range: 540-600 (see photoads.doc)
                           # To accomodate 640x480 viewers, set to 540.
                           # Do not set lower than 500! This setting effects
                           # ALL CGI generated screens.

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

# * * * * * * * * * * * * Image Upload Processing * * * * * * * * * * *
#******  Read photoads.doc before changing these variables  ***********

    $Upload_Dir = "$BaseDir/photos/"; # directory for uploaded AD photos.
    $Photos_Dir = "../photos";  # Relative path to photos directory
    $Images_Dir = "../images";  # Relative path to images directory

       $HelpDir = '../pophelp'; # relative path to help directory

       $ImgSize = '33000'; # (Bytes) Maximum SIZE of image file allowed.
     $ImgHeight = '250';   # (pixels)Maximum HEIGHT of uploaded image allowed.
      $ImgWidth = '350';   # (pixels)Maximum WIDTH of uploaded image allowed.
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

    $ViewadsURL = "$WebSiteURL/photoads/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 photoads.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;  # Amount to add for posting 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 = "Pay To Name"; # Check/Money Order payable to?
    $MailToName = "Name";
 $MailToAddress = "Address";
    $MailToCity = "City, State Postal Code";

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

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

"If you think Smart Photo ADs is a nice software program, would you take a moment to "Rate it" at the cgi-resources.com index?"

Purchase Smart Photo ADs

Script Rating:

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

Smart Classified ADs Professional Edition | A professional Classified AD system

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