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. |
|

Posts: 25936
sybadon,
Did you search the forum or read anything first?
Posts: 5
yes, i did a few searches , and couldn't find what i was looking for....could you link me please...thanks
Posts: 5
I also want to know how to put a link from gallery to homepage. Which file should I edit in the html_wrap folder?
Posts: 5
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 ...
Posts: 79
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.
Posts: 7
thanks......this helped me quite a bit.
Posts: 5
how do i get into that html wrap folder???
Posts: 79
It's where you installed Gallery. Go to the directory where you installed Gallery and look for the html_wrap folder. It's there.
Posts: 14
This is what I have come up with.
It works great wthout making your header any bigger.
Posts: 5
I did it!!! Thanks for JBSRace1 and florin_andrei's help.
Posts: 14
COOL
Posts: 3
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?
Posts: 14
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?
Posts: 5
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.
Posts: 25936
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
Posts: 3
is there a way to modify this so that there is a picture instead of text at the top? thanks
Posts: 20
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
Posts: 25936
gallery.header wraps the main page
album.header wraps the album page
photo.header wraps the photo page
wraper.header wraps all pages