link to homepage from gallery?

sybadon

Joined: 2005-04-16
Posts: 5
Posted: Sat, 2005-04-16 00:31

how do i put a link in the gallery back to my homepage?

edit: it looks like your ? key was stuck, so i edited out the extra ? marks.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25936
Posted: Sat, 2005-04-16 01:01

sybadon,
Did you search the forum or read anything first?

 
sybadon

Joined: 2005-04-16
Posts: 5
Posted: Sat, 2005-04-16 01:44

yes, i did a few searches , and couldn't find what i was looking for....could you link me please...thanks

 
bushbow
bushbow's picture

Joined: 2005-04-16
Posts: 5
Posted: Sat, 2005-04-16 06:09

I also want to know how to put a link from gallery to homepage. Which file should I edit in the html_wrap folder?

 
sybadon

Joined: 2005-04-16
Posts: 5
Posted: Thu, 2005-04-21 12:21

i want to put a link to my homepage from the gallery, NOT a link to the gallery homepage.....a link to another page .....PLEASE HELP.....i searched everywhere in the help files..... thanks ...

 
florin_andrei
florin_andrei's picture

Joined: 2004-01-11
Posts: 79
Posted: Thu, 2005-04-21 19:51

Here's my gallery with "back to my homepage" link so you can see how the change actually looks like:

http://florin.myip.org/gallery/

The way i did it - went to the html_wrap/ directory in my Gallery, then:
- created a copy of gallery.header.default named gallery.header
- created a copy of gallery.footer.default named gallery.footer
Or in Unix terms:
cp gallery.header.default gallery.header
cp gallery.footer.default gallery.footer

Then i did an edit to gallery.header and entered this code somewhere at the beginning:

if (!includeTemplate('gallery.header.tpl')) {
?>
<p align="center">
<font size="+1"><a href="http://florin.myip.org/">Back to my website</a></font>
</p>
<table width="100%" border="0">

(actually my code is just the three lines that begin with p and end with /p, the rest is for your orientation)

Then i edited gallery.footer and entered this code towards the end:

</table>

<p align="center">
<font size="+1"><a href="http://florin.myip.org/">Back to my website</a></font>
</p>

<?php
includeHtmlWrap("wrapper.footer");

(again, my code is actually just the three p /p lines)

That's it. It even survives a Gallery upgrade - i only re-did it recently because of very minor changes in the .default files, but that was just because i am anal - the old modifications worked just fine with 1.5

My only complaint is that it takes up too much space at the top of the page - Gallery already takes up too much space, making the slide-shows to look awkward unless you're browsing at a really big resolution. Maybe one day i'll find a better way to add those links, that doesn't require much space at the top.

 
MellowMoodz
MellowMoodz's picture

Joined: 2004-12-17
Posts: 7
Posted: Fri, 2005-04-22 19:59

thanks......this helped me quite a bit.

 
sybadon

Joined: 2005-04-16
Posts: 5
Posted: Sat, 2005-04-23 13:54

how do i get into that html wrap folder???

 
florin_andrei
florin_andrei's picture

Joined: 2004-01-11
Posts: 79
Posted: Sat, 2005-04-23 16:22
sybadon wrote:
how do i get into that html wrap folder???

It's where you installed Gallery. Go to the directory where you installed Gallery and look for the html_wrap folder. It's there.

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Wed, 2005-05-04 03:29

This is what I have come up with.
It works great wthout making your header any bigger.

AttachmentSize
Gallery header link mod.txt2.36 KB
 
bushbow
bushbow's picture

Joined: 2005-04-16
Posts: 5
Posted: Sat, 2005-05-14 04:09

I did it!!! Thanks for JBSRace1 and florin_andrei's help.

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Thu, 2005-05-19 12:27

COOL :)

 
LadyDee

Joined: 2005-05-24
Posts: 3
Posted: Tue, 2005-05-24 23:30

I followed the intructions below exactly to add a link back to my homepage however it doesn't work for me. Is there a bug with this working for gallery v1.4.4?

JBSRace1 wrote:
This is what I have come up with.
It works great wthout making your header any bigger.

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Wed, 2005-05-25 03:23

I have only played with 1.5
I don't have 1.4.4 to play with.

florin_andrei's method may work with 1.4.4?

 
netnut

Joined: 2005-03-24
Posts: 5
Posted: Mon, 2005-05-30 11:39

Hi All
How would you do this , but the link is different for each album? Not for the whole gallery. TIA mike.
Ps: each link would be back to a different web page for each album.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25936
Posted: Mon, 2005-05-30 13:43

netnut,
you would need a different header for each album:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=82092#82092
if you have 1.5 read the rest of the thread.

Dave

 
massiveman

Joined: 2005-02-08
Posts: 3
Posted: Tue, 2005-05-31 01:56

is there a way to modify this so that there is a picture instead of text at the top? thanks

 
pdageek

Joined: 2004-09-15
Posts: 20
Posted: Sat, 2005-06-11 17:10

I'm using 1.4.4 and have replaced the gallery.header as well as the gallery.foot file but still only get it to display on the main gallery page and not at the top or bottom within each album.

http://www.ourchinaadoption.com/elenbaasphotos

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25936
Posted: Sat, 2005-06-11 17:56

gallery.header wraps the main page
album.header wraps the album page
photo.header wraps the photo page
wraper.header wraps all pages