Skip to:
Content
Pages
Categories
Search
Top
Bottom

oEmbed for BP 0.6-beta available!

  • Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    *** UPDATE (09/27/11): BuddyPress 1.5 is out and includes a lot of the new code I was writing for my plugin. I’m currently juggling a few things that are taking priority over working on the plugin. It will be released when it’s released! ***

    *** UPDATE (02/24/11): This is an old beta. I’m currently rewriting the plugin. New version will be out when BP 1.3 drops. There might be a RC version before then. ***

    A public beta is now available:
    http://downloads.wordpress.org/plugin/oembed-for-buddypress.zip

    It’s pretty much stable as I’ve had a few people testing it.

    Changelog:
    * Changed oEmbed caching logic for performance reasons (thanks apeatling)
    * Added support for WP non-oEmbed handlers (more info can be found [here](http://codex.wordpress.org/Function_Reference/wp_embed_register_handler))
    * Added partial support for resizing embed items based on component (more info can be found in the “Other Notes” section)
    * Added support for group descriptions and profile fields (disabled by default)
    * Added support to whitelist an embed link so it stays as a link (more info can be found in the “Other Notes” section)
    * Added support to remove oEmbed cache when a forum post is deleted
    * Added support for other plugin developers to utilize the plugin
    * Added a CSS class around embedded item for theme designers
    * Added transparent background to flash content by default
    * Fixed fatal error if the activity, forum or group components were disabled (thanks dcservices for reporting)
    * Fixed embed bug where both an @mention + an embed link was used in the same update, the embed link would break (thanks sicksight for reporting)
    * Fixed issue where hyperlinking an embeddable link and inputting the same link in plain text would output the embedded item multiple times
    * Fixed AJAX bug where if an embed link returned javascript, the activity stream on an AJAX request would break; now returns URL on AJAX request if content is javascript (requires server to support HTTP_X_REQUESTED_WITH)

    As noted in the changelog, the main new features are resizing of content and support for group descriptions and profile fields.

    **Please view the readme.txt for full details on how to enable these features**

Viewing 25 replies - 1 through 25 (of 25 total)
  • Profile photo of techguy
    techguy
    Participant

    @crashutah

    Very cool r-a-y

    I read through the FAQ. So basically you can define the width and then the height will just be done proportional to the defined width? Also, if I’m reading it right, the width will apply to anything that is oembed enabled. So, the width of a YouTube video would be the same as a Flickr image, right?

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    That is correct, techguy.

    It should work for most embed content except for items which set the size via an argument (eg. domain.com/script.php?width=xxx&height=xxx). Mostly javascript content.

    Excellent update! Support for embed in group descriptions (unrecommended as it might be) is just the thing we need to add some necessary pajazz to the landing pages of showcase-oriented groups. There just isn’t enough room for group-index customizations yet to not resort to options like this.

    So, ‘partial support’ and ‘disabled by default’, what does that actually mean? I uploaded the 0.6-beta to a test install, activated it, wrote a full link into a description and bam, an embedded video :) No change of settings in WordPress nor BuddyPress prior to activation. If it was disabled, where would I enable it from? From your FAQ I can tell that there’s not supposed to be a settings page, yet.

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Thanks for testing, Erlend.

    There was a bug in the code. New update should have group descriptions and xprofile fields disabled by default.

    Like I mentioned in the 1st post, all settings are available in the FAQ as defines in wp-config.php:
    eg. http://pastebin.com/TtnNC7yN

    “Partial support” really only applies to xprofile fields since oEmbed cache isn’t properly removed. But people wanted this feature, so I put it in.

    Profile photo of Mark
    Mark
    Participant

    @markhahnel

    Hey Ray, I have the plugin running for my site http://www.science3point0.com and it doesnt work. I’ve seen a few comments suggesting delete the white space or renaming it. Any fixes you can think of. No error code. No youtube embedding or functionality ob bp album + are they compatible?

    Profile photo of Mark
    Mark
    Participant

    @markhahnel

    I got it Ray – No worries.

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    New oEmbed for BP build fixes URL matching with certain providers like Photobucket:
    https://downloads.wordpress.org/plugin/oembed-for-buddypress.zip

    Please test! I want to get this out the door in the next day or two

    Hello, great plugin. I have it running on a few of my clients sites.

    However on my MWPU install it does not work. Only the url is displayed, as a link. Any suggestions how to make it compatible with wpmu?

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    I develop on WPMU (or what is now known as network mode in WP 3.0), so it works for me.

    I highly doubt this is the case for you, but If your WPMU install is less than 2.9, then it won’t work as the oEmbed class does not exist.

    One other thing to note is some YouTube videos do not allow embedding b/c the owner has turned that feature off. So that might apply to you as well.

    You can also try activating the plugin network-wide and upgrading to the beta version.

    Lastly, since you’re using the plugin on a few client sites, I would strongly recommend donating to the plugin.

    Profile photo of matiaspunx
    matiaspunx
    Member

    @matiaspunx

    Hi r-a-y
    i’m testing the new release, i need to change the width of embed elementes, but when i change it to (ex: 400) its transforms to 320×320… that is an ugly size for youtube videos… can i force the 320×240 or something similar?

    Thanks in advance!

    Profile photo of matiaspunx
    matiaspunx
    Member

    @matiaspunx

    Ok, i edit your plugin to get what i need.
    In bp-oembed.php around line 256 y change
    $embed = str_replace( $width, $resize_width, $embed );
    to: $embed = str_replace( $width, “450”, $embed );
    and $embed = str_replace( $height, round( $height * $resize_width / $width ) , $embed );
    to: $embed = str_replace( $height, “235” , $embed );

    That force the width and height…

    Anyway i think you could add a height parameter in wp-config to force width and height :)

    resized
    define( ‘BP_OEMBED_ACTIVITY_STREAM_WIDTH’, ‘200’ );
    to
    define( ‘BP_OEMBED_ACTIVITY_STREAM_WIDTH’, ’75’ );

    I see no change with youtube video

    Any particular reason why this hasn’t been released as stable yet? The only bug Ive encountered is that if we paste video links at the end of a forum post with no content underneath it, it’ll break the embed.

    Profile photo of James
    James
    Participant

    @janismo

    @r-a-y couldn’t you please confirm whether development is stoped or not? thanks.

    small question re 0.6 beta and previous versions.
    is there any way to limit number of embedable videos/links per activity?

    thanks again.

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Development has not stopped; yes, I understand it’s almost been a year.
    Patience is a virtue!

    Read this for updates:
    https://buddypress.org/community/activity/p/125443/

    The next version is a complete rewrite from the 0.6-beta.

    Re: limiting links – it’s possible by writing a plugin, but I probably won’t add it to this one.

    Thanks for letting us know r-a-y. Non-surprising as it is, that’s still very pleasant news ;)

    Profile photo of Virtuali
    Virtuali
    Participant

    @gunju2221

    @r-a-y, as suggested, I did go back to the beta version. Although I did a test in group forums, and all videos with media supposed to be there says: “id=”rfp-rate-960? class=”rfp-rate”>”

    How do you fix it?

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @gunju2221 – What plugin is rfp-rate?

    Profile photo of Virtuali
    Virtuali
    Participant

    @gunju2221

    I don’t have a plugin “rft-rate”. This didn’t happen in the latest version, just when I went back down to beta

    Thanks!

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Looks like you’re running the rate forum posts plugin. I’m going to do some investigating to see if I can duplicate the problem.

    Profile photo of Virtuali
    Virtuali
    Participant

    @gunju2221

    Sweet! Awesome! Thanks!

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Profile photo of Virtuali
    Virtuali
    Participant

    @gunju2221

    Sweet! Thanks for the fix!

    Profile photo of senator94
    senator94
    Member

    @senator94

    My profile videos atop working. Is there a temp fix? When will the next update come out?

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    I am behind on my plugin updating and have other things I have to juggle.

    This is an old thread; to avoid confusion, I’m going to close this.

Viewing 25 replies - 1 through 25 (of 25 total)
  • The topic ‘oEmbed for BP 0.6-beta available!’ is closed to new replies.