| Author |
Message |
sirxazor
Newbie


Joined: Apr 27, 2007
Posts: 8
|
Posted:
Sat Apr 28, 2007 8:19 pm |
|
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&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
I am proud I did this all on my won
Anyone could help me? thank you! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Apr 28, 2007 9:27 pm |
|
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! |
| |
|
|
 |
sirxazor
Newbie


Joined: Apr 27, 2007
Posts: 8
|
Posted:
Sun Apr 29, 2007 1:00 am |
|
Thank you very much
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&page=watch&id=([0-9]*)&d=([0-9]*)"',
'"(?<!/)modules.php\?name=Video_Stream&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
Help again?
Thanks again for all of your help  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sun Apr 29, 2007 8:34 am |
|
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&something...." |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
sirxazor
Newbie


Joined: Apr 27, 2007
Posts: 8
|
Posted:
Sun Apr 29, 2007 2:17 pm |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sun Apr 29, 2007 2:22 pm |
|
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... |
| |
|
|
 |
sirxazor
Newbie


Joined: Apr 27, 2007
Posts: 8
|
Posted:
Sun Apr 29, 2007 2:30 pm |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sun Apr 29, 2007 2:37 pm |
|
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! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sun Apr 29, 2007 2:53 pm |
|
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&categoryby=1
modules.php?name=Video_Stream&page=broken&id=23&vidname=Eureka-seveN-AMV:-Passion
modules.php?name=Video_Stream&page=search&search=user:SirMaximus
modules.php?name=Video_Stream&page=search
modules.php?name=Video_Stream&page=watch&id=23&d=1
modules.php?name=Video_Stream&page=watch&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&page=comment&moderateVS='+modcom+'&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&page=send&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&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&page=rate&id='+id+'&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&page=vidpop&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&page=comment&moderateVS=1&id='+id+'','','scrollbars=no,menubar=no,height=250,width=500,resizable=no,toolbar=no,location=no,status=no');
|
Hope this helps. |
| |
|
|
 |
|
|