Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Changing intermediate or thumb rollover  (Read 3290 times)

0 Members and 1 Guest are viewing this topic.

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Changing intermediate or thumb rollover
« 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 !
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changing intermediate or thumb rollover
« Reply #1 on: March 04, 2006, 07:10:35 am »

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

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: Changing intermediate or thumb rollover
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changing intermediate or thumb rollover
« Reply #3 on: March 05, 2006, 01:58:26 am »

edit themes/yourtheme/theme.php, find
Code: [Select]
            $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 ?>)
Logged

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: Changing intermediate or thumb rollover
« Reply #4 on: March 05, 2006, 02:39:13 am »

Tnx alot GauGau ! Gonna try to fix it.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.