Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 01:25 am EDT
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
9
9
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
7
Quote
Ketch
Anonymous
the answer to the #2 question is No the URL is wrong but not sure what needs to be changed?
8
8
Quote
Ketch
Anonymous
Where is phpblock_GalleryRandomPhoto located so that we can center the images. also where is lib-custom.php
11
6
Quote
raja
Anonymous
![artistic artistic](https://www.geeklog.net/forum/image_set/moods/artistic.gif)
it works!!
8
5
Quote
All times are EDT. The time is now 01:25 am.
- 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