coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Lisa (Loving Lynam) on April 04, 2005, 03:24:06 PM

Title: adding a 'back' button
Post by: Lisa (Loving Lynam) 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?
Title: Re: adding a 'back' button
Post by: jpaffett on April 04, 2005, 03:43:14 PM
In the themes/mytheme/template.html file.
Title: Re: adding a 'back' button
Post by: Casper on April 05, 2005, 01:25:53 AM
or in themes/yourtheme/theme.php
Title: Re: adding a 'back' button
Post by: tomrock 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:

<!-- 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.
Title: Re: adding a 'back' button
Post by: kegobeer 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?