Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Using Lightbox Ultimate with eStore for videos
- This topic has 10 replies, 2 voices, and was last updated 13 years, 3 months ago by robhafley.
-
AuthorPosts
-
July 30, 2011 at 1:27 am #3931robhafleyMember
I’m selling downloadable footage on my site and I want to display a thumbnail that opens into a video preview in WP Lightbox on my store page. How do I set up the products to accomplish this? Thanks.
July 31, 2011 at 1:15 am #34914amin007ParticipantWP eStore does not have any option to where the product thumbnail becomes an anchor of the lightbox ultimate plugin which can in turn popup the video. This is actually not possible due to the vast number of lightbox variations that the lightbox ultimate pulgin has (if there was only one type of lightbox then this would have been an easy task).
This post should give you some ideas as to how you can embed a video popup option in the description section of the product (this may serve as a workaround for you):
July 31, 2011 at 5:39 am #34915robhafleyMemberThanks, does your standard Video Lightbox plugin work with .flv?
July 31, 2011 at 11:31 pm #34916amin007ParticipantI totally forgot. It should have a section for it in the usage document if it does. The lightbox ultimate one can do anything the standard lightbox plugin can do plus way more. So I don’t think you will need to use the standard one since you already got the ultimate one.
August 1, 2011 at 4:53 am #34917robhafleyMemberI can’t get it to work. I am trying to display my video products with fancy 1 using this shortcode: [wp_eStore_fancy1_video_thumbnail id=1]. My preview videos are .flv but I keep getting a message that says the video can’t be loaded (due to the limitations of the standard wp video lightbox I suppose). You said earlier that due to the vast number of lightbox variations in the ultimate that it wasn’t an option to use with eStore. What if I knew exactly the variation I wanted? How difficult would it be to code? Thanks.
August 2, 2011 at 12:20 am #34918amin007Participant“What if I knew exactly the variation I wanted?” – In that case it shouldn’t be that hard at all. Just a matter of tweaking a line of code I think. Which lightbox ultimate shortcode are you using to display your videos?
August 2, 2011 at 2:04 am #34919robhafleyMemberThe setting is: Flowplayer-PopUp/FLV/MP4/MOV video from the embedded Images
The actual shortcode is:[wp_lightbox_flowplayer_video link=”http://www.example.com/test-video.mp4″ width=”640″ height=”480″ source=”http://www.example.com/anchor-image.jpg”%5D
I really like the FancyBox but when it is enabled from the settings menu it interferes with the normal lightbox in my theme and causes a photo to pop up in the normal lightbox AND your lightbox. I haven’t been able to workaround that yet.
August 2, 2011 at 11:57 pm #34920amin007ParticipantThe flowplayer and HTML5 shortcodes have complex structures so those ones won’t be suitable for this. You might be able to use the special lightbox library to embed the flv video. If that library works for you then it should be possible to tweak the eStore code to use that option for the video thumbnail.
August 4, 2011 at 1:09 am #34921robhafleyMemberThe lightbox special would do just fine. All I need is a way to display .flv previews from a thumb inside product display.
August 4, 2011 at 6:59 am #34922amin007ParticipantOkay… to use the special lightbox with the following shortcode do this:
[wp_eStore_fancy1_video_thumbnail id=1]
Open the “eStore_extra_product_display_helper.php” file from the extra shortcodes plugin and search for the following line of code:
$output .= '<a href="'.$ret_product->target_thumb_url.'" rel="wp-video-lightbox" title=""><img src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a>';
Once you find it change it to the following:
$output .= '<a href="'.$ret_product->target_thumb_url.'" rel="lightbox[flash 640 480]" title=""><img src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a>';
That should do it hopefully.
August 6, 2011 at 1:30 am #34923robhafleyMemberWorks perfectly. Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.