Geschrieben um: 20:48 Uhr | 742

Lightview Plus (en)

3
Mai

Diese Seite ist auch in deutsch verfügbar!

Lightview Plus is a wordpress plug-in which integrates Lightview into your wordpress blog and automatically changes all image links, so the images will open with lightview. Now, it is possible to show videos from YouTube and Vimeo with lightview.

Installation

  • Copy the lightview-plus directory to the wordpress plug-in directory under /wp-content/
  • Download Lightview javascript and decompress it
  • Copy the directories „css“, „images“ and „js“ of the decompressed folder to /wp-content/plugins/lightview-plus/
  • Activate the plug-in in the plug-in menu
  • That’s it!

Update

To backup the lightview javascript on update, it is possible to activate a backup function in the options menu.

Embed Images

  • Choose an image of your choice, as you have done it in wordpress many times
  • Create a link with this image to a bigger version of this image
  • All the rest is done from lightview-plus automatically

Examples for Images
Rathaus :: HamburgU-Bahn Jungfernstieg :: in HamburgSpeicherstadt :: HamburgBugsier 18 :: Auf der ElbeHeidschnucken :: Schafe in der Nordheide

Embed Videos

  • Click the new button „Embed Video“ Video hinzufügen
  • In the pop-up choose the portal you want to use (at the moment only YouTube and Vimeo. More in one of the next version).
  • Insert the video id
  • Choose, if you want a link text under the video
  • Enter the link text
  • Click INSERT

Find out the Video ID

  • YouTube: http://de.youtube.com/watch?v=DYgZOY2g27w
  • Vimeo: http://www.vimeo.com/1573042

Example for Video

The dead Terrorist
YouTube — The dead Terrorist

Download
You find the current version under wordpress.org

FAQ

Nothing is opened with lightview?
In you theme the <?php wp_head(); ?> is missing. Please, add it.

Images are still not opened with lightview!
Maybe an other plug-in uses jQuery or an older version of prototype oder scriptaculous. Deactivate the plug-ins or let me know if you found an alternative.

I added images to my text, but they are not clickable and they are not shown with lightview.
You have to create a link to the image. E. g. create a link from the image to the same image or a bigger one.

Is there a jQuery version of lightview?
I am not the author of lightview. I have done a wrapper for wordpress. Please, ask the author of lightview and let me know about the alternative.

Lightview does not work in browser xy on OS yz. / How do I change the display of lightview?
I have no look into the lightview javascript code. Please, ask the author of lightview.

Current Version
The actual version is v2.5.3.2. Now, it supports YouTube, blip.tv and Vimeo videos.

Translation
Everyone is invited to send me a translated language pack of lightview-plus. Now, we have the following languages integrated:

Donate


If you think this plug-in is useful or you want support, don’t hesitate to donate. Lightview Plus has required a great deal of time and effort to develop. If it’s been useful to you then you can support this development by making a small donation. This will act as an incentive for me to carry on developing it, providing countless hours of support, and including any enhancements that are suggested. If you don’t have a clue how much you want to spend, the average of the last donations were €8. But every other amount is welcome. Please note, that PayPal takes for every transaction round about €0.50. So every donation below €1 is only a donation to PayPal ;-) Further you have the options to have a look at my amazon wishlist.

  1. Laurent
    #1

    i would like insert light view in a widget on sidebar. Is it possible?
    thank

  2. Laurent
    #2

    solved!! thank a lot

  3. Stachu
    #3

    It stopped to work after I upgrated it to the newest version of the plugin! I did not change any code… :(

  4. I think the Upgrade is not the error. I only added a new language file.

    I think you have to upload the lightview JavaScript files again.

  5. Hi,

    I try to move from lightview from iLEMONed to Lightview in the hopes that it will work with IE 8. Not only it didn’t work but now, every new slideshow seem to try to load 3–4 times. I tried several uninstalls, I cannot solve it. PLEASE HELP!

    Thanks,
    Jord.

  6. Hi Jordan,
    1.) You don’t have to load prototype from google. Please, change it in the lightview plus options menu. After that, it will work with IE8
    2.) In your theme, you call the wp_head()-function two times. This will cause the slideshow to load three or more times.

  7. Hi Thorsten,
    It worked for both. THANK YOU very much for your help!!!
    I’m not going to touch my plugins or theme files ever again :-D
    J.

  8. Wow, this is better than lightbox. Thank you very much for sharing your ideas. :mrgreen:

  9. Bernie
    #9

    Not sure whether this thing is controlled via the Lightview Plus or inside the original Lightview, but what controls if all images in the single post will be added as a single gallery or as seperate images? I don’t want to let user use navigation arrows to jump between various images in a single post, but rather open the overlay window one by one. Thanks.

  10. Okay, to add Vimeo vids you say to „Click the new button “Embed Video”“. Where am I looking for this new icon. it is not on the text editor for either the page or the blog post options. Am I looking in the wrong place?

  11. The button is on the editor page, if it is in html mode.

  12. thanks for the summ

  13. Yes, I just switched over to HTML. A lot of people have this turned off by default. Editing in HTML view can really mess up if you are writing code in your posts. It would help if you also mentions how to put in the code yourself. Like so…

    [vimeo 6737184]

    Again, this is useful for people that don’t use the HTML editor.

  14. I have modified the code a little and wanted to share it with you. I am not sure if you comment box here will let me copy the code in but I will try.

    Check out my page here… http://www.husar.us/blog/archives/6151 to see the modifications in a real example.

    I made three modifications to your plugin. Two of these could be great additions to be able to set in the admin options. Both of these are for Vimeo videos specifically. The third one below might be harder for you to add in as a admin option.

    The first was to set videos to auto play. Right around line 94 in the lightview-plus.php I added „&autoplay=1″ to the target. This allows video to auto play when it is launched.

    The second change I needed to make is because all my videos are in aspect ratio 16:9 and not 4:3. So I have to lines 92 and 93 again in the lightview-plus.php. I changed your math from multiplying by 3/4 to .56 which gets me closer to the 16:9 HD video size for the video image view.

    $this->video[’vimeo‘][’height‘] = floor($this->options[’video_width‘] * .56);
    $this->video[’vimeo‘][’preview_height‘] = floor($this->options[’video_preview_width‘] * .56);

    The third thing I modified was adding in a fake Vimeo toolbar. I did not like how the image of the video just looked like an image. It could confuse users to think it is only an image and not a video they should click on to launch. So I started by creating a vimeo toolbar png. You can see it here: http://www.husar.us/blog/wp-content/uploads/2009/09/vimeooverlay.png

    Next I modified the code to put this right below the vimeo videos image. Then I added an adjustment on the style to move the toolbar image up over the video image so it now looks like a Vimeo video that uses should click on to play. Since just putting the image there doesn’t link the toolbar image like the video image is linked I had to add the link to the image into your target code between the a href code.

    $this->video[’vimeo‘][’target‘] = ‚options[’video_width‘] . ‚, height: ‘ . $this->video[’vimeo‘][’height‘] . ‘“ class=„lightview“ rel=„flash“>options[’video_preview_width‘] . ‘“ height=„‚ . $this->video[’vimeo‘][’preview_height‘] . ‘“ alt=“###THING###“ />‘;

    So there you have it. My modifications to the plan to make it better for my needs. Maybe someone else will find these useful. If you do add any of these option to a release version please let me know. I have subscribed to the comments here so I can keep updated. If anyone wants my version of the lightview-plus.php just let me know.

    Cheers and thanks for all your hard work on this plugin.

  15. The plugin suddly stopped working.
    Take a look at my site: Try the features post. There is a picture in there to test.
    http://www.digitalpimple.com

  16. @JohnnyVegas
    Please, ask the author of the javascript, Nik Stakenburg. I think this is something with javascript.

    @The House of Husar
    Currently, I work at version 3.0, which makes the work with vimeo better. Your idea with the play button on the preview button is great. I will integrate it. Please, can you create a general play button for videos? Thanks!

  1. A
    #19

Sag was dazu!

:D :-) :( :o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.

Hanging Monk
Beam me up!