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.
page_revision: 2, last_edited: 1217319602|%e %b %Y, %H:%M %Z (%O ago)





Comments
Has anyone gotten plugoo to work on wikidot? I can't seem to pull it off; I get the following error message:
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
I havn't been able to get GrandCentral to work. Is there a special embed code for flash files?
I've got the same problem with GrandCentral :(
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
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!!!
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;
?>
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&hl=en&geocode=&q=eastview+high+school+apple+valley+mn&ie=UTF8&ll=44.74275,-93.21758&spn=0.00745,0.052136&output=embed&s=AARTsJpYCMhBE7eDrMKGkQOYbkBAvlh26Q"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=eastview+high+school+apple+valley+mn&ie=UTF8&ll=44.74275,-93.21758&spn=0.00745,0.052136&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&hl=en&geocode=&q=eastview+high+school+apple+valley+mn&ie=UTF8&s=AARTsJpYCMhBE7eDrMKGkQOYbkBAvlh26Q&ll=44.74275,-93.21758&spn=0.042674,0.072956&z=13&output=embed">
</iframe>
Hope this helps