coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: timopro on January 19, 2004, 10:24:19 PM

Title: new button
Post by: timopro on January 19, 2004, 10:24:19 PM
Is possible to add a new button, for example a button for back to my home page??


thanks

Tim
Title: new button
Post by: jmc on January 20, 2004, 01:22:40 AM
Hi, Timopro!
Yes, of course you can add new buttons. You need to edit the theme.php file. Look for the section which begins with "Begin album list" to find the code for your menu options, then copy/paste to create a new menu item and adjust the code as required. Exactly how you do this will depend on which "theme" you are using!!! E.g. I use the "Hardwired " theme, and I created a new button to link to my phpbb2 forums by editing the code to include this:
</td>
                                                                                <td><img name="buttonright1" src="themes/hardwired/images/buttonright1.gif" width="7" height="25" border="0" id="buttonright1" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/hardwired/images/buttonleft1.gif" width="7" height="25" border="0" id="buttonleft1" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter1.gif">
                                                <a href="/phpbb2">Forums</a>
                                        </td>

So, I copied another "button" entry, and edited the text entry to say "Forums", setting the link back to "/phpbb2", my Forums. You could substitute this with "/home.html" or whatever!
Hope this helps!
John Mc
Title: new button
Post by: timopro on January 20, 2004, 12:12:47 PM
thanks very much jmc!! :!:  :!:  8)
Title: Re: new button
Post by: JCphotog on May 25, 2004, 12:56:28 AM
Cool.  I did the same thing but at the top menu next to my gallery.
I modified buttonmyleft.gif in photoshop to add afew more dots to bottonhome
Just before <!--BEGIN my_gallery-->

Quote<!-- BEGIN forum_home -->
                                        </td>
                                       <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonhome" src="themes/hardwired/images/buttonhome.gif" width="17" height="25" border="0" id="buttonhome" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter.gif">
                                                <a href="http://yourdomain.com/index.htm">Home</a>
                                        </td>
                                        <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0" id="buttonright" alt="" /></td>
<!-- END forum_home -->

Thanks for the thought of copying the button text!