Skip to:
Content
Pages
Categories
Search
Top
Bottom

oEmbed for BuddyPress plugin – out now!

Viewing 25 replies - 26 through 50 (of 88 total)

  • summerchilde
    Member

    @summerchilde

    This plugin partially works with WP 2.9.2 and Buddypress 1.2

    Pasting a link does embed the video but it also causes an error. Here is a screenshot… https://i.imgur.com/XCvPv.png


    modemlooper
    Moderator

    @modemlooper

    @r-a-y i upgraded to latest and the plugin died. work great with previous version.

    WP single 2.9.2 BP 1.2

    EDIT: just realized that even though you auto upgrade you have to go back and change the folder name


    r-a-y
    Keymaster

    @r-a-y

    @summerchildeas stated above and in the readme.txt, the array_map() warning is a BP issue. It’s fixed in BP-trunk. The next release of BP 1.2.1, coming this week, will address this issue. If you can’t wait until then, you can patch the issue yourself (check out the “Known issues” section in the readme.txt).

    @modemlooper – Sorry about the folder renaming! I know it’s a pain! The good news is oEmbed for BP v0.6 will fix the “rename folder” issue and will feature some performance enhancements (courtesy Andy P). Stay tuned for the next release which will come out when BP 1.2.1 drops.

    Could it be, that flickr-Slideshows don’t work correctly?? It just stays black…


    r-a-y
    Keymaster

    @r-a-y

    @Michael,

    Try the Flickr URL in a WordPress post with oEmbed enabled.

    To enable oEmbed for WordPress posts, read the “In A Nutshell” section on this page – https://codex.wordpress.org/Embeds#In_A_Nutshell

    If it doesn’t work in WordPress, it won’t work in BuddyPress since I’m merely piggybacking off of WordPress’ oEmbed class.

    Hope that helps to some extent!


    gregfielding
    Participant

    @gregfielding

    Would this plugin allow embed codes from other services to display?

    I’m running some “classroom” groups in my community and am trying to find a way to embed a ustream player directly onto the group (“classroom”) page. Our presentations and chats are live…so it wouldn’t work to have to upload a video to these other services first. (although it would be great for video archives).

    Thoughts?


    modemlooper
    Moderator

    @modemlooper


    r-a-y
    Keymaster

    @r-a-y

    @gregfielding

    What part of the group homepage are you looking at adding the player?

    This plugin only adds oEmbed support to activity updates and forum posts.

    It looks like ustream.tv has oEmbed support.

    But as stated in the readme.txt FAQ, you’ll need to add support for uStream to WordPress’ oEmbed provider list in order to allow uStream embeds. I’m not going to be adding any additional oEmbed providers to WordPress’ default list.

    If you know a little bit about code, you can read here to add support yourself:

    https://codex.wordpress.org/Embeds#Adding_Support_For_An_oEmbed-Enabled_Site

    If you need help adding uStream support, I’m *thinking* of offering premium support to extend the plugin for a nominal fee (similar to other Wp plugin developers).

    Yeah I know, not what some people wanted to hear. Basic support will always be free though. Of course, I haven’t thought about this in depth – just a spur-of-the-moment idea your post gave me that is sure to ignite some negativity ;)

    Not sure if I’m actually going to go through the premium support model though.

    @modemlooper

    Re: oEmbed Discovery plugin – that should also work. I listed this in the readme.txt and its potential problems if you don’t trust your user base.

    Also not sure if the upcoming version of oEmbed for BP (v0.6) will work with the oEmbed Discovery plugin, since the new version of the plugin changes the logic of how URLs are sent to WP’s oEmbed to enhance performance on your DB . I’ll do some testing, but if the oEmbed Discovery plugin doesn’t work in v0.6, at least you’ll still have v0.51!


    modemlooper
    Moderator

    @modemlooper

    @r-a-y

    Suggestion: when you input a url and it auto embeds. I think for usability sake it should do a thumbnail like blog posts and @sbrajesh gallery plugin. The thumbnail would then be viewable full size in the permalink view. This could be done via css but the embed would need to be wrapped in the permalink.


    r-a-y
    Keymaster

    @r-a-y

    @modemlooper

    Looks like grabbing the thumbnail might be doable.

    But I’m not sure if the BP activity stream supports this dual-mode view you’re speaking of (activity stream gets one view, activity permalink gets another) since they both use the same template to render the activity.

    I’m guessing not off the top of my head…


    modemlooper
    Moderator

    @modemlooper

    If you click the thumb of a blog post it takes you to that blog page. The oembed has a view link I’m suggesting a thumbnail to go to that view link. Showing the full view of flickr and youtube videos takes considerable space in the activity stream. Just trying to clean it up a bit.


    r-a-y
    Keymaster

    @r-a-y

    Easier said than done I’m afraid. A blog post is different than an activity update.

    I’ll look into it, but I’m not going to promise anything.

    Feel free to tweak the code! I’ll add you as a contributor if you figure it out! ;)


    Naeem
    Participant

    @mnaeemsattar

    oops, after reading and following all above comments i came to know that i am a real guffffffff… i think i followed all above instructions.. upgraded to 5.2 files, updated the bp files as given in current trunk.. but still i am facing problem that my links displays as links only, no youtube video, but link only :( please check http://pakistuff.com r-a-y plz help :) thanks in advance


    r-a-y
    Keymaster

    @r-a-y

    Hi mnaeemsattar,

    I just checked the YouTube video on your site.

    The person who uploaded that YouTube video disabled embedding, so unfortunately you cannot embed that one.

    Try any other YouTube video that allows embedding, it should work!


    modemlooper
    Moderator

    @modemlooper

    @r-a-y all I’m saying is wrap the embedded object with the same url that is in the view.

    The size can be managed via css. That way the activity stream isn’t clogged with large images and videos.


    gregfielding
    Participant

    @gregfielding

    @r-a-y

    ustream/watershed does allow embeds…but we use it to embed video players and chat boxes directly for live, interactive video chat sessions with large groups.

    Point it…it’s not a URL, it’s the actual embed code…so I’m thinking that this plugin might not be the answer, no?

    Ideally, the video could be embedded in the News section…but that is flexible. It just needs to be somewhere obvious and clear so students can easily watch and participate.

    Somewhere between this and the Links plugin should be a way to make this work…


    Naeem
    Participant

    @mnaeemsattar

    @ r-a-y . it proved my first comment that i am real guff.. thanks a lot for making this soo easier and helpful. Yes its working fine on site now. Btw I agree and support @Modemlooper suggestion so that it may work same like as videos are displayed on facebook.

    I love the plugin, Works great for activities.

    I would like to embed a youtube video in the group description.

    Nothing shows.

    How can I do this?


    r-a-y
    Keymaster

    @r-a-y

    @modemlooper

    Can’t you already resize oEmbedded items via CSS right now? There’s conditional CSS classes for the body, I’m sure you can target those for the activity stream.

    CSS selectors for activity stream page only:

    body.page-parent .activity-inner img, body.page-parent .activity-inner object, body.page-parent .activity-inner embed {width: whatever);

    Of course this wouldn’t look great for videos. Like I said, I’ll look into it.

    @gregfielding

    I was just looking at ustream again. It doesn’t appear to offer native oEmbed support.

    If you want to use the actual embed code, you’ll need to override the group description filter so this plugin wouldn’t work in this case.

    @oicolague

    I can make the plugin work for group descriptions.

    Expect this feature in a future release.


    Joris
    Participant

    @jorisdieben

    This is a really great plugin, great use of the WP core oEmbed function. Do you have any idea how I can enable the oembed functions on the WP blog post comments too. So that the users have the same option everywhere on the site?


    r-a-y
    Keymaster

    @r-a-y

    @jorisdieben

    I could probably create a version just for comments.

    I don’t want to bundle it with the BP version though.

    Stay tuned.


    Joris
    Participant

    @jorisdieben

    That would be great. I think a lot of wp users would be very happy with such a plugin too. Thanks!


    bpyogi
    Participant

    @bpyogi

    I’m looking for a method to to post both uStream and TED Talks video. It appears oEmbed wont allow either of these two sites. I can’t understand why. Is there any way to get these two sites to work on BP using oEmbed or any other method?

    Thank you.


    levin
    Participant

    @levinng

    Hi, I just added a embed provider like the following code in theme functions.php, it can work with blog post, but not the activity stream, I tried to add mytube.com in the whitelist but still doesnt’ work. Is there i’ve something missing?

    I’m using WPMU 2.9.1.1 and BP 1.2.1

    Thanks so much for your help

    <?php

    function wp_embed_handler_mytube( $matches, $attr, $url, $rawattr ) {

    // If the user supplied a fixed width AND height, use it

    if ( !empty($rawattr[‘width’]) && !empty($rawattr[‘height’]) ) {

    $width = (int) $rawattr[‘width’];

    $height = (int) $rawattr[‘height’];

    } else {

    list( $width, $height ) = wp_expand_dimensions( 640, 360, $attr[‘width’], $attr[‘height’] );

    }

    return apply_filters( ’embed_mytube’, ‘<object height=”‘ . esc_attr($height) . ‘” width=”‘ . esc_attr($width) . ‘” ><param value=”http://www.my-tube.com/em?v=&#8217; . esc_attr($matches[1]) . ‘” name=”movie”></param><embed src=”http://www.my-tube.com/em?v=&#8217; . esc_attr($matches[1]) . ‘” allowfullscreen=”true” width=”‘ . esc_attr($width) . ‘” height=”‘ . esc_attr($height) . ‘” align=”middle” allowScriptAccess=”always” type=”application/x-shockwave-flash”></embed></object>’, $matches, $attr, $url, $rawattr );

    }

    function register_embed_handlers() {

    wp_embed_register_handler( ‘mytube’, ‘#http://www.my-tube.com/v\?v=([A-Za-z0-9]{0,50})#i’, ‘wp_embed_handler_mytube’ );

    }

    add_action(‘wp’, ‘register_embed_handlers’);

    ?>


    Tosh
    Participant

    @xberserker

    When is v0.6 coming out?

Viewing 25 replies - 26 through 50 (of 88 total)
  • The topic ‘oEmbed for BuddyPress plugin – out now!’ is closed to new replies.
Skip to toolbar