Advanced search  

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

Pages: [1]   Go Down

Author Topic: Added a new button in the main Menu, need to change text on it  (Read 2912 times)

0 Members and 1 Guest are viewing this topic.

paycheck

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

I have added a new button and linked it through a hard coded link.  I want to now chgange the text on the button but cannot find the script to add the text name on the button.  An example of the gallery is here http://www.gotbump.net/gallery/index.php/  You will notice two "Album List" buttons, the second one is linked to the home page and I want to have it read "home"

Any help is greatly appreciated.

Thank you

JM
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Added a new button in the main Menu, need to change text on it
« Reply #1 on: August 24, 2004, 10:31:39 am »

post your modification in theme.php.

GauGau
Logged

paycheck

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Added a new button in the main Menu, need to change text on it
« Reply #2 on: August 25, 2004, 05:24:56 am »

Code: [Select]
$template_main_menu2 = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">@</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
                                        </td>
       <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
       [font=Verdana]<td class="top_menu_bttn">
                                                <a href="http://gotbump.net" target="parent" title="Home">{ALB_LIST_LNK}</a>
                                        </td>   [/font] [size=10pt][/size]                                   <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPN_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{FAV_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;

If you look at the third set of <td> tags down you will see one that has a hyperlink with http://gotbump.net.  I would like to code this like the rest of the buttons however I can't find the area where the links reside for the {_TGT} items links

THanks

JM
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Added a new button in the main Menu, need to change text on it
« Reply #3 on: August 25, 2004, 08:09:45 am »

Code: [Select]
$template_main_menu2 = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">@</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="http://gotbump.net" title="Home">whatever text you want to appear here</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPN_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{FAV_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.