ANYONE???
What am I doing wrong here....
Trying to add DivShare Links:
My Code:
Code:
// code to display DivShare
if (preg_match("/http:\/\/www.divshare.com\/download\/([0-9a-zA-Z-_]*)(.*)/i", $url, $matches)) {
return '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" width="425" height="374" id="divflv">'.
'<param name="movie" value="http://www.divshare.com/flash/video?myID='.$matches[1].'" />'.
'<param name="allowFullScreen" value="true" />'.
'<embed src="http://www.divshare.com/flash/video?myID='.$matches[1].'" width="425" height="374" name="divflv" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'.
'</object>';
}
This is what they have mentioned on their site:
DivShare - The DivShare API
I tried it on my site and it seems to be working but it shows some other random video instead of the one i submitted... don't know why??
Please let me know. Thanks.