Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: 1.4 Button Changes - Where to edit and change formatting  (Read 3148 times)

0 Members and 1 Guest are viewing this topic.

mtritt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

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.
« Last Edit: June 21, 2009, 09:37:28 am by Joachim Müller »
Logged

mtritt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: 1.4 Button Changes - Where to edit and change formatting
« Reply #1 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.
Logged

Nibbler

  • Guest
Re: 1.4 Button Changes - Where to edit and change formatting
« Reply #2 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

Code: [Select]
$template_sys_menu_spacer = "";
Logged

mtritt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: 1.4 Button Changes - Where to edit and change formatting
« Reply #3 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...

Logged

mtritt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: 1.4 Button Changes - Where to edit and change formatting
« Reply #4 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?
Logged

Nibbler

  • Guest
Re: 1.4 Button Changes - Where to edit and change formatting
« Reply #5 on: June 20, 2009, 09:56:12 pm »

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

mtritt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: 1.4 Button Changes - Where to edit and change formatting
« Reply #6 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.