Forum Replies Created
-
AuthorPosts
-
Thanks Devin, the bug is now fixed !
berrald
OK, you are probably right…
However, I’ve bought this theme because it was a very good theme AND it was compatible with IE7.
Since it’s a very little bug, I’ll be very happy if you correct it…
Thanks,
berrald.
January 2, 2013 at 6:40 pm in reply to: Flashlight – Gallery – Correcting image squashing by editing JS on prettypicture #87068I found a correction for this (old) bug on the author forum (http://forums.no-margin-for-errors.com/discussion/3518/bug-in-_fittoviewport) :
In the file js/prettyPhoto/js/jquery.prettyPhoto.js, search the string :
_fitToViewport(pp_containerWidth,pp_containerHeight)
and replace it with :
_fitToViewport(imageWidth,imageHeight)
It worked perfectly for me !
Sorry, it doesn’t work…
Sorry, no effect…
October 6, 2012 at 9:32 am in reply to: Apostrophes Not Being Escaped In Lightbox Title or Description #54943It works !
Just insert ' where you want an apostrophe.
Thanks.
Hope Kriesi will fix it…
Meanwhile, I’ll use the “Image list attached to the entry” gallery type.
I’m a little disappointed but Flashlight is still the best photography theme !
Hi,
Thank you for your (hilarious!) response, but I’ve got the same problem in IE8 (not tested in IE9).
Normal behaviour (Safari, Firefox, Chrome…) :
Image cropped (IE7, IE8, not tested in IE9) :
By the way, here in my underdeveloped country (France) IE7 usage is closer to 3,5 % for the sites I manage :
Not a big number, but Flashlight is advertised as compatible with IE7 ;-)
Thank you for your help.
Ooops !
Posted in the wrong section, this is a Flashlight issue…
Sorry.
OK, thank you !
Hello,
Is this an issue with my computer or tooltips never appears on IE7 and 8 ?
Thank you for your response.
Same issue here :
Safari 5.1.7 / Mac OS 10.7.4 / Flashlight 1.4
On first click, image is horizontally compressed. If I slightly resize the browser window and click again on the thumbnail, the image is no longer compressed.
Screenshots :
Here is an example of what you should get :
http://www.compostyl.fr/photo/ (Work in progress…)
If you want, you could then add the units for the exif values : ‘s’ for seconds, ‘mm’ for millimeters and ‘f/’ for the aperture.
Replace the code (two occurences) :
if($exif['shutter_speed']) $meta .= "<li class='exif-shutter_speed'><span>".$exif['shutter_speed'][0].":</span> ".$exif['shutter_speed'][1]."</li>";
if($exif['iso']) $meta .= "<li class='exif-iso'><span>".$exif['iso'][0].":</span> ".$exif['iso'][1]."</li>";
if($exif['aperture']) $meta .= "<li class='exif-aperture'><span>".$exif['aperture'][0].":</span> ".$exif['aperture'][1]."</li>";
if($exif['focal_length']) $meta .= "<li class='exif-focal_length'><span>".$exif['focal_length'][0].":</span> ".$exif['focal_length'][1]."</li>";by :
if($exif['shutter_speed']) $meta .= "<li class='exif-shutter_speed'><span>".$exif['shutter_speed'][0].":</span> ".$exif['shutter_speed'][1]." s</li>";
if($exif['iso']) $meta .= "<li class='exif-iso'><span>".$exif['iso'][0].":</span> ".$exif['iso'][1]."</li>";
if($exif['aperture']) $meta .= "<li class='exif-aperture'><span>".$exif['aperture'][0].":</span> f/".$exif['aperture'][1]."</li>";
if($exif['focal_length']) $meta .= "<li class='exif-focal_length'><span>".$exif['focal_length'][0].":</span> ".$exif['focal_length'][1]." mm</li>";Ooops, sorry, the word ‘Shutter’ was translated in french in the above post…
Here is the correct version :
if(!empty($meta['shutter_speed'])) {
if($meta['shutter_speed'] < 0.6) { $exif['shutter_speed'] = array(__('Shutter','avia_framework'), decimal2fraction ($meta['shutter_speed'])); }
else { $exif['shutter_speed'] = array(__('Shutter','avia_framework'), $meta['shutter_speed']); } }Then, replace the line :
if(!empty($meta['shutter_speed'])) { $exif['shutter_speed'] = array(__('Shutter','avia_framework'), $meta['shutter_speed']); }
by :
if(!empty($meta['shutter_speed'])) {
if($meta['shutter_speed'] < 0.6) { $exif['shutter_speed'] = array(__('Vitesse ','avia_framework'), decimal2fraction ($meta['shutter_speed'])); }
else { $exif['shutter_speed'] = array(__('Vitesse ','avia_framework'), $meta['shutter_speed']); } }It will call the function ‘decimal2fraction’ only if the shutter speed is below 0.6 seconds.
First, add this function in the file ‘helper-slideshow.php’ :
function decimal2fraction ($number)
{
list ($whole, $numerator) = explode ('.', $number);
$denominator = 1 . str_repeat (0, strlen ($numerator));
$GCD = GCD ($numerator, $denominator);
$numerator /= $GCD;
$denominator /= $GCD;
if($whole == 0)
return sprintf ('1/%d', round($denominator/$numerator));
return sprintf ('%d 1/%d',
$whole, round($denominator/$numerator));
}
function GCD ($a, $b)
{
while ( $b != 0)
{
$remainder = $a % $b;
$a = $b;
$b = $remainder;
}
return abs ($a);
}I’ve tried, but it’s beyound my limited skills…
This is what i’d like to implement :
If Kriesi add this in a future update, this already excellent theme would become perfect.
Thanks for your help.
Thank you, I will try this.
Perhaps Kriesi could add this feature in a future update… ;-)
Is there a simple way to add a button to toggle the thumbnail bar on/off ?
Problem solved, thank you !
I will use the Addthis plug-in.
Thanks for your response.
Broadscope is a fantastic theme ! Thank you Kriesi and all the staff.
-
AuthorPosts