Add a link on Gallery & all Album pages back to my Home

mruiz1

Joined: 2004-04-22
Posts: 9
Posted: Sat, 2004-05-01 20:11

Hello Everyone,

I've been using the Gallery for a fw months and I love it. It's made my life so much easier at work - since I built/manage the site at work.

All this website building and Gallery stuff is new to me. So please explain to me in an easy method my lame ass can understand.. haha

Question: How can I add a link to my Home Page on the Main Gallery page and all of the Album & sub album pages?

I would like it to be in the upper left hand corner below the Gallery/Album tilte. I would like it to read something like "back to xyz.com" or something like that.

How/where do I add this to the gallery page files? could you give me the code and how to insert it?

If this info is needed, the path to my gallery is http://www.xyz.com/gallery

I'm sure this is one of the most asked questions here. I did do a search for it on the forums but did not find anything specifically like this..

Thank again to the Gallery team for a great product.. I've dontated money to the team and plan to keep donating as long as I use the porgram!

Thanks,
Mike

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sat, 2004-05-01 20:20

gallery/html_wrap/gallery.header.default

if you add a link in there it will appear on all pages (as far as I know)

 
mruiz1

Joined: 2004-04-22
Posts: 9
Posted: Sat, 2004-05-01 20:22

Thanks for the fast reply.

If thats true where and how do I add the link to the code? could you provide an example of what the code will look like, where to add it on the page etc. etc.?
thanks and sorry for asking for all the details..
thanks,
mike

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sat, 2004-05-01 20:31

I do not have an even close to recent version of Gallery 1 code so here is code from v1.3 perhaps it is similar:

<?
// This is the default gallery header (for the main gallery
// page: albums.php). It's companion is gallery.footer.default. 
//
// To override this header, create a file called gallery.header
// in this directory. 
//
// NOTE: This header cets inserted below the <body> tag.
// 
// Some tips:
// * Some application variables:
//      - Gallery Title: $gallery->app->galleryTitle
//
?>

<?
includeHtmlWrap("wrapper.header");
?>

<table width=100% border=0>
  <tr>
    <td>
      <span class="head">
        <?= $gallery->app->galleryTitle ?>
            //CODE GOES HERE
             <br><a href="http://www.mysite.com">My Site</a>
      </span>
    </td>
  </tr>
  <tr>
    <td valign="top">

Although that is probably the worst way to do it, and off hand I don't know how it would look since I havent touched Gallery 1 in quite awhile, that would probably get you what you need at least for now.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2004-05-01 20:33

mruiz1,
Check out: http://tutorials.eclecticpixels.com/gallerytips/ The tutorial is as step by step as it can be.

Then there is http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=3452&start=0&postdays=0&postorder=asc&highlight=

If that does not help then I guess you would need some professional assistance. There is a few guy/gals here that can help with that Pixel Poet (Gaile) & Jade Dragon (Jade) comes to mind.

Dave

 
wicked33

Joined: 2003-12-23
Posts: 57
Posted: Sat, 2004-05-01 20:34

open wrapper.header.default within your /html_wrap/ folder, scroll all the way to the bottom, and you will see this:

eval($header);

OpenTable();

$index = $tmp_index;
}
?>

this is where your html code would be placed, as you can see, it is after the php closing tag of ?>

 
mruiz1

Joined: 2004-04-22
Posts: 9
Posted: Sun, 2004-05-02 02:26

Thanks to all who replied today... I will try the above advice and reply back to this thread how it went.. thanks again... Mike

 
mruiz1

Joined: 2004-04-22
Posts: 9
Posted: Sun, 2004-05-02 16:59

Hey Everyone,

It worked. I followed the directions at http://tutorials.eclecticpixels.com/gallerytips/, and everything went smothly.

thanks for the fast the help!
Mike