Remote sites

All indications needed are visible in the online help pages (look at the rubber ring).

Experience shows that some webmasters can not activate their first remote site easily.

Main site contains…

|-- galleries
|   |-- category-1
|   |   |-- category-1.1
|   |   |   |-- category-1.1.1
|   |   |   |   |-- category-1.1.1.1
|   |   |   |   |   |-- pwg_high
|   |   |   |   |   |   +-- wedding.jpg
|   |   |   |   |   |-- thumbnail
|   |   |   |   |   |   +-- TN-wedding.jpg
|   |   |   |   |   +-- wedding.jpg
|   |   |   |   +-- category-1.1.1.2
|   +-- category-2
|       |-- piglet.gif
|       |-- pwg_representative
|       |   +-- video.jpg
|       |-- thumbnail
|       |   +-- TN-piglet.jpg
|       +-- video.avi

Remote site will contain only this:

remote-gallery-1
|-- remote-category-1
|   |-- remote-category-1.1
|   |   |-- remote-category-1.1.1
|   |   |   |-- remote-category-1.1.1.1
|   |   |   |   |-- pwg_high
|   |   |   |   |   +-- honeymoon.jpg
|   |   |   |   |-- thumbnail
|   |   |   |   |   +-- TN-honeymoon.jpg
|   |   |   |   +-- honeymoon.jpg
|   |   |   +-- remote-category-1.1.1.2
|-- remote-category-2
|   |-- pooh.gif
|   |-- pwg_representative
|   |   +-- heffalump.jpg
|   |-- thumbnail
|   |   +-- TN-pooh.jpg
|   +-- heffalump.avi
+-- create_listing_file.php 

create_listing_file.php script has to be placed in remote directory remote-gallery-1.
This script can be duplicated from main site in /tools/create_listing_file.php. It must be configured (Remote site configuration).

In administration of main site, the URL for remote site will be:

http://www.extend-remote-site.de/remote-gallery-1/

If http://www.extend-remote-site.de is the address of your web host.
The create_listing_file.php release must be the same than the PWG main site.

A remote site can be shared with several main sites. It allows to show the same photos in many differents galleries (but versions have to be identical).

Then the update is done with the adminitration page:

Administration → Site manager → Create new site.

Five actions are available. When you update, you have to use three of them in the order:

Each update need to rewrite the XML file. Click on generate listing to do it. When XML file is generated, you have to synchronize the database with this remote XML file. To do it, click on synchronize. To finish, you can click on clean to delete the XML file in order to avoid anybody to read this file which contains all the URLs of your photos. The delete options is for suppress the remote site of your database.

The remote site server can block the remote call to create_listing_file.php script. In this case, the script must be called manually from your browser.

If the number of photos on the remote site is very big, it is recommended to read the wiki's page about the remote site limitation.

Finally you can read the page about remote site usage.


Back to the FAQ

 
Back to top
user_documentation/oldies/remote_site.txt · Last modified: 2013/03/08 14:21 by flop25
 
 
github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact