Return to Website from Gallery

John D Roth

Joined: 2007-05-21
Posts: 3
Posted: Mon, 2007-05-21 18:16

I've installed Gallery but have one question that I'v been unable to answer. How can I put an icon onto the gallery screen that I can click to return to my website (rather than backsopacing through the picturesd I've viewed?)

Thank you for your help.

JR

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-05-22 04:02

Hello John,

Where exactly do you want this icon?

And somehow the version number of your Gallery got lost.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
John D Roth

Joined: 2007-05-21
Posts: 3
Posted: Sun, 2007-05-27 17:52

Hello Jens,

Thank you for your reply.

I'm using Gallery V1.5 RC2

I would like to place the icon on the Galley page as opposed to an album page. The first three lines on my gallery display show:

Line 1: GALLERY
Line 2: A white line with a search box at the right side
Line 3: A gray line that says "2 albums, 9 images" on the left side and [login] on the right side.

If possible I would prefer to place the "return to website" icon in the middle of line 3.

Thank you for your help.

JR

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2007-05-28 10:44

Hi,

"line 3" you are referring to is what we call "adminbox".
Its actually a table with 2 cells. (As you described it very good with left and right)

To have something in the middle, you need to change the code a little.

open layout/adminbox.inc

add <td align="center"><?php echo $adminbox["center"] ?></td>
between the two <td> lines.

Now you have two possibilities

1.) Use your icon everywhere where this adminbox is used. (_i_ would do that)
-> Before the ?> in the file above add: $adminbox["center"]='YOUR HTML FOR THE ICON';

2.) Just use your icon on frontpage and thumbsview
-> Add that code in file albums.php and view_albums.php below $adminbox["bordercolor"] = $borderColor;

Jens
--
Last Gallery v1 Developer and v1 translation manager.