Welcome to Geeklog, Anonymous Saturday, June 22 2024 @ 09:50 am EDT

Geeklog Forums

Random Photo Centering Picture


sam

Anonymous
I have Random Photo up and runing fine. The problem is that the thumb nail photo in the block is not centered. The caption is centered. Is there an easy fix for this! thanx.
 Quote

Status: offline

akerin

Forum User
Junior
Registered: 08/22/02
Posts: 19
In your random photo code in your lib-custom, find:
Text Formatted Code


<a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
                    .$album->getThumbnailTag($index)
                    ."</a>


and add center tags:

Text Formatted Code

            $retval = ""
                    ."<center><a href=" .makeAlbumUrl ($album->fields["name"], $id) .">"
                    .$album->getThumbnailTag($index)
                    ."</a></center>";
 Quote

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