Table of Contents
Introduction

With the Server Edition of TGPX you have the ability to create TGP pages for any of the sites hosted on the same server as your TGPX installation. This also gives you the ability to have separate gallery submission forms, search forms, and partner management interfaces for each site. This document will provide information on how to configure domains in your TGPX installation and also how to setup the scripts on the domains you add.

Searching Domains

To search the current domains you have configured so you can modify or delete them, access the Settings > Manage Domains function from the control panel menu. This will display a page where you will be able to see and search the current domains you have configured. All of the database fields that you can search use the software's Standard Search function. In the table that displays the domains, you will find a couple of functions that you can run on a single domain at a time. Those functions are described below. In addition to running functions on single domains at a time, you can also delete multiple domains at once by putting a check in the box for each domain you want to delete and then pressing the Delete button at the bottom of the page.

Adding a Domain

To add a new domain, access the Settings > Manage Domains function from the control panel menu. Near the top of the page in the header bar that reads "Manage Domains" click on the icon. This will display a popup window where you will be able to enter the domain information that you want to use. Each of the form fields are described below. Once you have filled in all of the fields as you want them, press the Add Domain button. This will add the new domain to the database.

Editing a Domain

To edit a domain you will first need to locate it through the Manage Domains interface. When you locate the domain you want to edit, click on the icon to bring up the domain editing interface. This interface is nearly identical to the domain 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 Domain button to save your changes.

Deleting a Domain

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

Creating TGP Pages for Domains

Creating TGP pages for other domains is no different than creating pages for the domain on which TGPX is installed. You will simply need to enter the appropriate Path & Filename and Page URL settings when adding the new page. Be sure that you use a full directory path when adding new pages; you must tell the software exactly where to create the file on your server so it is necessary to include the complete directory path.

If you have setup domains through the Manage Domains interface, you will be able to select them from a drop-down list on the interface where you add pages. This will speed up adding pages, as it will fill in the filename and page URL values with an initial setting which you can then edit rather than having to fill in the entire field.

Configuring TGPX Scripts on Other Domains

If you would like to use a separate gallery submission form, partner account form, search form, or gallery reporting form on each of your domains, that can be done with TGPX but will require a bit of configuration. Use these steps to setup the scripts on your other domains:
  1. Make sure the domain has been configured in the Manage Domains interface first.

  2. Decide on a directory where you would like the TGPX scripts to reside on the domain. For this example, let's assume that you will be placing them in a directory named tgpx.

  3. Make copies of the following scripts, and place them in the tgpx directory on the addon domain:

      code.php
      cropper.php
      index.php
      partner.php
      report.php
      search.php
      submit.php

  4. You will now need to edit each of these files (except the index.php file) in a text editor. Locate this comment near the top of each file: // If you are using this script on one of the domains you have defined in the // Manage Domains interface, uncomment the following line and set the directory // path to your TGPX Server Edition installation //chdir('/full/path/to/tgpxse/install'); Uncomment the chdir line like so: // If you are using this script on one of the domains you have defined in the // Manage Domains interface, uncomment the following line and set the directory // path to your TGPX Server Edition installation chdir('/full/path/to/tgpxse/install'); In the Manage Domains interface in the green box near the top of the page you will find the chdir() value you will need to use. Copy that value in place of the current chdir() value in the file. For example, if the Manage Domains interface gave you this: chdir('/var/www/vhosts/yoursite.com/html/tgpx'); The updated code in the script file would look like this: // If you are using this script on one of the domains you have defined in the // Manage Domains interface, uncomment the following line and set the directory // path to your TGPX Server Edition installation chdir('/var/www/vhosts/yoursite.com/html/tgpx');
  5. After editing the files, be sure to put the updated versions of the files on your server. The scripts are now configured and ready for use. Just be sure that any template which links to these scripts is not pointing to the domain where TGPX is installed - the links should point to the scripts that you have copied to the addon domain.