coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: paycheck on August 24, 2004, 05:52:06 AM

Title: Added a new button in the main Menu, need to change text on it
Post by: paycheck on August 24, 2004, 05:52:06 AM
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
Title: Re: Added a new button in the main Menu, need to change text on it
Post by: Joachim Müller on August 24, 2004, 10:31:39 AM
post your modification in theme.php.

GauGau
Title: Re: Added a new button in the main Menu, need to change text on it
Post by: paycheck on August 25, 2004, 05:24:56 AM
$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
Title: Re: Added a new button in the main Menu, need to change text on it
Post by: Joachim Müller on August 25, 2004, 08:09:45 AM
$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