oEmbed for BuddyPress plugin – out now!
Here’s the oEmbed plugin that I’ve been working on for BP:
I’ve only tested this on WPMU 184.108.40.206 and BP 1.2. But it should work on single WP as well. Hope it works for you!
Please list any bugs you come across.
*This plugin would not exist without the coding expertise of Viper007Bond, who created the WP_oEmbed class. Props go out to him first and foremost.
does not work on WP single 2.9.2 no auto embed and the permalink page ends up blank. Also you can only deactivate plugin via deleting folder. Hitting deactivate in admin causes white page
I’m going to test this tomorrow.
But in the meantime, can you post any errors from your server log?
It could be memory-related.
Also can you try opening bp-oembed-config.php and adding your BP domain to the $bp_oembed[‘whitelist]’ array?
If you have BP installed on hxxp://example.com, you would put:
$bp_oembed['whitelist'] = array('<a ','">','<a>','example.com');
I installed on WP single 2.9.1, BP 1.2 and the plugin is not working. I added a youtube link into the “Post update” activity box and it just posts the link. Not the actual video.
i added the whitelist code to bp-oembed-config.php with my domain name included but it didn’t change anything.
I am not getting any errors either. most bizarre!
Its not working for me either!
I added my subdomain to whitelist too
Doesn’t seem to do anything on my test installs either.
bp + wp trunk ~ “Plugin could not be activated because it generated 1 characters of unexpected output” ~ nothing in my php_error.log
is it true, i place the directory no files in wordpress plugin?
and results it’s not working…
There should be three files in the .ZIP file. I had some trouble with SVN last night.
Try this link:
Gnarly! Sorry about the plugin not working.
I just reproduced the problem.
Can you deactivate the plugin, rename the plugin folder to “bp-oembed” instead of “oembed-for-buddypress”, re-activate and see what happens?
I’m going to have to look into this some more…
Doing the rename makes the plugin work and the youtube video now embeds however i get the following error above it:
Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/tick/public_html/banterbook.com/wp-content/plugins/buddypress/bp-activity.php on line 1113
Cool! Glad that worked, bennyticklez.
I’ll look into that warning error.
Now to update the readme.txt!
how do we add more sites that can be oembeded? I’d like to include some of the twitter image sites like Twitpic
when you go to members directory it shows the last link next to your name. Is this suppose to be that way?
Re: members directory – yes, that is intended because I don’t think you’d want to see a huge embedded object right next to the name in the directory.
Re: additional sites – to extend the list of oEmbeddable sites, you have to extend WordPress’ oEmbed provider list. I should have put this in the FAQ.
May not be compatible with SI CAPTCHA:
Upon activation of oEmbed:
Warning: Cannot modify header information – headers already sent by (output started at /home/public_html/sandbox/wp-content/plugins/bp-oembed/bp-oembed.php:110) in /home/public_html/sandbox/wp-includes/pluggable.php on line 868
When viewing any page (admin or otherwise)
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/public_html/sandbox/wp-content/plugins/bp-oembed/bp-oembed.php:110) in /home/public_html/sandbox/wp-content/plugins/si-captcha-for-wordpress/si-captcha.php on line 961
Other than that, I only get the same warning that you say is fixed in trunk.
Delete the whitespace on the last line in bp-oembed.php (the whitespace after ?>).
Thanks for reporting the bug.
Will fix it up.
worked fine now its throwing up this
Warning: Cannot modify header information – headers already sent by (output started at /home/twier/public_html/iloemps/wp-content/plugins/bp-oembed/bp-oembed.php:110)
some weird cacheing started happening
Read a few comments above:
I haven’t committed the changes on SVN yet.
r-a-y: This plugin just rocks!!!!!!!!!!!!!!!!!!!!!!!!!!!! Why? It is so simple and so integrated in the normal activity-flow. Awesome! I just commented on the bp-links-plugin, that I think it is a little too “complicated”… Thanks for this!
thanks it works now thanks r-a-y
but i have a problem, if i publish a post got error message
Warning: Cannot modify header information – headers already sent by (output started at /home/ieuiiweb/public_html/wp-content/plugins/bp-oembed/bp-oembed.php:110) in /home/ieuiiweb/public_html/wp-includes/pluggable.php on line 868
@andhix Delete the whitespace on the last line in bp-oembed.php (the whitespace after ?>).
I was testing what you can embed and the polldaddy plugin polls go into the activity stream and forums using the short code very nicely
I have tagged v0.51, which fixes the “cannot modify header” issue.
You still need to rename the folder from “oembed-for-buddypress” to “bp-oembed”.
This will be the last release in the 0.5 series.
Andy P has made some nifty improvements to the plugin. Among other things, no more folder renames and whitelist! Thank you Andy!
This upcoming version will be v0.6 and will be released when BP 1.2.1 drops early next week.
Thanks everyone for testing.
- The topic ‘oEmbed for BuddyPress plugin – out now!’ is closed to new replies.