[Solved]: {SUB_MENU} doesn't have breaks between links after modifying [Solved]: {SUB_MENU} doesn't have breaks between links after modifying
 

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

[Solved]: {SUB_MENU} doesn't have breaks between links after modifying

Started by stardust, April 30, 2008, 04:50:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stardust

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 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

pressurecooker

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
Join the green campaign - Environmental Articles

Nibbler

Add in


$template_sub_menu_spacer = "::";


to the top of your theme.php.

stardust

Thank you everyone.
pressurecooker, I was thinking of doing that before actually ;D
The code Nibbler gave worked just fine though.
Thanks again!