Go Back   Pligg CMS Forum > Pligg Development > Pligg Modules > Module Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2008, 06:27 AM
New Pligger
Pligg Version: 9.8
Pligg Template: yget
 
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
  #2 (permalink)  
Old 02-25-2008, 03:57 AM
New Pligger
Pligg Version: 9.8
Pligg Template: yget
 
Join Date: Dec 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
hi there,

i found a solution:
after adding code to function.embedvideos.php, in the (root)/modules/embed_videos/plugins folder, i found another copy of the same file at (root)/plugins folder. copied the same code in there, and now it works.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with adding new video source in embed video stoyanoff General Help 0 10-28-2007 06:20 PM


Search Engine Friendly URLs by vBSEO 3.2.0