Download Perl Scripts

FantasyBetting 80227-1905FantasyBetting - $4.99 Version 80227-1905
Add to Cart



back
subscribe
download
support
demo/see it work
buy
RSS Feed
_______________________________________

Fantasy Betting Script by CrookedBush.com
(c) 2000 Jason Silver

_______________________________________
Register online at www.CrookedBush.com


_______________________________________
Installing Fantasy Betting consists of the following:

1. Setting some options at the beginning of
the fantasy_betting.pl file
2. Using FTP to upload the files
3. Setting permissions on the files
4. Administrating the Fantasy Betting

_______________________________________
Here's How!

1. Using a text editor like textpad, or notepad, open
fantasy_betting.pl

Change the location of Perl at the top of the script.

2. Upload the following files to your server all within the same Fantasy Betting directory.
a. the fantasy_betting.cgi script to your cgi-bin (you can also name it fantasy_betting.pl)
b. the running_bets.cgi file to the $datapath directory
c. the header and footer files to the $datapath directory. You may edit these files.
d. the all_users.cgi file. This will contain the info on your users.

The file structure is as follows:
cgi-bin/fb/fantasy_betting.cgi
cgi-bin/fb/all_users.cgi
cgi-bin/fb/running_bets.cgi
cgi-bin/fb/footer.txt
cgi-bin/fb/header.txt
/fb/fantasy_betting.shtml
/images/fantasybetting/icon_fantasybetting.jpg


3. Set the permissions for the fantasy_betting.pl (or .cgi) file to '755'
Set the permissions for the datapath directory to '755'
Set the permissions to running_bets.cgi to '777'.
Set the permissions on the all_users.cgi file to 777.

4. Run the script from a browser. It will display a variables page for you to
set your variables up.

a. The administrator password

b. Path to Data: Where are bet and member files stored? This is a PATH, not a URL.

c. Script URL: (to place the page in a ssi, set this to your html page or your
directory. eg: /cgi-bin/fantasybetting/

d. Running Bets File: change this if you wish, but don't forget to rename the file.

e. Currency name: (credits, dollars, francs, tabloos, etc.)

f. Currency symbol here: ($, *, , , , , or your own.)

g. Title of site: Name your site here

h. Site Description: Write a description as well:

i. Screen Width: Set your screen width preference, eg 100%, 550, etc.

j. When a player has won a percentage of bets, they recieve insider information.
Set up these percentages for insider information:
Number of Wins to reach Level One
Number of Wins to reach Level Two
Number of Wins to reach Level Three

k. Use File Lock: This locks the file so you can make changes to user data etc.
without worrying that someone else is. Set this varialbe to
false if you experience file saving problems.

l. Bright Text Color: Set your highlight text colour here

m. Starting Currency: How much currency should a new player receive? Leave the
currency symbol off of this amount.

n. Set up the alternating row colours:
Row Alternating Colour 1
Row Alternating Colour 2

o. Place your mail program and admin email in these variables:
Mail Program eg: /usr/lib/sendmail
Administrator's Email

p. Top Score Limit: If you want to view the top 10 scores, make this ten. Top 20
scores, then make this 20.

q. Save your changes

5. Now test it by logging in as admin, with your admin password. Then try adding a record.
Be careful using HTML in your record descriptions.
Create a new player, and bet on the fight, then log in as admin again and announce a winner.
See if it works, and let me know so I can participate! :)

6. Upload bet_limiter.cgi to the cg-bin/fb/ folder if you want to limit the number of allowed
bets a user can make. Set the value in this file to the number of bets. THen each week, or
month, or year, reset every user's count automatically to start again.

THAT'S IT, FOLKS!

If you have suggestions, love mail, or hate mail, send it to me. We all
grow through criticism, right?

Yours,
Jason Silver
Intelliscript.net

_________________________________________________
A Tiny Little Division of CrookedBush.com


 
top next subscribe download faq demo/see it work purchase xml pad file RSS Syndication OPML List - All Programs



[admin]

FileCABINET Script - Create a File Download section on your site.

In the Spotlight

SiteShadow $0.00
Add to Cart
 SiteShadow pulls information from other web sites, and places it within your own content as if it were your own. Put a favourite web site on your own web site, changing graphics, header, footer, or names. Or pull content from a free web host and save server space. You can even erase code, like those annoying pop-up banners.
[more & download links]

What People Say

In-Out $5.00
Add to Cart This is so easy to set up... I love it. Basically, I just run the application on each staff person's computer, and set them up with the in-out URL and their own 'extension.' Then I go to the in-out URL and enter the user's full name. That's it. Easy.

Thanks for a great script.

[more & download links]

Post Page Comment