Add an extra link to {SUB_MENU} Add an extra link to {SUB_MENU}
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Add an extra link to {SUB_MENU}

Started by Danaldinho, November 07, 2008, 05:09:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Danaldinho

Hi, I am using the greenflower theme on my gallery as you can see on here: http://www.lilwaynehq.com/cpg1419/. Now I am trying to add a link to the {SUB_MENU} which is "Gallery Index", because I am going to remove that green navbar just under the logo and the only link I need from it is the "Home", so I went to theme.php and used this code:

// HTML template for sub menu
$template_sub_menu = <<<EOT
                                         <h2>Gallery Menu</h2>
                                         <ul>
<!-- BEGIN custom_link -->
                                            <li><a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a></li>
<!-- END custom_link -->
<!-- BEGIN album_list -->
                                            <li><a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a></li>
                                            <li><a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a></li>
<!-- END album_list -->
                                            <li><a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a></li>
                                            <li><a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a></li>
                                            <li><a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a></li>
                                            <li><a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a></li>
                                            <li><a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a></li>
                                            <li><a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a></li>
                                         </ul>


But nothing shows at all, the links just stay the same :(

I have even tried using this line of code to see if it will work:

<li><a href="http://www.lilwaynehq.com/cpg1419/" title="Gallery Index">Gallery Index</a></li>

But still no luck :(

So does anyone know how I can accomplish this, thanks alot :)

Joachim Müller

Zip the entire contents of the folder that represents http://www.lilwaynehq.com/cpg1419/themes/greenflower/ and attach the zip file to your posting.