WordPress.org

Forums

BuddyPress Activity Plus
[resolved] Embed video preview off the screen (10 posts)

  1. jlbphotos
    Member
    Posted 1 year ago #

    Hi

    Great plugin

    However i am having issues with the embeded video, When i paste any video link from youtube or vimeo the preview is shown huge and it overtakes my sidebar.

    here is a image

    I have tested Oembed works fine and checked my PHP file no problems.

    The website is currently running on a local WAMP server so cant share a link sorry

    https://wordpress.org/plugins/buddypress-activity-plus/

  2. WPMU DEV
    Member
    Posted 1 year ago #

    Hi @jlbphotos,

    Thanks for posting on the forums.

    I have tested it on my test site using latest version of BuddyPress Activity Plus plugin and it worked fine without any issue. ( See the screenshot )

    What version of BuddyPress Activity Plus plugin and WordPress are you using?

    Is it working fine if you use default WordPress theme like Twenty Twelve?

    Kind Regards,

  3. jlbphotos
    Member
    Posted 1 year ago #

    Thanks for the reply

    I'm using latest of both version 3.8.1 and 1.6

    I just changed to twenty twelve and yes the problems wasn't there so it must be a theme issue :(

    looks I got some CSS to traul through wish me luck...

  4. jlbphotos
    Member
    Posted 1 year ago #

    Ok strange

    when i look at the code the Iframe is pulling in at 960 width ? thoughts

    heres an image.

  5. WPMU DEV
    Member
    Posted 1 year ago #

    Hi @jlbphotos,

    Thank you for your reply.

    The BuddyPress Activity Plus plugin uses wp_oembed_get function to retrieve video from URL.

    The plugin doesn't pass height and width to this function so it checks for a content_width setting, and a media settings max width. If neither of those are set, then the used width will be '500'. If one of those values is set, it'll use that set value.

    Same applies to the height the function checks for a media settings max height, and if there is nothing there either, it will use '700'.

    I hope this information will help you to understand it.

    Please advise if you have more questions.

    Best Regards,

  6. jlbphotos
    Member
    Posted 1 year ago #

    Hi Thanks for the links.
    I added the code as sites said no luck, still large. Thing is when its posted its fine perfect size, its just the preview size :(

    I created a quick site with my theme, buddypress and activity plus

    Would it be possible for you to have a quick look please ?

    Here is the site

    The login is [redacted] password [redacted]

    If you just try and share a video on the activity stream its does the large preview thing. I have only basic plugins installed and minor css changes.

    Any help would be much appreciated.

  7. WPMU DEV
    Member
    Posted 1 year ago #

    Hi @jlbphotos,

    Please don’t post usernames or passwords on the forum, as this is a public forum.

    Could you please try adding following CSS code in the style.css file of your child theme or add it in your site using the following plugin?

    http://wordpress.org/plugins/simple-custom-css

    .bpfb_preview_container iframe {
    max-width: 100% !important;
    }

    Regards,

  8. jlbphotos
    Member
    Posted 1 year ago #

    Awesome it works great !!! Thankyou so much

    The website was a throw-away with no credentials on a test site just so i could show you the theme

    Thanks again great supoort

  9. jlbphotos
    Member
    Posted 1 year ago #

    resolved

  10. WPMU DEV
    Member
    Posted 1 year ago #

    You are most welcome, if I can be of any further assistance please don't hesitate to ask :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.