#################################### # NETCARD 2.0 # # Aytekin Tank # email: aytekin@bridgeport.edu # http://www.interlogy.com/scripts/netcard # #################################### #################################### # # STEP BY STEP SET UP IN 5 MINUTES: # #################################### FILES YOU NEED: - netcard.htm : form for addition - netcard2.pl : netcard script - netcard2.cfg : configuration - up.cgi : upload script - readme2.txt : Documentation 1) Open netcard.htm with notepad and change this address to your CGI-BIN directory:
2) Create the folder where the netcards to be placed: mkdir foldername 3) Copy netcard.htm and "images" folder into the folder. Uploaded files will be placed onto images folder. 4) Make the folders writable: chmod a+rw foldername chmod a+rw foldername/images 5) Open netcard2.cfg with notepad and modify the variables. No need to modify netcard.pl or up.cgi. Everything you need is on the configuration file. 6) Copy netcard2.pl, up.cgi and netcard2.cfg into your CGI-BIN (in ASCII mode) 7) Make the netcard2.pl and up.cgi executable: chmod a+rx netcard2.pl chmod a+rx up.cgi 8) Go to http://youraddress/foldername/netcard.htm and create your first netcard. Program will automatically create the list.htm file, where you can see the list of entries. That's all. If you skip any step, program will probably not work or partially work. Fell free to send me an email to aytekin@bridgeport.edu about your opinions or questions. This script is totally FREE, so I can not promise for support. I can install and customize the script for you for a reasonable price. #################################### # # UPGRADING FROM NETCARD 1.x: # #################################### - change the name of list.htm file to the oldlist.htm, and do the process above. You must change the filename and delete the "list.htm". Otherwise it will not write on there. #################################### # # CUSTOMIZING THE CARD WITH YOUR NEEDS: # #################################### OK, let's say, you don't want to use the script as a bussiness card. Let's say, you want to use it as a stamp catolog, where people can see the picture of the stamp at the left side and information about it at the right side. 1) Go to the netcard.htm and make the fields you dont want to use hidden: before : after : 2) Open netcard2.cfg with an editor and find the "$cardHTML" in "sub createHTML", and replace it with some other html file: You can use these variables in the template: $bgcolor : background color $background : background image of the card $bgcolorcard : background color of the card $cardURL : address of the file $name : 2. field in the form $position : 3. field in the form $company : 4. field in the form $address : 5. field in the form $address2 : 6. field in the form $tel : 7. field in the form $fax : 8. field in the form $email : 9. field in the form $http : 10. field in the form $logo : image url $footerHTML : footer template which is in netcard.cfg too. 3) You can modify the list file similarly by changing $listHTML, $listHEADER, $listFOOTER. 4) I really would like to see what you did. Send me an email with your URL to aytekin@bridgeport.edu. #################################### # # VERSIONS: # # Netcard 1.1 # - Specify URL option for logos # # Netcard 2 # - Upload option # - Preview # - Last come at the top list # - Limited number of links in the list # - Second address line # - Checking inappropriate loginname or email # - All HTML parts are configurable # #################################### # # COPYRIGHT NOTICE: # # Copyright 1998-99 Aytekin Tank. # # This program may be used and modified free of charge by anyone, so # long as this copyright notice and the header above remain intact. # Selling the code for this program without prior written consent is # expressly forbidden. Obtain permission before redistributing this # program over the Internet or in any other medium. In all cases # copyright and header must remain intact. # # This program is distributed "as is" and without warranty of any # kind, either express or implied. All responsibility is belong to # you if any damage or loss occurs. #################################### # please send me an email to aytekin@bridgeport.edu # about any bugs, problems or critics. Thank you. ####################################