Pligg Template Forums  

Go Back   Pligg Template Forums > Pligg Discussions > Pligg Addons
User Name
Password
Register FAQ Members List Online Store Calendar JavaChat Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old 10-01-2007, 02:09 PM   #1 (permalink)
bilbilis
Junior Member
 
Join Date: Sep 2007
Posts: 2
bilbilis is on a distinguished road
Thumbs up Zappinternet.com code for Pligg's video add-on

Hello !

Thanks for this wonderful add-on. I was to post the code for a new video server in the due forum but was prevented from doing it because of access restrictions. This code works for me and links to videos shared on a new Spanish platform: www.zappinternet.com

Code:
if (preg_match("/http:\/\/www.zappinternet.com\/video\/([0-9a-zA-Z\-\_]*)(.*)/i", $url, $matches)) {
        return '<object width="430" height="345">'.
			   '<embed style="width:430px; height:345px;" id="VideoZappInternet" type="application/x-shockwave-flash" src="http://zappinternet.com/flash/zappplayer.swf?embed=true&idvideo='.$matches[1].'">'.
			   '</object>';
    }
Greetings from Belgium
bilbilis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-01-2007, 05:07 PM   #2 (permalink)
Adam
Administrator
 
Adam's Avatar
 
Join Date: Sep 2007
Location: Scotland
Posts: 163
Adam has disabled reputation
Send a message via Skype™ to Adam
Default

Cool bilbilis,

Thanks for the input every little improvement is much appreciated.

And welcome to the site i do hope you will contribute some more. I will add your code to the MoD package when i get a free minute or two.

Adam
__________________
Buy Me A Beer with PayPal
http://p2pvine.com
Adam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-02-2007, 03:05 PM   #3 (permalink)
thuggster
Member
 
thuggster's Avatar
 
Join Date: Sep 2007
Location: Netherlands
Posts: 50
thuggster is on a distinguished road
Talking

code to display Google Video .nl

Code Play.php
PHP Code:
// code to display Google Video .nl
    
if (preg_match("/http:\/\/video.google.nl\/videoplay\?docid=([0-9\-]*)(.*)/i"$url$matches)) {
        return 
'<object width="500" height="426">'.
                           
'<embed src="http://video.google.com/googleplayer.swf?docId='.$matches[1].'" type="application/x-shockwave-flash" width="400" height="326" />'.
                           
'</object>';
    } 
Code for in TPL file
PHP Code:
$url_short eq "http://video.google.nl" || 
code to display putfile.com

Code ply.php
PHP Code:
// code to display putfile.com
if (preg_match("/http:\/\/media.putfile.com\/([0-9a-zA-Z-_-]*)(.*)/i"$url$matches)) {
 return 
'<object type="application/x-shockwave-flash" data="http://feat.putfile.com/flow/putfile.swf?videoFile='.$matches[1].'" height="349" width="420" align="middle">'.
  
'<param name="movie" value="http://feat.putfile.com/flow/putfile.swf?videoFile='.$matches[1].'" />'.
  
'<param name="quality" value="high" />'.
'<param name="allowFullScreen" value="false" />'//DO NOT EDIT this line!. Why? To exit fullscreen off the player you have to press "esc", when you do this you also close thickbox.
'<param name="allowScriptAccess" value="always" />'.
  
'<embed src="http://feat.putfile.com/flow/putfile.swf?videoFile='.$matches[1].'" allowFullScreen="false" allowScriptAccess="always" height="349" width="420"></embed>'.
'</object>';

code tpl file
PHP Code:
$url_short eq "media.putfile.com" || 

Last edited by thuggster : 10-02-2007 at 06:34 PM.
thuggster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



All times are GMT +1. The time now is 09:50 PM.



Search Engine Friendly URLs by vBSEO 3.0.0