Changing intermediate or thumb rollover Changing intermediate or thumb rollover
 

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]

Main Menu

Changing intermediate or thumb rollover

Started by n3n, March 04, 2006, 02:47:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

n3n

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 !

Joachim Müller

the thread you refer to is cpg1.3.x only. Never edit include/themes.inc.php!

n3n

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.

Joachim Müller

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 ?>)

n3n