Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 12:39 pm EDT

Geeklog Forums

My Random photo not center alligned..


Status: offline

cinoz

Forum User
Chatty
Registered: 09/07/04
Posts: 61
my photo that generate randomly in one of my block seems doesn't show perfectly center.. more justifeied to the left.. so, how i can make the photo shows up in center justified.. seems odd to see photo a bit left and the discription is at center.. help plz..
 Quote

Status: offline

jonc

Forum User
Chatty
Registered: 09/12/04
Posts: 50
in php_custom.php (geeklog/system directory) find the following code:

Text Formatted Code
        if (isset($index)) {
            $id = $album->getPhotoId($index);
            $retval = ""
                    ."<a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
                    .$album->getThumbnailTag($index)
                    ."</a>";

 


and change to:

Text Formatted Code
        if (isset($index)) {
            $id = $album->getPhotoId($index);
            $retval = ""
                    ."<center><a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
                    .$album->getThumbnailTag($index)
                    ."</a></center>";

 


Notice the placement of the "center" tags

that'll work
 Quote

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