new button new button
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

new button

Started by timopro, January 19, 2004, 10:24:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

timopro

Is possible to add a new button, for example a button for back to my home page??


thanks

Tim
And knows that, yesterday is but to-day's memory and to-morrow is to-day' s dream.

jmc

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
I'm trying hard... at least!

timopro

thanks very much jmc!! :!:  :!:  8)
And knows that, yesterday is but to-day's memory and to-morrow is to-day' s dream.

JCphotog

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!