Cgi Tutorials [Topsites Tutorial]

CHMODing is VERY important!,if you don't do it your scripts will NOT work
666 = Read & Write for all three columns.
755 = Read, Write & Execute for Owner, Read & Execute for Group & Other.
777 = Read, Write & Execute for all.

Need Help on CHMODing? If you use Cute Ftp click here an if you have WS_FTP click here

You should all know what topsites if not well please leave this section ...anyway I will try my best to make this as easy as I can , just follow these steps.

- First if u don't have topsites download Topsites Pro 3.05 here
- Next make sure your perl path is set right ,its usually#!/usr/bin/perl
- Then go to your FTP an make a directory called topsites an CHMOD it 777 an upload ALL files in the same directory in ASCII MODE!!
Next CHMOD topsites.cgi/out.cgi/editmember.cgi/admin.cgi/create.cgi to 755 and to 666
- OK now the fun up admin.cgi in your browser (http://yoursite/cgi-bin/topsites/admin.cgi) and since I don't know your paths you'll have to ask your host when setting the variables cause if they r set wrong your topsites WILL NOT WORK!
- OK after u set your variables you have to make your topsites not look shitty so you'll have to mess with the shit to get it looking cool,beloware some steps to get your topsites looking right...

For the header.txt/footer.txt/welcome.txt/rules.txt just insert basic html like scrollbars/link effects it?

To insert your banner and nav do this:

Below those above you will see Headers/Footers/Ad Breaks see em? OK select "create new"(should be titled headers_1.txt) an insert the html for your banner code with the basic nav like I use Ex:::

For the main links use something like these below:

For join put.. http://yoursite/cgi-bin/topsites01/editmember.cgi?new
For lost name put...http://yoursite/cgi-bin/topsites01/editmember.cgi?name
For lost html put..http://yoursite/cgi-bin/topsites01/editmember.cgi?html
For edit account put...http://yoursite/cgi-bin/topsites01/editmember.cgi?edit
For lost pass put...http://yoursite/cgi-bin/topsites01/editmember.cgi?password
For refresh topsites put...http://yoursite/cgi-bin/topsites01/editmember.cgi?create.cgi

OK now u should have everything set right now save that headers_1.txt then go to "Configure headers"(in Operations and Features edit) then click step 2 ,then click "store these changes" now what u just added should show up ,now do the same for "footers" and "ad breaks"if you want something to go at the bottom of your topsites an to add ads.An make sure after doing this ,you go back to the main admin area an click "create.cgi" to save it all!

Now for the button code just ad something like this:(just change the IMG SCR)

<A HREF="$url_to_cgi/topsites.cgi?$new_id" TARGET="_BLANK">
<IMG SRC="http:/yoursite/buttons/topsites.gif" BORDER=0 alt=Vote></A>

OK u SHOULD NOT have any more problems setting this up ,the other shit I didn't cover is basic shit u should know if not u need help badly..i tried my best to make this as easy as I can but if u must need more help post in the forums