Forums

Help with Lightbox and auto-resize (fit screen) (4 posts)

  1. hellocloud.se
    Member
    Posted 2 years ago #

    Since a few days ago I have ran my own wordpress-blog and it works great. I've installed NextGen and Lightbox for my pictureviewing.

    My only problem is that Lightbox does not auto-resize nor center the images to fit the screen and this is kinda annoying. I have googled and tried to find every (any?) solution to this problem but I haven't.

    Have never coded anything so it's quite hard for me to get this working. I have read about several people who hacked earlier versions of Lightbox, but these versions don't seem to work on WP 2.7. I have tried.

    I use this following version of Lightbox:
    http://wordpress.org/extend/plugins/lightbox-2/

    FancyBox does all the tricks with auto-resizing and centering to fit the screen, however I like the LB-design much more and LB is faster.

    Here are some urls I've found with "hacks" however they haven't worked on the version I use.
    http://www.sharanhovich.com/lightbox-2-mod
    http://seb.box.re/2006/11/22/lightbox-2-auto-resizing-enhancement
    http://blog.hma-info.de/2008/04/09/latest-lightbox-v2-with-automatic-resizing/

  2. noox
    Member
    Posted 2 years ago #

    I've added auto resize to one of the wordpress lightbox 2 plugins. Now my post about that is also available in English: http://nooxnet.com/2009-07-12/lightbox-2-with-auto-resize-in-wordpress/

  3. finographic
    Member
    Posted 2 years ago #

    Noox your solutio is perfect, i was so happy but this thing is not solvin the problem in nextGEN because I am using jQuery http://leandrovieira.com/projects/jquery/lightbox/ or do you have other solution? In case there is solution two best things altogether lightbox and nextGen gallery.

  4. finographic
    Member
    Posted 2 years ago #

    I am yust traing to make easy for user, he will not worry about image size and alsow he will always have original sized pictures on his server.

Topic Closed

This topic has been closed to new replies.

About this Topic