![]() |
|
Random thumbnail display - directory issues - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Random thumbnail display - directory issues (/thread-8486.html) |
Random thumbnail display - directory issues - mowgli597 - 2011-04-14 I'm trying to display a selection of random thumbnails taken from my Zenphoto galleries at the bottom of each page in an existing website (I've replaced an old jAlbum installation with Zenphoto and am trying to reproduce the old site layout.) Site structure: root I can get the thumbnails to display fine when calling them from the top-level directory (i.e. the site root) using the page testrandomimages.php as shown above I do this by using the connection code: ` ` However when I move the file into a sub-directory (e.g. under the \main directory, viz.: ....\main\testrandomimages.php) I amend the connection code to: ` ` This appears to work but no images are being displayed. The output browser source code is identical in both situations: ` [list][*] [*] [*] [img]zenphoto/zp-core/i.php?a=divisions-and-regiments/3%20GHQ%20Signal%20Regiment&i=Episkopi+1956+Panorama+from+top+of+tent.jpg&w=115&h=115&cw=115&ch=115&q=75&t=1&wmk=![/img] [*] [/list] ` I've tried combinations of inserting root directory into URLs at various points in the code but to no avail. Any guidance would be much appreciated. Mike Random thumbnail display - directory issues - sbillard - 2011-04-14 The HREF paths you show above are "relative" so they will descend from the "page" which calls them. Since you moved that page into a subfolder, that will be the root of the HREF. Try defining WEBPATH as '/zenphoto' Random thumbnail display - directory issues - mowgli597 - 2011-04-14 Perfect! That did it. Many thanks. Mike |