Importing Galleries


With TGP Rotator it is possible to import a large number of galleries into your database very quickly. This is probably the most common way you will add galleries to TGP Rotator.

The Import File

To import galleries from a file you will need to place them in a plain text file, with one gallery per line. This file will need to be named import.txt. Each line should have pipe (|) delimited data, with each field representing one piece of information about the gallery. The pieces may be in any order, but that order must remain the same throughout the file. For example: The above example has three galleries each with a sponsor, gallery URL, category, and number of thumbnails. Once you have your file in the proper format, you can upload it to the data directory of your TGP Rotator installation. Make sure you upload in ASCII mode.

Control Panel Interface

From the control panel locate and click on the Import Galleries link in the Galleries section of the menu. From the screen that appears you will have the option to either import from a text file, or cut and paste a list of galleries into a text input field. If you are going to import from the text input field, the galleries need to have the same format as is covered above for the import file.

Once you have decided how you want to import your galleries, click on the appropriate button. TGP Rotator will next load a page which shows your first gallery broken down into it's pieces. On the right hand site of the Data Analysis box you will see drop down menus. From these menus you will need to select what each field represents. If one of the pieces of data for the gallery does not fit into any of the drop down menu options, select the Skip option. TGP Rotator will ignore all Skipped fields when importing the galleries.

You can now select some options on what you want done to the galleries that are imported. You can set their weight, determine how their description will appear, select a random category for each gallery, and have TGP rotator skip over duplicate galleries.

Once you have each of the fields setup how you want it, press the Import Galleries button. TGP Rotator will begin importing the galleries and once it is complete, it will return you to the gallery import page with information on how many galleries were imported.

Important Notes

Only galleries which fit into one of your categories will be imported. Any galleries that do not match one of your existing categories will be skipped over and not imported into the database.

During the importing process it is not possible to create thumbnails for the imported galleries. To do that, you need to run the gallery scanner with the create thumbnails option enabled, or manually create them through the Display Galleries interface.