Tom's Newbie Booster

Free TGP
A 100% Free TGP Script

Freeware
Version 2.1



Description

This is a script which will let you run your own full TGP. It's based on the first ever TGP script which I bought, but I've since added a number of extra features in. The main thing with this TGP script was to get a decent admin area where you could delete galleries that were no longer there (something which happens a lot in TGPs) and also to have a place where you can approve and delete galleries online.


Features:

• Automatically adds the date each gallery was added.

• Full admin area:

• Approve / decline submitted galleries.

• Delete existing galleries.

• Auto archive - creates archives automatically.

• Can be fully customized.


Download & Installation


There are a lot of steps to get working with this script, so let's take it one bit at a time here. Anyone should be able to set this script up on their server - even if you've never set a PHP script up before.

Step 1 of 4
Uploading the files


1) Download the following zip file:

Free TGP Download

2) Now make a folder on your hard disk for these files to go in. Then unpack the archive (unzip the files) into that folder. You will now have a number of files in that folder.

3) Now make a folder on your domain name called /tgp/. So if your domain name is my-kinky-sex-pics.com then make a folder my-kinky-sex-pics.com/tgp/

4) Upload all of the files from the zip archive into that folder. You should now have the following files in your /tgp/ folder:

numfile
footer.html
header.html
add.php
admin.php
galleries.php
settings.php
submit.php

Got that done? Cool - time to move on. While you're connected to your webspace on FTP, do the following on your webspace:

Step 2 of 4
Creating Folders


1) Now we need to create some additional folders that the TGP script will use to store information in. First of all create a folder inside of tgp/ called galleries/. You should now have a folder called galleries/ which is inside of tgp/:

/tgp/galleries/

2) Now go into the /tgp/galleries folder in your FTP package. This is often done by double clicking on the folder. That should take you into it. Inside of the /galleries folder, create the following two folders:

confirmed/
new/


Let's recap on the folders one last time. We created a folder called tgp/ and uploaded all the files there. Then we created a folder INSIDE of tgp/ called galleries. Finally we created two folders inside of galleries/ called new and confirmed. Here's how they should now look:

/tgp/
/tgp/galleries/
/tgp/galleries/confirmed/
/tgp/galleries/new/


Step 3 of 4
Editing the settings file


In order for this script to work, it needs to be told about some of your webspace's settings. Don't worry - these aren't too hard to find.

1) Open up settings.php in notepad (or any other text editor).

2) There are five settings to alter here. You need to change the parts which appear between the quotation marks, the parts which appear RED below:

The first is your server path to the script. If the script does not work, chances are you have the wrong setting here. It's essential that this line is 100% accurate. Do not add a / to the end of the line either. For help on finding your server path, read this short tutorial:

What's my server path?

$path_to_tgp_folder = "/home/htdocs/users/tarmstro/tarmstro/footfetishtgp.com/tgp";

$your_username="user";

$your_password="pass";

$your_tgp_name = "Foot Fetish TGP";

$number_to_show = "100";

3) Upload settings.php once more - because it's been changed.

Step 4 of 4
The CHMOD part


We now need to CHMOD certain files and folders. This might sound difficult if you've never done it before, but it's actually much easier than it sounds. Please read this short guide before continuing:

CHMOD tutorial

The following files need to be CHMOD'ed to 777:

numfile

The following folders need to be CHMOD'ed to 777:

/tgp/galleries/
/tgp/galleries/confirmed/
/tgp/galleries/new/

You're done! All that remains to do is to log in to your admin area in your browser at www.domain.com/tgp/admin.php. You'll also need to customize header.html and footer.html to make the TGP look the way you want it to. submit.php is the page you should link to which is where people will submit galleries. galleries.php is the page which will display your galleries.

Give me a shout if you have problems.


Version Updates:

Version 2.1
30th June 2003

Fixed a minor bug in the archives which was not displaying all links correctly.

Please post on TNB if you find a bug.


Enter Tom's Newbie Booster here
More tips, scripts and help...