Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
sirxazor
Newbie
Newbie



Joined: Apr 27, 2007
Posts: 8

PostPosted: Sat Apr 28, 2007 8:19 pm Reply with quote

Hey,

I am working on my Video Stream modules... I have no knowledge with Regex, but by looking at the premade files I can see somewhat of what this is doing...

I am starting to do the tapping, and this is what I have done so far...

First thing...

Getting the links of the modules... These are the main links I think...
Code:

// TOP

http://eureka7extreme.net/modules.php?name=Video_Stream
javascript:loadadd()
http://eureka7extreme.net/modules.php?name=Video_Stream&page=search
http://eureka7extreme.net/modules.php?name=Feedback
http://eureka7extreme.net/modules.php?name=Recommend_Us

// VIEW DIFFERENT CATEGORIES
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=0
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=1
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=5
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=6
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=2
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=3
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=7
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=8
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=9
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=10
http://eureka7extreme.net/modules.php?name=Video_Stream&categoryby=11

// VIEWING CURRENT VIEWS IN CURRENT CATEGORY
http://eureka7extreme.net/modules.php?name=Video_Stream&page=watch&id=47&d=1

http://eureka7extreme.net/modules.php?name=Video_Stream&page=search&search=user:SirMaximus

http://eureka7extreme.net/modules.php?name=Video_Stream&page=watch&id=7&d=1

http://eureka7extreme.net/modules.php?name=Video_Stream&page=search&search=user:lovethisanime



// Current N Next Page...
http://eureka7extreme.net/modules.php?name=Video_Stream&d=1


Then, copied one of the premade files, and renamed it as

GT-Video_Stream.php
Which looks like this right now.

Code:

<?php
/************************************************************************
* Script:     TegoNuke(tm) ShortLinks
* Version:    1.0
* Author:     Rob Herder (aka: montego) of http://montegoscripts.com
* Contact:    montego@montegoscripts.com
* Copyright:  Copyright © 2006 by Montego Scripts
* License:    GNU/GPL (see provided LICENSE.txt file)
************************************************************************/
//GT-NExtGEn 0.4/0.5 by Bill Murrin (Audioslaved) http://gt.audioslaved.com (c) 2004
//Original Nukecops GoogleTap done by NukeCops (http://www.nukecops.com)

$urlin = array(
'"(?<!/)modules.php\?name=Video_Stream&amp;categoryby=([0-9]*)"',
'"(?<!/)modules.php\?name=Video_Stream"'
);

$urlout = array(
'Video_Stream-cat\\1.html',
'Video_Stream.html'
);

?>


And, the .htaccess file...

Code:
#Video_Stream
RewriteRule ^Video_Stream-cat\\1.html modules.php?name=Video_Stream&categoryby=$1 [L]
RewriteRule ^Video_Stream.html modules.php?name=Video_Stream [L]


I am actually happy because I made the module short, when I tested... It showed the module as Video_Stream.html, and the categories looked like Video_Stream-cat\\1 and even the numbers worked!!!

But, when I clicked a video, it would just reload the same page Sad

I am proud I did this all on my won Laughing

Anyone could help me? thank you!
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Apr 28, 2007 9:27 pm Reply with quote

Your first .htaccess rewrite rule is close, but needs to be:

Code:

RewriteRule ^Video_Stream-cat([0-9]*).html modules.php?name=Video_Stream&categoryby=$1


See the slight difference. You basically do the rewrite in reverse.

Now you just have I think 2 more patterns to match!

Way to go!
 
View user's profile Send private message Visit poster's website
sirxazor
Newbie
Newbie



Joined: Apr 27, 2007
Posts: 8

PostPosted: Sun Apr 29, 2007 1:00 am Reply with quote

Thank you very much Smile

Okey... Now into getting the page where we view the videos...

This is what I have done so far...

Link I want to Tap

Code:
http://eureka7extreme.net/modules.php?name=Video_Stream&page=watch&id=47&d=1


GT-Video_Stream.php
Code:
<?php
/************************************************************************
* Script:     TegoNuke(tm) ShortLinks
* Version:    1.0
* Author:     Rob Herder (aka: montego) of http://montegoscripts.com
* Contact:    montego@montegoscripts.com
* Copyright:  Copyright © 2006 by Montego Scripts
* License:    GNU/GPL (see provided LICENSE.txt file)
************************************************************************/
//GT-NExtGEn 0.4/0.5 by Bill Murrin (Audioslaved) http://gt.audioslaved.com (c) 2004
//Original Nukecops GoogleTap done by NukeCops (http://www.nukecops.com)

$urlin = array(
'"(?<!/)modules.php\?name=Video_Stream&amp;page=watch&amp;id=([0-9]*)&amp;d=([0-9]*)"',
'"(?<!/)modules.php\?name=Video_Stream&amp;categoryby=([0-9]*)"',
'"(?<!/)modules.php\?name=Video_Stream"'
);

$urlout = array(
'Video_Stream-watch-\\1-\\2.html',
'Video_Stream-cat\\1.html',
'Video_Stream.html'
);

?>


And the .htaccess file...

Code:
#Video_Stream                                                           
RewriteRule ^Video_Stream-watch-([0-9]*)-([0-9]*).html modules.php?name=Video_Stream&page=watch&id=$&d=$ [L]
RewriteRule ^Video_Stream-cat([0-9]*).html modules.php?name=Video_Stream&categoryby=$ [L]
RewriteRule ^Video_Stream.html modules.php?name=Video_Stream [L]


I tested the above, and it's actually taking me to the view page!!!! but, the only problem is that I can't see the video Shocked

Help again? Wink

Thanks again for all of your help Smile
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Apr 29, 2007 8:34 am Reply with quote

You will have to view source to find the link that is showing the video. I am not sure how the script is creating the HTML, but there has to be some form of src or href or something with a URL. I am guessing that it will look something like this:

aaaa="Video_Stream.html&amp;something...."

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
sirxazor
Newbie
Newbie



Joined: Apr 27, 2007
Posts: 8

PostPosted: Sun Apr 29, 2007 2:17 pm Reply with quote

can you take a look at http://eureka7extreme.net/watch.txt and tell me if you can find it? because I can't Sad

Btw, thanks for the help m8.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Apr 29, 2007 2:22 pm Reply with quote

Actually, i need to see the HTML source, i.e., the generated HTML that is in your browser when you visit the page. The page where you are expecting to see the video stream.

Definitely still keep the above post as I have a bad feeling that this may be buried in javascript which will mean you may have to hard-code the change...
 
View user's profile Send private message Visit poster's website
sirxazor
Newbie
Newbie



Joined: Apr 27, 2007
Posts: 8

PostPosted: Sun Apr 29, 2007 2:30 pm Reply with quote

Okey, here you go Smile

http://eureka7extreme.net/Gtext.txt

Thanks again!


EDIT:

Opps, why does it take you to the view, and not as text mode? Shocked
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Apr 29, 2007 2:37 pm Reply with quote

I will have to look at this later, but you need to get with your host and make sure they set up your Apache MIME/applications correctly. They could be opening you up for all sorts of exploits with how this is currently configured!
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Apr 29, 2007 2:53 pm Reply with quote

Well, I spent a little time looking at the HTML in your text file. I believe that only the following types of links can be tapped (and in the order listed):

Code:

modules.php?name=Video_Stream&amp;categoryby=1
modules.php?name=Video_Stream&amp;page=broken&amp;id=23&amp;vidname=Eureka-seveN-AMV:-Passion
modules.php?name=Video_Stream&amp;page=search&amp;search=user:SirMaximus
modules.php?name=Video_Stream&amp;page=search
modules.php?name=Video_Stream&amp;page=watch&amp;id=23&amp;d=1
modules.php?name=Video_Stream&amp;page=watch&amp;id=23
modules.php?name=Video_Stream


Unfortunately, since the following javascript code is concatenating strings together, they cannot be tapped. You will have to find out what is creating these and hard-code the shorter links directly into the script(s):

Code:

window.open('modules.php?name=Video_Stream&amp;page=comment&amp;moderateVS='+modcom+'&amp;id='+id+'','','scrollbars=no,menubar=no,height=250,width=500,resizable=no,toolbar=no,location=no,status=no');

window.open('modules.php?name=Video_Stream&amp;page=send&amp;id='+id+'','','scrollbars=no,menubar=no,height=240,width=200,resizable=no,toolbar=no,location=no,status=no');

window.open('modules.php?name=Video_Stream&amp;page=vidadd','','scrollbars=no,menubar=no,height=600,width=360,resizable=no,toolbar=no,location=no,status=no');

window.open('modules.php?name=Video_Stream&amp;page=rate&amp;id='+id+'&amp;rate='+rate+'','','scrollbars=no,menubar=no,height=50,width=250,resizable=no,toolbar=no,location=no,status=no');

window.open('modules.php?name=Video_Stream&amp;page=vidpop&amp;id='+id+'','','scrollbars=no,menubar=no,height='+height+',width='+width+',resizable=yes,toolbar=no,location=no,status=no');

window.open('modules.php?name=Video_Stream&amp;page=comment&amp;moderateVS=1&amp;id='+id+'','','scrollbars=no,menubar=no,height=250,width=500,resizable=no,toolbar=no,location=no,status=no');


Hope this helps.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch