coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: alexandre596 on July 25, 2011, 06:30:59 PM

Title: change thumbs style
Post by: alexandre596 on July 25, 2011, 06:30:59 PM
I have coppermine on my server, and I created a style on style.css to make thumbs looks 88x128, and when mouse on, show the whole thumb..
everything OK, but I can't apply that style on HTML, since the Gallery tag takes the WHOLE gallery, not only the thumbs..
and I don't want the "normal" pics be that size...

any way to do it??
thank you ;D
Title: Re: change thumbs style
Post by: Αndré on July 25, 2011, 08:22:38 PM
It's possible to add some extra class to all thumbnails with the help of a plugin, i.e. change
class="image"
to
class="image thumb"


Would that work for your purpose?
Title: Re: change thumbs style
Post by: alexandre596 on July 26, 2011, 01:53:27 AM
where should I place it??

I tried put it on {Gallery} tag, but all the pics changed, not only the thumbs..

here, the HTML / CSS code, idk if it'll be useful

HTML
http://pastebin.com/u8yGQF9H

CSS
http://pastebin.com/t1G7rneJ

and the page online
http://78violet.org/photos/

thanks


Title: Re: change thumbs style
Post by: Αndré on July 26, 2011, 12:10:39 PM
I asked you if that change would be enough to accomplish what you described. The plugin doesn't exist yet, but it should be quite easy to create.
Title: Re: change thumbs style
Post by: alexandre596 on July 26, 2011, 01:48:03 PM
QuoteI asked you if that change would be enough to accomplish what you described. The plugin doesn't exist yet, but it should be quite easy to create.

oh, sorry, now I get it haha

well, I think so, since all I want to do is change the class..
that change is enought ;D
Title: Re: change thumbs style
Post by: Αndré on July 26, 2011, 03:04:41 PM
I just created a small plugin, which you can download here: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/thumbnail_class/?view=tar
Title: Re: change thumbs style
Post by: alexandre596 on July 26, 2011, 04:10:32 PM
working

thank you soo much