zevranman
Beginner


Joined: Dec 11, 2004 Posts: 1
|
Posted: Sat May 27, 2006 4:08 pm Post subject: Random/Newest Photo blocks |
|
|
Hi all. I have a problem with the Random Photo and Newest Photo blocks. My website is at www.zevran.com/site. When I am on my home page (index.php), the photo cuts out the "site" directory from the link's URL. When I am in admin.php or modules.php, it links correctly. I have rummaged through the code, and it doesn't seem to actually be a problem with the blocks, but Gallery. In the block's code, it gets the URL of the photo and album from Gallery:
$PHOTO_URL = makeAlbumUrl($newestPhotoAlbum->fields['name'], $id);
$ALBUM_URL = makeAlbumUrl($newestPhotoAlbum->fields['name']);
So apparenly Gallery is supplying an incorrect URL when I am on index.php, but not modules.php or admin.php.
The URL of today's photo is (which is correct in modules.php and admin.php): http://www.zevran.com/site/modules.php? ... _photo.php
The URL Gallery supplies on index.php:
http://www.zevran.com/modules.php?set_a ... _photo.php
Anyone have any suggestions?
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.zevran.com/site/modules/gallery
Gallery version: 1.5.1
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system: UNIX
Web browser/version (if applicable):
The CONFIG lines from the top of your block file(s): |
|