Embed Code From Other Services

Description

Some internet websites and services offer a way for you to insert pieces of (HTML) code into your pages and display some of the contents generated by their remote service. Some examples are: Google Video, YouTube, del.icio.us etc.

Code

To embed video use:

[[embedvideo]]
paste the html for the video here (video.google or youtube)
[[/embedvideo]]

To embed audio:

[[embedaudio]]
paste the html for the audio here (odeo)
[[/embedaudio]]

Other content:

[[embed]]
paste code here
[[/embed]]

For the list of supported services please see this page.

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +21+x

Comments

Plugoo
pgavinpgavin 1191850704|%e %b %Y, %H:%M %Z|agohover

Has anyone gotten plugoo to work on wikidot? I can't seem to pull it off; I get the following error message:

Sorry, no match for the embedded content.

unfold Plugoo by pgavinpgavin, 1191850704|%e %b %Y, %H:%M %Z|agohover
Re: Plugoo
remilioremilio 1192898332|%e %b %Y, %H:%M %Z|agohover

Not tried plugoo, but I'm having trouble wth gadgets, such as googlemaps and one from SpringWidgets - a countdown. It comes up with precisely the same error message…

What needs to be done? Have successfully embedded other gadgets from google.

Cheers, remilio

unfold Re: Plugoo by remilioremilio, 1192898332|%e %b %Y, %H:%M %Z|agohover
Grand Central
christmas4kidschristmas4kids 1199121514|%e %b %Y, %H:%M %Z|agohover

I havn't been able to get GrandCentral to work. Is there a special embed code for flash files?

unfold Grand Central by christmas4kidschristmas4kids, 1199121514|%e %b %Y, %H:%M %Z|agohover
Re: Grand Central
promodpromod 1203914150|%e %b %Y, %H:%M %Z|agohover

I've got the same problem with GrandCentral :(

unfold Re: Grand Central by promodpromod, 1203914150|%e %b %Y, %H:%M %Z|agohover
How do I embed standard HTML?
Bill KulesBill Kules 1199831071|%e %b %Y, %H:%M %Z|agohover

When I try to embed standard HTML using the [[embed]] tags, I get a message that says "Sorry, no match for the embedded content." Am I misunderstanding how this works? Shouldn't I be able to embed standard HTML? I don't want to use the [[iframe]] element.

Thanks for any help…
Bill

unfold How do I embed standard HTML? by Bill KulesBill Kules, 1199831071|%e %b %Y, %H:%M %Z|agohover
Re: How do I embed standard HTML?
webpromotionwebpromotion 1213238217|%e %b %Y, %H:%M %Z|agohover

Yes, I'm having the same problem, too!
What should we do if we want to use HTML?
Without HTML, our site just looks so boring!!! Really!
Just plain texts!
No pics, no sounds, no videos!
Can be no more boring, I believe!

Pls, Admins of wikidot, help us!!!

unfold Re: How do I embed standard HTML? by webpromotionwebpromotion, 1213238217|%e %b %Y, %H:%M %Z|agohover
Embedding PHP?
DylanWinnDylanWinn 1200524551|%e %b %Y, %H:%M %Z|agohover

I am trying to embed the following code:

Chaos Worlds Server Status:

<?php
// Set up server connection variables
$ip = "70.181.149.105";
$port = 7234;
// Attempt to establish a connection
$sock = @fsockopen($ip, $port, $errnum, $error, 5);
if (!$sock) {
//If it fails $real (stands for REALtime server status) is set to "OFFLINE" in red.
$real = '<B><FONT COLOR=red>OFFLINE</b></FONT>';
} else {
// If connection is a success then do this
// You may need to uncomment the following line if it doesn't seem to be working.
//stream_set_timeout($sock, 2);
// Set $real to "ONLINE" in green.
$real = '<B><FONT COLOR=lime>ONLINE</b></FONT>';
// Add the text "Players Currently Online: " to the next line down
$real .= "<br>Players Currently Online: ";
// Send "top" to the server
fwrite($sock, "top");
// Read what the server sent back and convert it to an integer variable
// and then add it to the $real variable
$real .= (int)trim(fread($sock, 2));
}
echo $real;
?>

unfold Embedding PHP? by DylanWinnDylanWinn, 1200524551|%e %b %Y, %H:%M %Z|agohover
Embedding problems
Josh_s DadJosh_s Dad 1209227572|%e %b %Y, %H:%M %Z|agohover

I've had similar problems I've worked around by stripping everything after an ending directive such as </script> or </iframe>

For example, the following embedded code for a google map didn't work:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=eastview+high+school+apple+valley+mn&amp;ie=UTF8&amp;ll=44.74275,-93.21758&amp;spn=0.00745,0.052136&amp;output=embed&amp;s=AARTsJpYCMhBE7eDrMKGkQOYbkBAvlh26Q"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=eastview+high+school+apple+valley+mn&amp;ie=UTF8&amp;ll=44.74275,-93.21758&amp;spn=0.00745,0.052136&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>

But the following did:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=eastview+high+school+apple+valley+mn&amp;ie=UTF8&amp;s=AARTsJpYCMhBE7eDrMKGkQOYbkBAvlh26Q&amp;ll=44.74275,-93.21758&amp;spn=0.042674,0.072956&amp;z=13&amp;output=embed">
</iframe>

Hope this helps

last edited on 1209227750|%e %b %Y, %H:%M %Z|agohover by Josh_s Dad + show more
unfold Embedding problems by Josh_s DadJosh_s Dad, 1209227572|%e %b %Y, %H:%M %Z|agohover
Add a new comment
page tags: embed html media
page_revision: 2, last_edited: 1217319602|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License