coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: mtritt on June 20, 2009, 09:01:58 PM

Title: [Solved]: 1.4 Button Changes - Where to edit and change formatting
Post by: mtritt on June 20, 2009, 09:01:58 PM
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.
Title: Re: 1.4 Button Changes - Where to edit and change formatting
Post by: mtritt on June 20, 2009, 09:14:09 PM
I did some more poking around and it looks like these are now in themes.inc.php and is shared code for all templates.
Title: Re: 1.4 Button Changes - Where to edit and change formatting
Post by: Nibbler on June 20, 2009, 09:21:10 PM
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 = "";
Title: Re: 1.4 Button Changes - Where to edit and change formatting
Post by: mtritt on June 20, 2009, 09:44:49 PM
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...

Title: Re: 1.4 Button Changes - Where to edit and change formatting
Post by: mtritt on June 20, 2009, 09:50:24 PM
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?
Title: Re: 1.4 Button Changes - Where to edit and change formatting
Post by: Nibbler on June 20, 2009, 09:56:12 PM
Either set it to <br /> or redo the menu to use a list instead.
Title: Re: 1.4 Button Changes - Where to edit and change formatting
Post by: mtritt on June 20, 2009, 10:04:36 PM
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!