coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: hlabout on September 02, 2009, 11:42:32 AM

Title: [Solved]: Text pop up difference between FF and IE
Post by: hlabout 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
Title: Re: Text pop up difference between FF and IE
Post by: phill104 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.
Title: Re: Text pop up difference between FF and IE
Post by: hlabout on September 05, 2009, 06:55:54 PM
Thanx for the reply, will update soon.
Will it fix my problem?

Harald
Title: Re: Text pop up difference between FF and IE
Post by: Nibbler on September 05, 2009, 07:06:39 PM
If you want the image to have a title you need to set that.


$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 />";
Title: Re: Text pop up difference between FF and IE
Post by: hlabout on September 05, 2009, 07:43:54 PM
Thanks Nibbler.

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

Harald