coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: n3n on March 04, 2006, 02:47:29 AM

Title: Changing intermediate or thumb rollover
Post by: n3n on March 04, 2006, 02:47:29 AM
Hi, I would like to implent http://forum.coppermine-gallery.net/index.php?topic=4049.0 code into coppermine.
I've tried to modify themes.php, functions.inc.php and displayimage.php, but it didnt work.
Could someone give me some help, or point me in the right direction ?


Tnx in advance !
Title: Re: Changing intermediate or thumb rollover
Post by: Joachim Müller on March 04, 2006, 07:10:35 AM
the thread you refer to is cpg1.3.x only. Never edit include/themes.inc.php!
Title: Re: Changing intermediate or thumb rollover
Post by: n3n on March 04, 2006, 01:13:26 PM
Tnx for the reply :)

Sorry, i think you misunderstood my question.

I'm trying to implement that css code into coppermine. I realise its an old thread, but i was
wondering if it was possible with the new version.
Title: Re: Changing intermediate or thumb rollover
Post by: Joachim Müller on March 05, 2006, 01:58:26 AM
edit themes/yourtheme/theme.php, find            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
and edit accordingly. If you don't have it, copy the function definition theme_html_picture() from themes/sample/theme.php into your theme first (into a new line right before ?>)
Title: Re: Changing intermediate or thumb rollover
Post by: n3n on March 05, 2006, 02:39:13 AM
Tnx alot GauGau ! Gonna try to fix it.