Loading... Please wait...

Our Newsletter


coral palms

Knowledgebase Home | Glossary | Favorites | Login Knowledgebase Home | Glossary | Favorites | Login
Search the Knowledgebase Browse by Category
Ez Auction
Article Details

Last Updated
6th o March, 2008

Setting up the Script.

Upload the images contained in the image directory to the following places on your hosting server:
hot.gif, cam.gif, new.gif, ending.gif must all be uploaded into your root directory, (where your normal HTML pages are stored.)
All other .gif files must be uploaded into a directory names 'images' in your root.

Create a directory named 'auctiondata8' in your root directory, and within the 'auctiondata8' directory, create other numbered directories, starting with 'category01' and going up to 'category30' (or the amount of categories you will have in the final configured script.)


Variables:
# The Base Directory.  We need an
# absolute path for the base directory.
# Include the trailing slash.  THIS SHOULD
# NOT BE WEB-ACCESSIBLE!

$config{'basepath'} = '/u/ureurl/auctiondata8/';


# Closed Auction Directory
# This is where closed auction items are stored.
# Leave this blank if you don't want to store
# closed auctions.  It can potentially take
# up quite a bit of disk space.

$config{'closedir'} = 'closed';

# User Registration Directory
# This is where user registrations are stored.
# Leave this blank if you don't want to
# require registration.  It can potentially
# take up quite a bit of disk space.

$config{'regdir'} = 'reg';

#####################
# Pic Icon
$config{'imageiconpath'} = "<img src=\"http://www.uresite.com/cam.gif\" width=\"32\" height=\"27\" border=\"0\">";

####################
# View new items
# $newdays = number of days item is considered new
# $newiconpath = URL to an icon for displaying
$config{'newdays'} = 1;
$config{'newiconpath'} = "<IMG SRC=\"http://www.uresite.com/new.gif\" width=\"26\" height=\"21\" border=\"0\">";

###################
# View Hot Items
$config{'hotitemnum'} = 2;
$config{'hoticonpath'} = "<IMG SRC=\"http://www.uresite.com/hot.gif\" width=\"28\" height=\"11\" border=\"0\">";

######################3
# View ending soon items
# $endhours = number of hours left in auction to be considered closing soon
# $endiconpath = URL to an icon for displaying
$config{'endhours'}  = 24;
$config{'endiconpath'} ="<IMG SRC=\"http://www.uresite.com/ending.gif\" width=\"41\" height=\"10\" border=\"0\">";


# List each directory and its associated
# category name.  These will point to the empty folders
# you created within the 'auctiondata8' folder.
# You should make sure you have enough folders created in
# the 'auctiondata8' folder to accomodate all the categories
# named below.
# to Modify Categories follow this layout
# category# => sub cat
#
# category01 => 'Ford',
# category02 => 'Chevy',
# category03 => 'Fiat',
# category04 => 'Pontiac',
# category05 => 'Buick',
# category06 => 'Hardware',
# category07 => 'Software',
# category08 => 'Drives',
# category09 => 'Video',
# category10 => 'Systems',
# Etc

%category = (
 category01 => 'Ford',
 category02 => 'Chevy',
 category03 => 'Fiat',
 category04 => 'Pontiac',
 category05 => 'Buick',
 category06 => 'Hardware',
 category07 => 'Software',
 category08 => 'Drives',
 category09 => 'Video',
 category10 => 'Systems',
 category11 => 'cat11',
 category12 => 'cat12',
 category13 => 'cat13',
 category14 => 'cat14',
 category15 => 'cat15',
 category16 => 'cat16',
 category17 => 'cat17',
 category18 => 'cat18',
 category19 => 'cat19',
 category20 => 'cat20',
 category21 => 'cat21',
 category22 => 'cat22',
 category23 => 'cat23',
 category24 => 'cat24',
 category25 => 'cat25',
 category26 => 'cat26',
 category27 => 'cat27',
 category28 => 'cat28',
 category29 => 'cat29',
 category30 => 'cat30',
);
######################################
# The categories named above will show up in your
# auction main page under main category headings.
# You need to group the categories above under those headings.
# If you just want a list of categories without them being split
# under numerous headings then just list all your categories
# under %cats1, below and leave all the other $cats options empty:
# %Cats1 = (
# category01 => 'Ford',
# category02 => 'Chevy',
# category03 => 'Fiat',
# category04 => 'Pontiac',
# category05 => 'Buick',
# );
# %Cats2 = (
# category06 => 'Hardware',
# category07 => 'Software',
# category08 => 'Drives',
# category09 => 'Video',
# category10 => 'Systems',
# );

%Cats1 = (
 category01 => 'Ford',
 category02 => 'Chevy',
 category03 => 'Fiat',
 category04 => 'Pontiac',
 category05 => 'Buick',
);
%Cats2 = (
 category06 => 'Hardware',
 category07 => 'Software',
 category08 => 'Drives',
 category09 => 'Video',
 category10 => 'Systems',
);
%Cats3 = (
 category11 => 'cat11',
 category12 => 'cat12',
 category13 => 'cat13',
 category14 => 'cat14',
 category15 => 'cat15',
);
%Cats4 = (
 category16 => 'cat16',
 category17 => 'cat17',
 category18 => 'cat18',
 category19 => 'cat19',
 category20 => 'cat20',
);
%Cats5 = (
 category21 => 'cat21',
 category22 => 'cat22',
 category23 => 'cat23',
 category24 => 'cat24',
 category25 => 'cat25',
);
%Cats6 = (
 category26 => 'cat26',
 category27 => 'cat27',
 category28 => 'cat28',
 category29 => 'cat29',
 category30 => 'cat30',
);

###########################################
# You should then go into the Display Categories and change the
# Text 'Main Category' to the name of the main categories you want. These categories are actually listed after the text that says 'you do not need to alter anything below here' in the script, so you will need to scroll down and find the category listing code and change the 'Main Category 1', 'Main Category 2' etc. headings to whatever you want. Remember to get rid of any categlory code blocks for excess categories. You can also add more main categories should you wish.
#
#
#
##############################################
# This is the password for deleting auction
# items. YOU MUST CHANGE THIS PASSWORD to one known only by YOU (other people who have this script will know the default password)!!!

$config{'adminpass'} = 'auctions';

# You need to assign either a mail program or
# a mail host so confirmation e-mails can
# be sent out.
# Leave one commented and one uncommented.
#
# YOU NEED EITHER A MAIL PROGRAM
# $config{'mailprog'} = '/usr/lib/sendmail -t';
#
# OR YOU NEED A MAIL HOST (SMTP)
$config{'mailprog'} = '/usr/sbin/sendmail -t';
#$config{'mailhost'} = 'localhost';

# This line should be your e-mail address

$config{'admin_address'} = 'you@email.net';

# This line should point to the URL of
# your server.  It will be used for sending
# "you have been outbid" e-mail.  The script
# name and auction will be appended to the
# end automatically, so DO NOT use a trailing
# slash.  If you do not want to send outbid
# e-mail, leave this blank.

$config{'scripturl'} = 'www.mysite.net';

# This will let you define colors for the
# tables that are generated and the
# other page colors.  The default colors
# create a nice "professional" look.  Must
# be in hex format.

$config{'colortablehead'} = '#CCCCCC';
$config{'colortablebody'} = '#EEEEEE';
$config{'colortablebody2'} = '#EEEEEE';
$config{'colortableborder'} = '#000000';

# Site Name (will appear at the top of each page)

$config{'sitename'} = 'E-Z Auction Software';

# repeat site name with no spaces

$config{'sitename2'} = 'E-ZAuctionSoftware';


# Sniper Protection...  How many minutes
# past last bid to hold auction.  If auctions
# should close at exactly closing time, set
# to zero.

$config{'aftermin'} = 5;


# File locking enabled?  Should be 1 (yes)
# for most systems, but set to 0 (no) if you
# are getting flock errors or the script
# crashes.

$config{'flock'} = 0;

# User Posting Enabled- 1=yes 0=no

$config{'newokay'} = 1;

#################################################
# Thats it for the Variables
# If the Script will not run at all...
# Check Path to Perl
# Thats the Very first line in the script
# make sure you have uploaded the script to the cgi-bin and set permissions correctly
#
#
# If you get errors similar to cannot open or read directory
# Check your basepath <----This is the most common error
# then check permissions
#
#
# If you do not recieve an email after registering
# Check your email server settings
#
#
#
#
########################### FEEDBACK SCRIPT #
#
The Feedback is set up in the same manner as the Auction Script. perl path and basepath should be set the same.
Currently this script does not send email..and those variables are there for future use.
to maintain the same look and feel of your site. Copy and paste your header and footer from the Auction Script into this one and
eveything will look the same. In the future revisions the header and footer configuration will not be required.

Related Articles
No related articles were found.
Attachments
No attachments were found.




paypal logo  google checkout logo

Copyright 2005 - 2010 coral palms. All rights reserved.

Master Resale Rights - You may purchase the software, sell it and allow the new owner to offer his/her customers to pass along the master resale rights.
Resale Rights - You may purchase the software and resell it without giving resale rights to the purchaser.
Non Resale Rights - You may purchase the software for your own personal use, but you may not resell the software.
Private Label Rights - You may purchase the software and modify the author, design, code, etc.