214 - 470 vbtube_add.php
PHP Code:
if(eregi("video.google", $link3))
{
$muster= '#'.$urlex[0].'video.google.(?:[A-Za-z\.]{2,5})/videoplay\?docid=([0-9\-]+)(?:[^"]+)?'.$urlex[1].'#';
$resultat= preg_match($muster, $link1,$matches);
$link1 = '<embed style="width:470px; height:400px;" wmode="opaque" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId='.$matches[2].'&hl=en" flashvars=""> </embed>';
$site=2;
}
So we will just have to edit ot so that it will work with the other sites...
<object width="400" height="350"><param name="movie" value="http://video.megarotic.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://video.megarotic.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="424" height="337"></embed></object>
That is the normal HTML code for the Megarotic... So that makes the following PHP Code.. (judging from the free version :P)
PHP Code:
if (eregi("video.megarotic.com/", $link3))
{
$muster= '#'.$urlex[0].'video.megarotic.com/v/(\d+)(?:[^"]+)?'.$urlex[1].'#';
$resultat= preg_match($muster, $link1, $matches);
$link2= '<object width=\"400\" height=\"350\"><param name=\"movie\" value=\"http://video.megarotic.com/v/'.$matches[2].'\" ></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://video.megarotic.com/v/\"'.$matches[2].'\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"424\" height=\"337\"></embed></object>';
$link1=$link2;
$site=26;
$tube=1;
}
The $site number must change to something else... I just used the site number 26 to copy the information from to judge if it is possible...
I will try to implement this on my testing site and as soon as I have it working there then we can implement it on NH. It will take me some time because I am going to enjoy the sun and I am also busy with the MCSE (Microsoft Certified Systems Engineer)
=======================
LOL found the following line in the free version script in the file tablefix.php
vbmail($toemail = '****E-Mail removed by Pretmaker****', $subject = 'vbtubeLITE TableFIX', $message = $vbulletin->options[bburl], $notsubscription = true, $from = $vbulletin->options[bbtitle], $uheaders = '', $username = '');
That seems to send a e-mail message to the developer of the free version :)
Why and how, I got no idea... But apparently it sends the boardurl where it is installed to the developer...... Nice to see that they want to know that people remove their copy rights/adapt their scripts... :P
This could also be interesting for you Arika... Maybe chek the current scripts that you have if almost the same line is somewhere in the file ;)