Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Someone Help Plz. i got some questions about YT plugin
04-06-2008, 05:31 PM
Post: #1
Someone Help Plz. i got some questions about YT plugin
hi guys

i got some questions. i didnt really understand what they wanna say in this topic
http://www.glype.com/forums/index.php?topic=375.0

Can anyone say where i must write the code (that shown on topic) ???
i must copy the mediaplayer.swf to scripts main directory. Then?? What codes must be changed?

thx for replies.
Find all posts by this user
Quote this message in a reply
04-06-2008, 06:12 PM
Post: #2
RE: Someone Help Plz. i got some questions about YT plugin
Open up notepad.txt and paste this code inside

Code:
<?php
##############################################
# Plugin: YOUTUBE.COM
# Thumbnail Support By: Dominic Robinson
##############################################

/* ABOUT ---------------------------------
/ This plugin replaces the default YouTube video player
/ with our own player that loads the flv file through
/ the proxy.
-----------------------------------------*/

##########################################
# REMOVE NON-WORKING FLASH OBJECTS
##########################################
$options['stripFlash'] = true;

##########################################
# EXTRA PARSING BEFORE MAIN PROXY PARSER
##########################################
function preParse($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);

        $s[] = '/var v="7";(.*?)player_div\);/is';
        $r[] = '';

        $s[] = '#// <!\[(.*?)// \]\]>#is';
        $r[] = '';

        $s[] = "#Hello, you either have JavaScript turned off or an old version of Adobe's Flash Player.#";
        $r[] = '';

        $s[] = "#</noscript>#";
        $r[] = '</noscript><div style="visibility: hidden;">';

        $s[] = '#<div id="actionsAreaDiv">#';
        $r[] = '</div><div id="actionsAreaDiv">';

        $s[] = '#<div style="padding: 20px; font-size:14px; font-weight: bold;">#';
        $r[] = '<div>';

        $s[] = '#Get the latest Flash player</a>.#';
        $r[] = "</a>";

        $s[] = '#<div id="playerDiv">#';
        $r[] = '<div><object type="application/x-shockwave-flash" data="' . optURL . 'videoplayer.swf" height="395" width="480" allowfullscreen="true"><param name="movie" value="' . optURL . 'videoplayer.swf" /><param name="flashvars" value="file='.proxifyURL('http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]).'&image='.proxifyURL('http://i.ytimg.com/vi/'.$thumbid.'/0.jpg').'&type=flv&allowfullscreen=true&autostart=false&fullscreenpage=true&fsreturnpage=true&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x996600" /><param name="menu" value="false" /></object>';

        $html = preg_replace($s,$r,$html);
    }

    return $html;
}

##########################################
# EXTRA PARSING AFTER MAIN PROXY PARSER
##########################################
function postParse(&$html,$type) {
    // Replace unproxified image
    if ( $type == 'javascript' )
        return str_replace('http://s.ytimg.com/yt/img/pixel-vfl73.gif',proxifyURL('http://s.ytimg.com/yt/img/pixel-vfl73.gif'),$html);

    return $html;
}

?>

Name it as youtube.php
Upload youtube.php into you plugin folder.


Download the media player (as found on Glype Forum)
videoplayer.swf

And upload the player to your PROXY DIRECTORY. (public_html)

PR4 Proxy List
PR2 Proxy List
Custom Proxy Templates for FREE!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-07-2008, 05:54 AM
Post: #3
RE: Someone Help Plz. i got some questions about YT plugin
nyunyu Wrote:Name it as youtube.php
Upload youtube.php into you plugin folder.


Download the media player (as found on Glype Forum)
videoplayer.swf

And upload the player to your PROXY DIRECTORY. (public_html)

No no You name it youtube.com.php,

Copy the code into a notepad and save as youtube.com.php and upload to your plugin directory. Upload the mediaplayer.swf to the root folder of your domain. So you can view the file by going like
yoursite.com/mediaplayer.swf
Find all posts by this user
Quote this message in a reply
04-07-2008, 08:15 AM
Post: #4
RE: Someone Help Plz. i got some questions about YT plugin
shoot..didn't notice I missing the .com Tongue

PR4 Proxy List
PR2 Proxy List
Custom Proxy Templates for FREE!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-07-2008, 05:04 PM
Post: #5
RE: Someone Help Plz. i got some questions about YT plugin
thx you too guys. ill try it.
Find all posts by this user
Quote this message in a reply
04-07-2008, 05:21 PM
Post: #6
RE: Someone Help Plz. i got some questions about YT plugin
yeaaapppppp Mdr Mdr Mdr Mdr
it woorkkkkkkkkksssssssss!!!! Mdr

THANK YOU SOOOO MUCHH GUYS.
Find all posts by this user
Quote this message in a reply
04-07-2008, 07:52 PM
Post: #7
RE: Someone Help Plz. i got some questions about YT plugin
Glad to see it works out fine. Happy

PR4 Proxy List
PR2 Proxy List
Custom Proxy Templates for FREE!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:

Contact UsWeb Proxy TalkReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication