Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: adding a 'back' button  (Read 4413 times)

0 Members and 1 Guest are viewing this topic.

Lisa (Loving Lynam)

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
adding a 'back' button
« on: April 04, 2005, 03:24:06 pm »

I want to add a button to have my visitors to my picture page be able to click it to go back to my webpage. Where would I insert the code?
Logged

jpaffett

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Lesvosisland.com
Re: adding a 'back' button
« Reply #1 on: April 04, 2005, 03:43:14 pm »

In the themes/mytheme/template.html file.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: adding a 'back' button
« Reply #2 on: April 05, 2005, 01:25:53 am »

or in themes/yourtheme/theme.php
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

tomrock

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • My Coppermine Gallery
Re: adding a 'back' button
« Reply #3 on: April 05, 2005, 07:48:25 pm »

This is how I did it editing the Rainy Day theme -- I'll bet others are similar. I copied what was there and pasted this above:

Code: [Select]
<!-- BEGIN home Added by THR 3/31/05-->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="http://yoursite.com" title="Return to yoursite.com">Yoursite Home</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>
<!-- END home -->

Works like a charm.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: adding a 'back' button
« Reply #4 on: April 05, 2005, 10:45:49 pm »

When you add a table cell to an existing table, you have to make sure that all other rows contain the new number of table cells.  For example, if you have a table with 3 rows, and each row has 4 cells, and you add one more cell to row 2, you must now add another cell to rows 1 and 3, or have one of the cells span two columns (colspan).

Did you do this?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.