CompleteGFX Home Contact Site Map

Go Back   Web Proxy Forum > Web Proxy Talk > Proxy Webmasters > Glype Proxy

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2008, 04:31 PM
Proxy Junior
 
Join Date: Apr 2008
Posts: 6
Rep: 0
WPT Credits: 11.09
Downloads: 0
Uploads: 0
Yukle.TV
Default 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.
Reply With Quote
  #2 (permalink)  
Old 04-06-2008, 05:12 PM
proxywhereabouts's Avatar
Super Mods
 
Join Date: Jan 2008
Posts: 761
Rep: 4
WPT Credits: 1,153.23
Downloads: 1
Uploads: 1
proxywhereabouts
Send a message via MSN to proxywhereabouts
Default 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)
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 04:54 AM
Super Mods
 
Join Date: Nov 2007
Posts: 441
Rep: 12
WPT Credits: 989.93
Downloads: 0
Uploads: 0
Dollar is on a distinguished road
Default RE: Someone Help Plz. i got some questions about YT plugin

Quote:
Originally Posted by nyunyu

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
__________________
Submit your new proxies.
Hidefinder's new proxies pages, ranks Top10 on Google for new proxies!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 07:15 AM
proxywhereabouts's Avatar
Super Mods
 
Join Date: Jan 2008
Posts: 761
Rep: 4
WPT Credits: 1,153.23
Downloads: 1
Uploads: 1
proxywhereabouts
Send a message via MSN to proxywhereabouts
Default RE: Someone Help Plz. i got some questions about YT plugin

shoot..didn't notice I missing the .com :P
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 04:04 PM
Proxy Junior
 
Join Date: Apr 2008
Posts: 6
Rep: 0
WPT Credits: 11.09
Downloads: 0
Uploads: 0
Yukle.TV
Default RE: Someone Help Plz. i got some questions about YT plugin

thx you too guys. ill try it.
Reply With Quote
  #6 (permalink)  
Old 04-07-2008, 04:21 PM
Proxy Junior
 
Join Date: Apr 2008
Posts: 6
Rep: 0
WPT Credits: 11.09
Downloads: 0
Uploads: 0
Yukle.TV
Default RE: Someone Help Plz. i got some questions about YT plugin

yeaaapppppp
it woorkkkkkkkkksssssssss!!!!

THANK YOU SOOOO MUCHH GUYS.
Reply With Quote
  #7 (permalink)  
Old 04-07-2008, 06:52 PM
proxywhereabouts's Avatar
Super Mods
 
Join Date: Jan 2008
Posts: 761
Rep: 4
WPT Credits: 1,153.23
Downloads: 1
Uploads: 1
proxywhereabouts
Send a message via MSN to proxywhereabouts
Default RE: Someone Help Plz. i got some questions about YT plugin

Glad to see it works out fine.
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


All times are GMT. The time now is 12:18 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios