Welcome to Geeklog, Anonymous Sunday, March 03 2024 @ 12:10 pm EST

Geeklog Forums

Random Photo Centering Picture


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.

Status: offline


Forum User
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) .">"

and add center tags:

Text Formatted Code

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

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