coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: stardust on April 30, 2008, 04:50:42 AM

Title: [Solved]: {SUB_MENU} doesn't have breaks between links after modifying
Post by: stardust on April 30, 2008, 04:50:42 AM
I'm pretty sure there's an easy explanation to this but I searched and cannot find any thread that had this little problem too, so here I go!

My theme.php was initially blank, but with the help of the Adding Links (http://forum.coppermine-gallery.net/index.php/topic,24107.0.html) thread I was able to modify my navigation menu.

I took some links out from {SUB_MENU}, and added one with the "addbutton" function. It all went by smoothly. It's just now my sub menu used to have "::" in between links, like "Credits/Resources :: Last uploads :: Last comments :: Most viewed". After editting theme.php, however, now :: is gone, so it's all mushed together.

What can I do to get the :: back in the sub_menu?

Gallery link: http://www.itvxq.net
Title: Re: {SUB_MENU} doesn't have breaks between links after modifying
Post by: pressurecooker on April 30, 2008, 11:58:17 AM
You can try this:

open your theme.php

find this line:
// HTML template for sub menu
$template_sub_menu = <<<EOT


After that you will have a lot of html responsible for displaying your sub menu links

Each link looks something like this:
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>

What I would personally do is making the previous line look like this:

<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK} ::</a> and then doing the same with all links but the last.

However, regard this advice carefully and make sure you have retained the original copy before making changes  ;D
Title: Re: {SUB_MENU} doesn't have breaks between links after modifying
Post by: Nibbler on April 30, 2008, 12:01:15 PM
Add in


$template_sub_menu_spacer = "::";


to the top of your theme.php.
Title: Re: {SUB_MENU} doesn't have breaks between links after modifying
Post by: stardust on April 30, 2008, 07:13:12 PM
Thank you everyone.
pressurecooker, I was thinking of doing that before actually ;D
The code Nibbler gave worked just fine though.
Thanks again!