I Finally got some time to do some programming on lightThumb.
Some people wanted to attach images from digital cameras but linking the thumbnail to original version had some not wanted behaviors (image was too big on screen), so I added a second thumbnail generation option to the plugin. This will help now the webmaster a lot. They may now include the huge digital camera image to article with Joomla {mosimage} tag. LightThumb then creates a 150x150px thumbnail and displays it nicely in article. LightThumb also generates a 800×600 bigger thubnail (and caches it to bigThumbs folder) and creates a slimbox effect link to the bigThumb file.
If the original image is smaller than wanted bigThumb image, the slimbox effect will link to original version.
<%media(20071202-lightThumb_1.6.zip|Download LightThumb v. 1.6)%>
Some other changes are:
* Changed prototype.js to mootools.js and changed script.aculo.us to slimbox.js
* Fixed the mambots css-files a bit
* Figured out much easier installation process (no more template changes) as mambot automatically generates css/javascript stuff to template header
* For ie6 you need to check that template is not in quirkmode (so basicly copy the selected lines to your template)
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// remove xml prolog from template
//echo '[?xml version="1.0" encoding="'. $iso[1] .'"?' .']';
?>
I have just been playing around with 1.4 – After hours of messing managed to get it working. Saw you had updated to 1.6 so updated to that today and now LOADS more errors for me to sort out.
Warning: main(http://mysite/mambots/conte…) [function.main]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /mypath/templates/estime_lightblue/index.php on line 11
Warning: main() [function.include]: Failed opening \’http://mysite/mambots/conte…‘ for inclusion (include_path=’.:/usr/lib/php’) in /mypath/templates/estime_lightblue/index.php on line 11
The errors don’t seem to stop anything working.
Oh, I just womdered if this was the include statement from V1.4?
Paul: Check your mosConfigLiveSite. It cant be "mysite" if not playing in localhost?
Paul: Also remove all lightthumb_inc.php calls from your template – Not needed anymore!
Fixed the download link in extensions.joomla.org
The lightbox popup does not seem to work on my site (http://www.cjtf82.com/Beta). The page dims when the image is clicked, but the image never loads. It (lightbox) seems to work fine on my site with Simple Image Gallery though, can you help?
I turned off the lightbox for now, so visitors won’t get a frozen screen, but I’m still having the problem. Thanks
i’ve already used Lightthumb on a few sites, so was happy to see an updated version. (Good work losing the need to make template changes!)
Anyway, when I installed it as per usual (mambot install, publish, unpublish MOSImage and give it a high order), well, i get problems… it looks like the thumbnail is about to load, the image border is there, but then the thumbnail doesn’t load and I end up with a text link (the name of the image) instead of a thumbnail….
..any ideas? it would make my christmas!!! lol
Hi,
i’ve found lots of errors in 1.6 version ..
here are some of them :
line 182 : should be $thumb_correct = (($newxsize == $thumb_size[0]) || ($newysize == $thumb_size[1])); , not && ! as we are not changing ratio of our image, after resising only one dimension should e equal , the second might if ratio=newxsize/newysize .
line 217 : wrong direcory, we don’t keep thumbs in images/stories
line 325, 351 , 317 and more… : not temp[0], temp[0] is only valid in images/stories
there are many more erros like these there.