Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Video embedding

Viewing 17 replies - 1 through 17 (of 17 total)

  • LPH2005
    Participant

    @lph2005

    Since I’m trying to embed a video uploaded to a phpmotion script, the following mod was purchased a few minutes ago – and maybe the oEmbed feature will work with phpmotion. This way I don’t have to worry about a custom.php file.

    Mod: http://www.phpmotionmods.com/?p=163


    Steve Ford
    Participant

    @privateenglishportal

    hmm, I would also like to be able to post videos beyond the oembed plugin( which is a great plugin by RAY BTW) accepted video platforms such as youtube etc……


    paulhastings0
    Participant

    @paulhastings0

    Can you give us examples of the embed code? When you post in this forum make sure to surround the code with:

    <code>
    </code>


    LPH2005
    Participant

    @lph2005

    OK. The developer of the phpmotion script oEmbed has it working on his WP site by adding to the wp-includes/class-oembed.php

    ‘#http://(www.)?chemvideos.com/.*#i’ => array( ‘http://www.chemvideos.com/oembed&#8217;, true ),

    This allows the URL http://www.chemvideos.com to be embedded in a WP post simply with the URL such as

    http://www.chemvideos.com/videos/42/reduction-oxidation-reaction

    You can see it working in this blog posting: http://www.thechembook.com/2010/05/15/student-presentation-redox/

    However, I would like this to work in the activity stream and the forums.

    For YouTube, I can just add the URL in the stream or forum – but not for the chemvideos site (which works in a WP post now).

    This is what I put in the functions.php file (I also tried in the bp_customs.php file):

    # php wp_oembed_add_provider( ‘http://www.chemvideos.com/*&#8217;, ‘http://www.chemvideos.com/oembed&#8217; );

    Ugh – I’ve tried all sorts of combinations to get the code to show — sorry – but it is getting stripped out. And yep – even surrounding it with code still strips it — so — just imagine that the line is surrounded with angle brackets.


    LPH2005
    Participant

    @lph2005

    I got it working. It turns out that I had “whitelisted” the domain chemvideos.com – misunderstanding – that adding it to the whitelist blocks the loading of the videos in the activity stream and forum posts.

    All works wonders now! I can actually just use the URL of the chemvideos – and it shows up in the blog posts, activity streams, and forum posts.

    Cool!

    Sorry guys. I was just testing a Youtube url that i wanted to post on my buddypress site but does not work over there. The previous post I cannot edit or delete?


    ossendryver
    Participant

    @ossendryver

    how did you post the video here!


    meg@info
    Participant

    @megainfo

    just copy and past the link (url or code) of the video ( youtube , vimo…

    for example i past the link

    http://vimeo.com/THE_CODE_OF_THE VIDEO

    the result


    palmdoc
    Participant

    @palmdoc

    Why doesn’t this work anymore?

    Where doesn’t it work? How are you testing?


    9087877
    Inactive

    @palmdoc What kind of forum are you using? The group forums, or sitewide forum? If its the sitewide you need to go to dashboard/settings/forums and under the main settings you need to check the box beside Auto-embed Links!


    palmdoc
    Participant

    @palmdoc

    Hi @shawn38 – it’s Group forums. I am using the latest BP 1.6.1
    The video will embed in the activity stream but not in forum posts
    I have tried the defunct oembed plugin but it doesn’t work now.


    9087877
    Inactive

    I am having a hard time replicating this and I just updated one of my test servers from WP 3.3.1 and BP 1.5.5 to WP 3.4.2 and BP 1.6.1 and it works perfectly if you go to youtube click the share button and copy and paste that code into the content section after you have created a new forum topic. Why do you need an oembed plugin anyway. Auto embed is already built in to WordPress? Go to dashboard/settings/media and under Embeds make sure the box beside Auto-embeds is checked.


    palmdoc
    Participant

    @palmdoc

    Thanks for the confirmation that it should work out of the box. I was puzzled why recently it didn’t work for forum posts but activity streams only.
    I did the usual disable all plugins and test one by one in case of a plugin conflict.
    I can confirm that the Buddypress Rate Forum Posts plugin is the culprit
    https://wordpress.org/extend/plugins/buddypress-rate-forum-posts/
    After disabling this, video embedding now works. Will post feedback to the author.


    9087877
    Inactive

    @mercime @hnla with your approval I guess we can close this topic. Thanks guys for all you do!

    We’ll mark as resolved.

    Actually will close as well as original post is 2 years old.

Viewing 17 replies - 1 through 17 (of 17 total)
  • The topic ‘[Resolved] Video embedding’ is closed to new replies.
Skip to toolbar