Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-2008, 08:53 PM
glorify's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Jul 2008
Location: Hebron, IN
Posts: 20
Thanks: 1
Thanked 10 Times in 1 Post
Smile Add ESPN Video to Embedded Video

This is an addition to a module for those that aren't too code handy and I hope it's in the right forum.

To add ESPN Video to your embed videos:

In Pliggroot/plugins/functions.embedvideos.php, find:

Code:
$post_video_html = "<br />";
Add After:
Code:
        // code to replace <espn> tags with
$ESPNCode = '<object width="440" height="361"><param name="movie" value="http://sports.espn.go.com/broadband/player.swf?mediaId=$1"></param><param name="wmode" value="transparent"/><param name="allowScriptAccess" value="always"/><embed src="http://sports.espn.go.com/broadband/player.swf?mediaId=$1" type="application/x-shockwave-flash" wmode="transparent" width="440" height="361" allowScriptAccess="always"></embed></object>' . $post_video_html;
        // replace <espn> tags with the espn code		
			$displayed_story = preg_replace("/\<espn\>(.+?)\<\/espn\>/is", $ESPNCode, $displayed_story);
Do the exact same in Pliggroot/modules/embed_videos/plugins/functions.embedvideos.php

Add <espn> as an html tag and enjoy. Use the video number just like youtube.
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

Search Engine Friendly URLs by vBSEO 3.2.0