Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:27 am EDT

Geeklog Forums

Random Photo Block


Status: offline

]uice

Forum User
Junior
Registered: 06/10/04
Posts: 20
blank
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
 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.

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
 Quote

Ketch

Anonymous
the answer to the #2 question is No the URL is wrong but not sure what needs to be changed?
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
Check if you have the corret path to the album in your lib-custom.php.

Sam
 Quote

Ketch

Anonymous
Where is phpblock_GalleryRandomPhoto located so that we can center the images. also where is lib-custom.php
 Quote

raja

Anonymous
artistic
it works!!
 Quote

All times are EDT. The time is now 07:27 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