1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP Glype Proxy Youtube Plugin Update

Discussion in 'PHP' started by assault14, Jun 18, 2010.

  1. #1
    hey, i was wondering if someone here could please update the youtube.com.php plugin for glype, here is the code - it currently dosnt work, i belive that the praseing needs to be reworked, witch is over my head please help me out thanks.

    <?php
    ##############################################
    # Plugin: YOUTUBE.COM
    ##############################################
    
    /* ABOUT ---------------------------------
    / This plugin replaces the default YouTube video player
    / with our own player that loads the flv file through
    / the proxy.
    -----------------------------------------*/
    
    ##########################################
    # STOP ENCODING TO PREVENT PROBLEMS
    ##########################################
    $options['encodePage']=false;
    
    ##########################################
    # REMOVE NON-WORKING FLASH OBJECTS
    ##########################################
    $options['stripFlash']=true;
    
    ##########################################
    # EXTRA PARSING AFTER MAIN PROXY PARSER
    ##########################################
    function postParse($html,$type){
    
        if($type=='html'&&preg_match('/fullscreenUrl\s\=\s.*video\_id\=(.*)\&.*\&t\=(.*)\&/i',$html,$matches)){
            $thumbid_arr=explode('&',basename($matches[1]));
            $thumbid=array_shift($thumbid_arr);
            $html=preg_replace('#<div id="watch-checker-div">(.*)to.write\("watch-checker-div"\);#is','<embed src="'.optURL.'videoplayer.swf" width="480" height="395" allowscriptaccess="always" allowfullscreen="true" flashvars="height=395&width=480&file='.proxifyURL('http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]).'&image='.proxifyURL('http://i.ytimg.com/vi/'.$thumbid.'/0.jpg').'&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x996600&searchbar=false&type=flv" menu="false" />'.'<script type="text/javascript">',$html);
    
        }
    
        return $html;
    }
    
    ?>
    PHP:
    heres a link to the proxy - http://www.glype.com/downloads/fetch/proxy/53

    and heres a link to the plugin - http://www.mediafire.com/?ohkjynm2ngy

    thank you
     
    assault14, Jun 18, 2010 IP
  2. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #2
    What problem you get???
    Any sort of PHP Errors?
     
    roopajyothi, Jun 18, 2010 IP
  3. haynes11

    haynes11 Peon

    Messages:
    303
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the sharing of the latest plugin by forcemdt is NOT allowed
     
    haynes11, Jun 18, 2010 IP
  4. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Until its a warez thing why cant we share it???
     
    roopajyothi, Jun 18, 2010 IP
  5. haynes11

    haynes11 Peon

    Messages:
    303
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the author of the latest youtube plugin, and who made them all force, does not allow distributing to anyone, you have to contact him privately for the plugin
     
    haynes11, Jun 19, 2010 IP