Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 12:42 am EST

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 EST. The time is now 12:42 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