News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Embed BBCode

Started by nikan, June 02, 2011, 07:29:55 PM

Previous topic - Next topic

Tomy Tran

Nope, I used normal link with your mod look like: http://www.youtube.com/watch?v=iTA463bLJsw

After failed with your mod, I has played around with code of SMF 2.0.1 and discovered I can do shorturl with flash button without any mod and it still works fine.

nikan

OK, then.
Thanks for trying my mod.

nikan

Just to be sure for others i tested your youtube link on my test site and works fine.
So, there is no problem with my mod.

MtnDon

I installed this mod last night. The only problem I has was locating the BBC button the first time I tried it. But moving the cursor around over the buttons revealed it.

It worked fine of the couple of YouTube videos I tried.

~DS~

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

nikan

That's because bbc.co.uk uses an external player.

jimbouk1977

I just get text show of the embed code with youtube

with iframe code & old embed code e>G: <object>  any ideas

Code (just shows text) Select
<iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/wMbVJPNxvzo?hd=1" frameborder="0" allowfullscreen></iframe>  (wont work)

Code (Doesnt work) Select
<object width="640" height="360"><param name="movie" value="http://www.youtube-nocookie.com/v/wMbVJPNxvzo?version=3&amp;hl=en_US&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/wMbVJPNxvzo?version=3&amp;hl=en_US&amp;hd=1" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object>

& i did wrap it with [embed=640,360][/embed]
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

nikan

hxxp://www.youtube-nocookie.com is not the youtube domain.

jimbouk1977

#28
So i cant embed using the no tracking cookie option   ?.

can this be added to or not (I don't know coding so asking if possible) as I hate tracking cookies  :P


Will try without & reply or update this post. thanks for the quick reply.

UPDATE:

Yes can confirm works when the tracking cookie is left on !. (can you still answer about the tracking cookie if it can be added to or not please)
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

nikan

Updated to support HTTPS and privacy-enhanced mode for youtube.

Apllicmz

Done
portuguese files

    <file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />           
            <add><![CDATA[
$txt['embed'] = 'Inserir v&iacute;deo C&oacute;digo Embed';
]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />           
            <add><![CDATA[
$txt['embed'] = 'Inserir v&iacute;deo C&oacute;digo Embed';
]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />           
            <add><![CDATA[
$txt['embed'] = 'Inserir v&iacute;deo C&oacute;digo Embed';
]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />           
            <add><![CDATA[
$txt['embed'] = 'Inserir v&iacute;deo C&oacute;digo Embed';
]]></add>
        </operation>
    </file>




gumboy

hi... i installed this mod and i want to add embed code in my post but not working.. only code is apearing..
i wnt to add below code,

<object id="mpl" style="" width="600" height="480" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://sakitvs.com/player/play.swf" /><param name="quality" value="high" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="opaque" /><param name="menu" value="false" /><param name="flashvars" value="streamer=rtmp://210.210.27.37:1935/live&amp;file=livestream1&amp;autostart=true&amp;menu=false&amp;image=/player/logo.png&amp;&amp;logo.hide=false&amp;logo.position=bottom-right&amp;logo.link=http://www.sakitv.com&amp;logo.out=1&amp;logo.margin=-1&amp;stretching=exactfit" /><embed id="mpl" style="" width="600" height="480" type="application/x-shockwave-flash" src="http://sakitvs.com/player/play.swf" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" menu="false" flashvars="streamer=rtmp://210.210.27.37:1935/live&amp;file=livestream1&amp;autostart=true&amp;menu=false&amp;image=/player/logo.png&amp;&amp;logo.hide=false&amp;logo.position=bottom-right&amp;logo.link=http://www.sakitv.com&amp;logo.out=1&amp;logo.margin=-1&amp;stretching=exactfit" /></object>

how i can do this??? whats the problem?
plz help me.

nikan

Did you read the first post?
Quote1.3 - Added security checks
      - Now accepts embed code only from: megavideo, metacafe, dailymotion, veoh, vimeo, youtube

SKOTINOS_AGELOS

Good job, works perfectly :)

larsenroed

Doesn't work with Vimeo. I get the message: "Sorry. This video does not exist."

Fix?

nikan

Quote from: larsenroed on March 30, 2012, 04:34:53 AM
Doesn't work with Vimeo. I get the message: "Sorry. This video does not exist."

Fix?

Fixed and updated the package.

Thanks larsenroed.

larsenroed

Quote from: nikan on March 30, 2012, 05:15:02 AM
Quote from: larsenroed on March 30, 2012, 04:34:53 AM
Doesn't work with Vimeo. I get the message: "Sorry. This video does not exist."

Fix?

Fixed and updated the package.

Thanks larsenroed.
Haha, that's quick! Thanks.

bruno2012

could you give me an example of how to use the bbc?

I'm having trouble, not yet able to use it right  :(

nikan

This mod was made to make easier the posting of a video from video hosting sites.
As i wrote at first post:
Just copy the embed code like <object ... , <embed ... , <iframe ... , short/long url youtube and paste it inside the embed tag and the media will be displayed in your post.

bruno2012

Quote from: nikan on May 02, 2012, 11:00:28 AM
This mod was made to make easier the posting of a video from video hosting sites.
As i wrote at first post:
Just copy the embed code like <object ... , <embed ... , <iframe ... , short/long url youtube and paste it inside the embed tag and the media will be displayed in your post.

I know that part, but it looks like when I was testing: See Attachment

Advertisement: