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: [Solved]: Text pop up difference between FF and IE  (Read 3348 times)

0 Members and 1 Guest are viewing this topic.

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
[Solved]: Text pop up difference between FF and IE
« on: September 02, 2009, 11:42:32 am »

I have a small problem on my intermediate picture page when using firefox 3.5.
Hovering over the intermediate picture should show a text item that informs the website visitor that clicking on the picture will show the NEXT picture in the album. (installed mod to prefenct full size image pop-up)
This all works fin using IE but when using my preferred browser firefox no text is shown when hovering over the intermediate picture.
I know the code below, and especially the “view_fs” part is used to show the text pop-up.

if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
            $pic_html = "<a href='?album=$album$cat_link&amp;pos=$nextimg'>";
         $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";
        } else {

So the question is: why the text pop-up does not work in firefox?
Is there a special setting in firefox that can be changed to deal with this kind of problems? (I have observed more differences between FF and IE)

I hope someone can answer my questions.

Harald

www.haraldlabout.nl/fotografie
« Last Edit: September 05, 2009, 08:01:39 pm by Nibbler »
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Text pop up difference between FF and IE
« Reply #1 on: September 02, 2009, 12:00:01 pm »

Unfortunately, you are running behind on upgrading your site and are at risk.

Currently you are running <!--Coppermine Photo Gallery 1.4.19 (stable)-->, you should upgrade immediately. The latest stable release is 1.4.25.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Text pop up difference between FF and IE
« Reply #2 on: September 05, 2009, 06:55:54 pm »

Thanx for the reply, will update soon.
Will it fix my problem?

Harald
Logged

Nibbler

  • Guest
Re: Text pop up difference between FF and IE
« Reply #3 on: September 05, 2009, 07:06:39 pm »

If you want the image to have a title you need to set that.

Code: [Select]
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" title=\"{$lang_display_image_php['view_fs']}\" /><br />";
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Text pop up difference between FF and IE
« Reply #4 on: September 05, 2009, 07:43:54 pm »

Thanks Nibbler.

Superb advice, added the extra information to the code, working fine now.

Harald
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.