Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: {SUB_MENU} doesn't have breaks between links after modifying  (Read 3707 times)

0 Members and 1 Guest are viewing this topic.

stardust

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44

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
« Last Edit: April 30, 2008, 07:16:29 pm by Nibbler »
Logged

pressurecooker

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
    • Environmental Articles
Re: {SUB_MENU} doesn't have breaks between links after modifying
« Reply #1 on: April 30, 2008, 11:58:17 am »

You can try this:

open your theme.php

find this line:
Code: [Select]
// 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:
Code: [Select]
<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:

Code: [Select]
<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
Logged
Join the green campaign - Environmental Articles

Nibbler

  • Guest
Re: {SUB_MENU} doesn't have breaks between links after modifying
« Reply #2 on: April 30, 2008, 12:01:15 pm »

Add in

Code: [Select]
$template_sub_menu_spacer = "::";

to the top of your theme.php.
Logged

stardust

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: {SUB_MENU} doesn't have breaks between links after modifying
« Reply #3 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.