Welcome to Geeklog, Anonymous Sunday, November 10 2024 @ 07:05 pm EST
Geeklog Forums
Random Photo Block
I have 2 small concerns here. #1, how do I center the picture in the random photo block? and #2, everytime I click on a random photo picture it tells me that the "page cannot be displayed". How do I fix this? Thanks!
Juice
President
www.juicedome.com
Juice
President
www.juicedome.com
10
11
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
#1: I changed that in lib-custom.php
look for phpblock_GalleryRandomPhoto and enter the center tags according to my example.
$id = $album->getPhotoId($index);
$retval = ""
."<center><a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
.$album->getThumbnailTag($index)
."</a></center>";
#2 if you look at the properties of the random picture... is the URL to the picture correct?
geKow
look for phpblock_GalleryRandomPhoto and enter the center tags according to my example.
Text Formatted Code
if (isset($index)) {$id = $album->getPhotoId($index);
$retval = ""
."<center><a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
.$album->getThumbnailTag($index)
."</a></center>";
#2 if you look at the properties of the random picture... is the URL to the picture correct?
geKow
7
9
Quote
Ketch
Anonymous
the answer to the #2 question is No the URL is wrong but not sure what needs to be changed?
10
9
Quote
Ketch
Anonymous
Where is phpblock_GalleryRandomPhoto located so that we can center the images. also where is lib-custom.php
13
7
Quote
raja
Anonymous
it works!!
9
7
Quote
All times are EST. The time is now 07:05 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content