coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Bent Wooden Spoon on September 06, 2011, 01:08:47 AM

Title: Customise images in images\tree folder
Post by: Bent Wooden Spoon 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.
Title: Re: Customise images in images\tree folder
Post by: Bent Wooden Spoon on September 06, 2011, 01:11:06 AM
Should clarify, it's the plus, minus and toggle images I'm trying to change.
Title: Re: Customise images in images\tree folder
Post by: ΑndrĂ© 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.
Title: Re: Customise images in images\tree folder
Post by: Bent Wooden Spoon 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