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: Customise images in images\tree folder  (Read 2573 times)

0 Members and 1 Guest are viewing this topic.

Bent Wooden Spoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Customise images in images\tree folder
« on: September 06, 2011, 01:08:47 am »

Hi,

I'm currently making a dark theme, and I want to use different buttons from some of the defaults in the images\tree folder for the config menu. I'm having problems with the expand/collapse buttons at the top and bottom. I'd like them to use the images I have in my theme's image folder rather than from Coppermine's image folder, but I don't know how.

Is there any way of changing these with theme.php?  I've seen what I think is the relevant code in admin.php, but I'm not sure if it's possible to insert it into my theme.php to change the img src, and if so how. If anyone can help I'd appreciate it.
Logged

Bent Wooden Spoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Customise images in images\tree folder
« Reply #1 on: September 06, 2011, 01:11:06 am »

Should clarify, it's the plus, minus and toggle images I'm trying to change.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Customise images in images\tree folder
« Reply #2 on: September 06, 2011, 10:41:25 am »

As far as I can tell the only way to use your own images is to either
1.) Replace the images in images/tree/
2.) Edit the code in admin.php
3.) Adjust the final output with the plugin hook page_html

Option 3 is recommended and also quite easy and fast to implement.
Logged

Bent Wooden Spoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Customise images in images\tree folder
« Reply #3 on: September 06, 2011, 02:53:32 pm »

Thought that might be the case. Many thanks for option 3, I'll look into it.

Cheers
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.