View Single Post
  #1 (permalink)  
Old 02-20-2008, 06:27 AM
amitk amitk is offline
New Pligger
 
Join Date: Dec 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
embed video - adding another video site?

hello there,
been trying to add another video website to my embed_video function,
added this piece of code to "function.embedvideos.php":

PHP Code:
//code to replace <flix> tags with
$FlixCode '<object width="458" height="384"><param name="movie" value="http://www.flix.co.il/tapuz/showVideo.asp?m=$1"><param name="allowScriptAccess" value="always"><embed src="http://www.flix.co.il/tapuz/showVideo.asp?m=$1" type="application/x-shockwave-flash" width="458" height="384" allowScriptAccess="always"></embed></object>'.$post_video_html;
//replace
$displayed_story preg_replace("/\<flix\>(.+?)\<\/flix\>/is"$FlixCode$displayed_story); 
and still no go. what i get after submitting ID with tags around is simply the ID number.
any ideas??

thanks,
amit
Reply With Quote