can you do bbcode for http://videos.sapo.pt/ please and videoweed.com thx
Redtube was easy enough
Code:http://www.redtube.com/{$id}
Code:<object height="344" width="434"><param name="allowfullscreen" value="false"><param name="AllowScriptAccess" value="always"><param name="movie" value="http://embed.redtube.com/player/"><param name="FlashVars" value="id={$id}&style=redtube&autostart=false"><embed src="http://embed.redtube.com/player/?id={$id}&style=redtube" allowfullscreen="false" AllowScriptAccess="always" flashvars="autostart=false" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="344" width="434" /></object>
this was the only one I got to work. the others require more & I didn't get them to work yet.This is super. It worked. Any way to give the code for *******, *******, or others?
this was the only one I got to work. the others require more & I didn't get them to work yet.
<none>
<?php
//Template courtesy of Jake Bunce...again. :-) Modified for Splicd of course
// THE CLASS
class MediaSites_Splicd
{
// THE METHOD
public static function buildEmbed($mediaKey, array $site)
{
// ISOLATE THE PARAMS THAT ARE NEEDED FROM THE MEDIAKEY
if(preg_match('#(?P<yid>[a-z0-9-_]+)/(?P<pstt>[0-9]+)/(?P<pstp>[0-9]+)#si', $mediaKey, $match))
{
// DEFINE GENERIC EMBED HTML WITH TEMP TEXT STRINGS TO BE REPLACED LATER
$embedHtml = '<div style="text-align: right; margin-top: 3px; width: 425px; height: 375px;">
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/__ID__&start=__START__&end=__STOP__"></param>
<param name="allowFullScreen" value="true"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/__ID__&start=__START__&end=__STOP__" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344" wmode="transparent"></embed>
</object>
<a class="splicdLink" href="http://splicd.com">powered by <span class="splicdOrange"> Splicd.com</span></a>
</div>';
// REPLACE ALL INSTANCES OF TEMP __TXT__ PLACEHOLDER STRINGS
$finalHtml = str_replace(array('__ID__', '__START__', '__STOP__'), array($match['yid'], $match['pstt'], $match['pstp']), $embedHtml);
// RETURN PROCESSED EMBED CODE
return $finalHtml;
}
// RETURN NOTHING IF NO MATCH
else return '';
}
}
How about www.issuu.com.how about issuu.com.
how to embed pdf file from issuu ?
Code:http://issuu\.com/*/docs/{$id}
Code:object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="width:420px;height:275px" id="6d513ec7-aa65-9bae-5f4b-941ea59eb737" > <param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&backgroundColor=%23222222&documentId=120105020938-a6c981434a604707bbe5e8d994d942ae" /> <param name="allowfullscreen" value="true"/> <param name="menu" value="false"/> <param name="wmode" value="transparent"/> <embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:420px;height:275px" flashvars="mode=mini&backgroundColor=%23222222&documentId={$id}" /> </object>
I use the code.. but nt work
Thank's
<none>
<?php
class MediaSites_IssuuDOC
{
public static function buildEmbed($mediaKey, array $site)
{
$pageHtml = file_get_contents('http://issuu.com/' . $mediaKey);
if(preg_match('#<meta\sproperty="og:image"\scontent="http\://image\.issuu\.com/(?P<doxid>[a-z0-9-_]+)/jpg#si', $pageHtml, $match))
{
$embedHtml = '<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="width:420px;height:544px" id="0e4694d3-fdfb-452f-2227-3f9777b01fd0" >
<param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&viewMode=singlePage&backgroundColor=%23222222&documentId=__DOCID__" />
<param name="allowfullscreen" value="true"/>
<param name="menu" value="false"/>
<param name="wmode" value="transparent"/>
<embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:420px;height:544px" flashvars="mode=mini&viewMode=singlePage&backgroundColor=%23222222&documentId=__DOCID__" />
</object>
<div style="width:420px;text-align:left;">
<a href="http://issuu.com/__MEDIAKEY__?mode=window&backgroundColor=%23222222" target="_blank">Open @ Issuu</a>
</div>
</div>';
$finalHtml = str_replace(array('__DOCID__', '__MEDIAKEY__'), array($match['doxid'], $mediaKey), $embedHtml);
return $finalHtml;
}
return '';
}
}
<table style="margin:0 0 10px 0; width:244px; background:#fff; border:1px solid #ccc;" cellspacing="0" cellpadding="0">
<tr><td style="font-family:verdana; font-size:11px; color:#000; padding:5px 6px;"><a href="http://www.sunoyun.com/Baja-Motocross-Oyunu-4eb831185f788.html" style="display:block; text-decoration:none;"><img src="http://www.sunoyun.com/oyun_img/bajamotocross.jpg" width="70" height="59" align="left" style="margin-right:5px; border: #000 1px solid;" alt="Bedava Türkçe Oyunlar Sunoyun.com - Baja Motocross" />
<strong style="color:#000; border:none; text-decoration:underline;">Baja Motocross</strong><p style="margin:0; clear:none; text-decoration:none; color:#000;"><b>Baja Motocross Oyunu Hakkında</b></br>
3D Motor yarışlarına girip ..</p></a></td></tr>
<tr><td style="font-family:verdana; font-size:11px; color:#003366; padding:5px 10px; border-top:1px solid #ccc;"><a href="http://www.sunoyun.com/Baja-Motocross-Oyunu-4eb831185f788.html" title="Bedava Türkçe Oyunlar Sunoyun.com">Bu oyunu hemen bedava oyna!</a></td></tr>
</table>
TBH I cant even find the embed code for that site
maybe this ---http://www.sunoyun.com/webekle.php?islem=yeni&oyunno=4eb831185f788
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700px" height="525px">
<param name="movie" value="http://www.sunoyun.com/swf/muhtesemyuzyil.swf" />
<param name="quality" value="high" /><param name="base" value="http://www.sunoyun.com/" /><param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://www.sunoyun.com/swf/muhtesemyuzyil.swf" width="700px" height="525px">
<!--<![endif]-->
<p>Lütfen Adobe Flash Player Yükleyiniz.</p>
<!--[if !IE]>-->
<param name="quality" value="high" /><param name="base" value="http://www.sunoyun.com/" /><param name="allowScriptAccess" value="sameDomain" /></object>
<!--<![endif]-->
</object>
Great.... CODE work..Media Site ID: issuudoc
________________________________________
Site Title: Issuu.com Docs
________________________________________
Site URL: http://issuu.com/
________________________________________
Match URLs: #issuu\.com/(?P<id>[a-z0-9-_!\@\#\$\%\^\&\*()]+/docs/[a-z0-9-_!\@\#\$\%\^\&\*()]+)#si
________________________________________
Embed HTML:
________________________________________HTML:<none>
____advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________
Embed HTML Callback: MediaSites_IssuuDOC::buildEmbed
IssuuDOC.php (for display only, download the file here).
Goes in library/MediaSites/
PHP:<?php class MediaSites_IssuuDOC { public static function buildEmbed($mediaKey, array $site) { $pageHtml = file_get_contents('http://issuu.com/' . $mediaKey); if(preg_match('#<meta\sproperty="og:image"\scontent="http\://image\.issuu\.com/(?P<doxid>[a-z0-9-_]+)/jpg#si', $pageHtml, $match)) { $embedHtml = '<div> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="width:420px;height:544px" id="0e4694d3-fdfb-452f-2227-3f9777b01fd0" > <param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&viewMode=singlePage&backgroundColor=%23222222&documentId=__DOCID__" /> <param name="allowfullscreen" value="true"/> <param name="menu" value="false"/> <param name="wmode" value="transparent"/> <embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:420px;height:544px" flashvars="mode=mini&viewMode=singlePage&backgroundColor=%23222222&documentId=__DOCID__" /> </object> <div style="width:420px;text-align:left;"> <a href="http://issuu.com/__MEDIAKEY__?mode=window&backgroundColor=%23222222" target="_blank">Open @ Issuu</a> </div> </div>'; $finalHtml = str_replace(array('__DOCID__', '__MEDIAKEY__'), array($match['doxid'], $mediaKey), $embedHtml); return $finalHtml; } return ''; } }
http://www.pxxxxxb.com/view_video.php?viewkey=1741195814
http://www.pxxxxxb.com/view_video.php?viewkey={$id}
<?php
class MediaSites_*******
{
public static function buildEmbed($mediaKey, array $site)
{
// CAPTURE WEB PAGE
$pageHtml = file_get_contents('http://www.pxxxxxb.com/view_video.php?viewkey=' . $mediaKey);
// ISOLATE THE VIDEOID IN THE SOURCE
if(preg_match('#<p class="notice" id="flagger_video_(?P<videoid>[0-9]+)_feedback">#si', $pageHtml, $match))
{
// DEFINE GENERIC EMBED HTML WITH REPLACEMENT VARIABLES __VIDEOID__ AND __MEDIAKEY__
$embedHtml = '<object type="application/x-shockwave-flash" data="http://cdn1.static.pxxxxxb.phncdn.com/flash/embed_player.swf" width="608" height="476"><param name="movie" value="http://cdn1.static.pxxxxxb.phncdn.com/flash/embed_player.swf" /><param name="bgColor" value="#000000" /><param name="allowfullscreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="FlashVars" value="options=http://www.pxxxxxb.com/embed_player.php?id=__VIDEOID__"/></object>';
// MAKE THE REPLACEMENTS
$finalHtml = str_replace('__VIDEOID__', $match['videoid'], $embedHtml);
// RETURN THE FINISHED HTML
return $finalHtml;
} else {
$finalHtml = "Could Not find VideoID for http://www.pxxxxxb.com/view_video.php?viewkey=" . $mediaKey;
return $finalHtml;
}
// RETURN NOTHING IF NO MATCH
return '';
}
}
<div class="bar-right">
<a href="#" onclick="$j('.flag-box').hide(); return false">close</a>
</div>
<p class="notice" id="flagger_video_268865_feedback"></p>
<div class="video-actions-panel-wrap clearfix">
<div class="video-actions-panel-left">
#txxx8.com/(?P<id>([a-z0-9-_]+/[a-z0-9-_]+/[0-9-_]+))#si
<iframe src='http://www.txxx8.com/embed/{$id}/' frameborder=0 height=481 width=608 scrolling=no name='t8_embed_video'></iframe>
http://www.txxx8.com/embed/category%2Fusername%2Fvideoid/
can somebody help me figure out why this won't work?
here's my *******.php file that is in MediaSites
Code:<?php class MediaSites_******* { public static function buildEmbed($mediaKey, array $site) { // CAPTURE WEB PAGE $pageHtml = file_get_contents('http://www.pxxxxxb.com/view_video.php?viewkey=' . $mediaKey); // ISOLATE THE VIDEOID IN THE SOURCE if(preg_match('#<p class="notice" id="flagger_video_(?P<videoid>[0-9]+)_feedback">#si', $pageHtml, $match)) { // DEFINE GENERIC EMBED HTML WITH REPLACEMENT VARIABLES __VIDEOID__ AND __MEDIAKEY__ $embedHtml = '<object type="application/x-shockwave-flash" data="http://cdn1.static.pxxxxxb.phncdn.com/flash/embed_player.swf" width="608" height="476"><param name="movie" value="http://cdn1.static.pxxxxxb.phncdn.com/flash/embed_player.swf" /><param name="bgColor" value="#000000" /><param name="allowfullscreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="FlashVars" value="options=http://www.pxxxxxb.com/embed_player.php?id=__VIDEOID__"/></object>'; // MAKE THE REPLACEMENTS $finalHtml = str_replace('__VIDEOID__', $match['videoid'], $embedHtml); // RETURN THE FINISHED HTML return $finalHtml; } else { $finalHtml = "Could Not find VideoID for http://www.pxxxxxb.com/view_video.php?viewkey=" . $mediaKey; return $finalHtml; } // RETURN NOTHING IF NO MATCH return ''; } }
here's a a section of source from the ******* page
Code:<div class="bar-right"> <a href="#" onclick="$j('.flag-box').hide(); return false">close</a> </div> <p class="notice" id="flagger_video_268865_feedback"></p> <div class="video-actions-panel-wrap clearfix"> <div class="video-actions-panel-left">
I've checked my preg_match using this tool and the source snippet above and it finds the videoid correctly but when I run this on my site, every time it says Could Not find VideoID. I put that part in just so I knew it was running my script & the issue was the preg_match isn't finding results.
anyone have any idea where I've gone wrong?
it seems that $pageHtml is coming back blank.
We use essential cookies to make this site work, and optional cookies to enhance your experience.