[Solved]: 1.4 Button Changes - Where to edit and change formatting [Solved]: 1.4 Button Changes - Where to edit and change formatting
 

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]: 1.4 Button Changes - Where to edit and change formatting

Started by mtritt, June 20, 2009, 09:01:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mtritt

Hi, everyone.

I just installed Coppermine 1.4 and bridged it with MyBB.  Everything worked as planned.  I'm in the process of modifying the template so it matches my main site and I want to modify the button.  Everything I've read so far says to edit theme.php, but it looks like those core items were moved somewhere else and I can't find a post that says where exactly you can edit the submenu.

Also, I want to left/right justify them, remove the little separators, and space them out a little in the box.  I've placed them in a box, but would like to do the rest as well.  I guess as long as I can find where to edit the menus, I can do this, correct?

Here's a link to what I've done so far so you can see the menu in its own container.

http://www.southfloridacycling.net/gallery/

Thanks, everyone.  Glad to be on-board with such a quality product.

mtritt

I did some more poking around and it looks like these are now in themes.inc.php and is shared code for all templates.

Nibbler

You need to copy the code from the sample theme into your own theme.php. Don't modify include/themes.inc.php (or any core file) since this will make updating harder in the future.

For example to remove the spacer, add this to your theme.php


$template_sys_menu_spacer = "";

mtritt

Thanks!

I was just about to post that I found the sample/template.php file and tested that it pulls from that file if copied over.

Back on track...


mtritt

Whoop... Just noticed that you posted the bit for the separator.  Nice.

If I want to encode a CR/LF into that to place them on separate lines, how would that be done?

Nibbler

Either set it to <br /> or redo the menu to use a list instead.

mtritt

Yeah, I just tried throwing an html break in there and it worked and rushed back to post.

I think I'm going to save my posts for when I =really= have a problem.

Thanks, man!  Excellent and speedy support!