Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP Lightbox Ultimate PrettyPhoto re-sizing of pop-up window, too much padding?

by

Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › WP Lightbox Ultimate PrettyPhoto re-sizing of pop-up window, too much padding?

Tagged: how to use the forum

  • This topic has 8 replies, 2 voices, and was last updated 12 years, 5 months ago by Terve.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • December 3, 2012 at 4:07 pm #8063
    Terve
    Member

    When I click on the “recorded webinar” banner on this page [http://216.70.90.173/mobile-data-offloading/wifi-offload-3g-4g] a YouTube video 640×480 pop-us just as it should.ยจ

    However, when using an iPhone this pop-up window scales, but it seems to NOT using the full width of the available screen resulting in a very odd looking window. Can it be that there is a hard coded padding that does not scale down when the pop-up does resulting in half of the screen width is used for padding (empty space to the left and right of the video)?

    December 4, 2012 at 3:28 am #51985
    wpCommerce
    Moderator

    Hi, can you please switch to the “prettyPhoto default” theme (WP Lightbox->Library Settings->PrettyPhoto Settings->Theme) to see how it goes?

    December 10, 2012 at 5:07 pm #51986
    Terve
    Member

    Hi sorry for late reply, have been very busy. First of all I must say that I am impressed over this plugin even though I have some issues with this detail.

    I have tried what you suggest with same result. I have even changed the WP theme of the whole site to the default one in WP, same result.

    I just now noticed, that if you put the iPhone in “landscape view” where the width is greater than the height of the screen the result is more severe as it will cause the browser to hang.

    With a small screen size such as a smartphone, I could think of skipping the Light-box pop-up and just launch the video in a new tab/window, this will trigger iPhones naitive video display. If possible this could be something to consider to build in as an option, for screens under a certain threshold in size, just skip the pop-up and launch in a new tab/window.

    December 10, 2012 at 10:59 pm #51987
    wpCommerce
    Moderator

    Hi, There are other options to pop up a YouTube video as well. Have you tried the fancybox or colorbox YouTube shortcode?

    December 12, 2012 at 3:09 pm #51988
    Terve
    Member

    I have. These two other options has no scaling capabilities at all, the box pop-up but the vast majority of it is outside the screen limits. Fancy box do not cause the browser to hang in landscape view. I would like to encourage you if possible to consider:

    “With a small screen size such as a smartphone, I could think of skipping the Light-box pop-up and just launch the video in a new tab/window, this will trigger iPhones naitive video display. If possible this could be something to consider to build in as an option, for screens under a certain threshold in size (that is screens sizes of smartphones), just skip the pop-up and launch it as if it was a normal link, then the naitive video display will appear in a new tab/window.”

    It should be noted that the pop-up will not bring much value for an iPhone anyways, first thing that happen when you start the video is that it pop-up in a new tab in the browser just as it does from an normal link, it never ever plays in the pop-up window in iPhone.

    December 12, 2012 at 10:48 pm #51989
    wpCommerce
    Moderator

    Hi, It’s not easy to customize all the shortcodes for this specific functionality. But thanks for the feedback. We will see what we can do.

    December 13, 2012 at 9:08 am #51990
    Terve
    Member

    Ok, thanks allot for an otherwise great plugin.

    December 13, 2012 at 9:11 am #51991
    Terve
    Member

    By the way, I might be able to do a work around. I will investigate if I can have two different HTML codes depending on device type and not use your plugin for smartphones.

    December 19, 2012 at 5:28 pm #51992
    Terve
    Member

    Sorry for taking up this discussion again, but what I have to say may make your pligin even better. I have now investigated iPhone and Android smartphones and none of the ones I have tested is actually running the YouTube API in the pop-up window, you can easily test and confirm this yourselves. I could maybe do a different code for handling smartphones separately, but if you could do it that is even better long term for all I think.

    Since the smartphones are not playing the YouTube API in the pop-up window anyway (note: iPAD is working fine just like a PC), this is what I propose you do:

    If mobiledevice=true then

    <a href="http://www.youtube.com/watch?v=9O7yLPZFgUM&autoplay=1&t=00m41s"><img class="alignright size-full wp-image-5215" title="TIM  interviewed" src="http://216.70.90.173/wp-content/uploads/2012/12/TIM-Telesemana-interview.jpg" alt="TIM interviewed by Telesemana about their Wi-Fi offload roll-out" width="200" height="133" /></a>

    Else

    [wp_lightbox_prettyPhoto_video link=”http://www.youtube.com/watch?v=9O7yLPZFgUM&start=41&#8243; description=”TIM Brasil interview (in English after 42s)” source=”http://216.70.90.173/wp-content/uploads/2012/12/TIM-Telesemana-interview.jpg&#8221; title=”TIM Brasil interview (in English after 42s)” img class=”alignright size-full wp-image-5215″ style=”margin-top: 5px;margin-right:500px;margin-bottom:5px;margin-left:10px”]

    Of course this is not genuine code but I think that you get what I mean. Simply do not trigger the pop-up for a mobile device, instead make a ordinary link with autoplay on and then it will trigger the normal behaviour in the smartphone.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ