Changing intermediate or thumb rollover Changing intermediate or thumb rollover
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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