Table of Contents
Introduction

TGPX allows you to create an unlimited number of TGP pages to display your galleries. This document will describe how you can add, update, and remove the TGP pages that TGPX will be building.

While TGPX does not set a limit on the number of TGP pages you can configure, your server configuration will be a limiting factor. If you plan on having a very large number of TGP pages generated by TGPX (500+) it is highly recommended that you have a high-end dedicated server.

Searching/Viewing TGP Pages

To view the currently configured TGP pages so you can modify or delete them, access the TGP Pages > Manage Pages function from the control panel menu. This will display a page where you will be able to see all of the currently configured TGP Pages and search them if necessary.

In the table that displays the TGP pages you have configured, you will find several functions that you can run on a single TGP page at a time. Each of those functions are described below. In addition to running these functions on single TGP pages, you can also delete multiple pages at once. To do this, put a check in the checkbox next to the TGP pages you want to delete, then press the Delete button at the bottom of the page.

Adding TGP Pages

On some servers PHP has it's open_basedir setting configured so that PHP scripts can only write files in specific directories. In shared hosting environments, this setting is often configured in such a way that TGPX Server Edition will not be able to create TGP pages for sites other than the one it is installed on. In these cases you will need to have your server administrator adjust the open_basedir setting so that TGPX Server Edition can write to all of the directories that are for websites that you own and want to generate TGP pages for.

To add a new TGP Page, access the TGP Pages > Manage Pages function from the control panel menu. Near the top of the page in the header bar that reads "Manage TGP Pages" click on the icon. This will display a popup window where you will be able to enter the information for the new page. Each of the form fields are described below. Once you have filled in all of the fields as you want them, press the Add TGP Page button. This will add the new page to the database, and it will appear in the Manage Pages interface. The actual TGP page will not yet be created, that will happen after you run one of the page building functions.

Adding TGP Pages in Bulk

To add a new multiple new TGP pages at once time, access the TGP Pages > Manage Pages function from the control panel menu. Near the top of the page in the header bar that reads "Manage TGP Pages" click on the icon. This will display a popup window where you will be able to enter the information for the new pages. Each of the form fields are described below. Once you have filled in all of the fields as you want them, press the Add TGP Page button. This will add the new page to the database, and it will appear in the Manage Pages interface. The actual TGP page will not yet be created, that will happen after you run one of the page building functions.

Bulk Page Examples

Here are a few examples of the TGP page names that will be generated based on the input specified.
  1. Category: MIXED
    Filename Prefix: tgp
    File Extension: html
    Number of Pages: 5
    Conversions: -

    Generated Pages
    tgp.html
    tgp2.html
    tgp3.html
    tgp4.html
    tgp5.html
     
  2. Category: MIXED
    Filename Prefix: tgp
    File Extension: php
    Number of Pages: 2
    Conversions: -

    Generated Pages
    tgp.php
    tgp2.php
     
  3. Category: Big Boobs
    Filename Prefix: -
    File Extension: html
    Number of Pages: 3
    Conversions: Replace non alpha-numeric with dash, all letters lower case

    Generated Pages
    big-boobs.html
    big-boobs2.html
    big-boobs3.html
     
  4. Category: Big Boobs
    Filename Prefix: -
    File Extension: shtml
    Number of Pages: 4
    Conversions: Remove non alpha-numeric, no change text case

    Generated Pages
    BigBoobs.shtml
    BigBoobs2.shtml
    BigBoobs3.shtml
    BigBoobs4.shtml
     
  5. Category: ALL CATEGORIES (assume Hardcore, Softcore, Big Boobs, Anal)
    Filename Prefix: -
    File Extension: php
    Number of Pages: 1
    Conversions: Replace non alpha-numeric with underscore, all letters lower case

    Generated Pages
    hardcore.php
    softcore.php
    big_boobs.php
    anal.php
     
  6. Category: ALL CATEGORIES (assume Hardcore, Softcore, Big Boobs, Anal)
    Filename Prefix: -
    File Extension: html
    Number of Pages: 3
    Conversions: Replace non alpha-numeric with dash, no change text case

    Generated Pages
    Hardcore.html
    Hardcore2.html
    Hardcore3.html
    Softcore.html
    Softcore2.html
    Softcore3.html
    Big-Boobs.html
    Big-Boobs2.html
    Big-Boobs3.html
    Anal.html
    Anal2.html
    Anal3.html
Editing a TGP Page

To edit a TGP page you will first need to locate it through the Manage Pages interface. When you locate the page you want to edit, click on the icon to bring up the page editing interface. This interface is nearly identical to the page creation interface, and has the same form fields with the same properties. You can make the changes that you want, and then press the Update TGP Page button to save your changes.

Deleting a TGP Page

To delete a TGP page you will first need to locate it through the Manage Pages interface. When you locate the page you want to delete, click on the icon, which will ask you to confirm the deletion.

You can also delete several pages at once by putting a check in the box next to the pages you want to delete, then pressing the Delete button at the bottom of the page.

Page Quick Tasks

From the Manage Pages interface you will be able to access the quick tasks functions which allow you to perform a search and replace on your pages. To access the quick tasks interface click on the icon in the Manage Galleries interface. A popup window will appear displaying the search and replace function.

It is very important to note that if you do a replacement in the Page URL it will also be necessary to do the same replacement in the Path & Filename field to ensure that the two values are correlated correctly.

Likewise, when doing a replacement in the Path & Filename field, it may be necessary to do the same replacement in the Page URL value. If the text you are replacing appears in the Page URL, it will be necessary to run the replacement on that as well.

If you need to quickly search for and replace an item in your entire database of TGP pages, you can use this function. For example, this can be used if you have decided that you want to move all of your archive pages from a directory named 'old' to a directory named 'archive'. To do this you would enter '/old/' in the Search For box and select Page URL for the Search Field. In the Replace With box enter '/archive/'. You can now press the Search and Replace button and TGPX will automatically go through the each of your TGP pages and replace each occurance of '/old/' with '/archive/'. If you want to search for an empty value, use the special string NULL in the Search For field.

You do need to be somewhat cautious when using this feature because it will locate the text you enter in the Search For box anywhere within the field it is searching. For example, if you search for 'html' in the Path & Filename field and set it to replace with 'php' this could cause a problem for pages that have a .shtml extension. It would change those pages from .shtml to .sphp, which obviously is not correct.