- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 150 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Edonkey module GT??? [ ]
Author
Message
ZaKaTRoN
Nuke Soldier
Joined: Aug 28, 2003
Posts: 19
Location: Spain
Posted:
Wed Nov 12, 2003 9:50 am
irving.hutagalung
Corporal
Joined: Oct 07, 2003
Posts: 54
Location: Jakarta (Indonesia)
Posted:
Wed Nov 12, 2003 9:21 pm
For any generic modules, when you want put it to GT, these are the steps (guys, please add and modify as necessary):
1. List down all URLs of that module. You can either go through the PHP code, or manually browse all the URLs.
2. From that URL list, create the necessary regular expressions (regex). This regex will go the header.php file, along with other regex from GT.
3. From the regex and URL list, create the list of .html files for each URL. This list will go to the header.php file, along with other .html from GT.
4. From the regex and .html list, create the list of mod_rewrite rules. This list will go to the .htaccess file, along with other rules form GT.
So, from the list, the pre-requisites for creating your own additions to GT:
1. understand basic PHP
2. understand how PHP-Nuke works
3. understand basic regex
4. understand basic mod_rewrite
And of course, if you don't have the time to do all of these stuff, you can always wait in this forum until Audioslaved to the magic
- irving
http://www.IrvingEvaJoan.com
Audioslaved
Elite Nuker
Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
Posted:
Wed Nov 12, 2003 9:52 pm
along with what irving is saying, here are some additional hints on the regex
Regex expressions will work to replace the value of the variable
If your variable contains only numbers use
([0-9]*)
Lower case letters only
([a-z]*)
Upper Case letters only
([A-Z]*)
Upper and Lower Case
([A-Za-z]*) or ([a-zA-Z]*)
Numbers Upper and Lower Case
([a-zA-Z0-9]*) or ([A-Z0-9a-z]) (you get the picture)
Punctuations must be escaped with a backslash, i.e
\. (Period) \! (Exclamation) \, (Comma) \; (Semi-Colon) etc.
Punctuations, Numbers, Letters
([A-Za-z0-9\.\\\/\!\,\;]*)
if $sid equals a number in the following URL
Code:
modules.php?name=Forums&file=viewtopic&f=$sid
The regex would look like
Code:
modules.php?name=Forums&file=viewtopic&f=([0-9]*)
Moving on, say you have the following two URLs:
Code:
modules.php=Forums&file=viewtopic&f=$sid
modules.php=Forums&file=viewforum&f=$lid
You could simplify this to only one URL by using the divider, which is represented as | (means "or")
the url's above are now the following
Code:
modules.php=Forums&file=view(topic|forum)&f=([0-9]*)
This says it can be viewtopic "or" viewforum
I will put more as I think of it, I don't want to get too advanced with [^], (?!) type stuff yet.
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com
ZaKaTRoN
Nuke Soldier
Joined: Aug 28, 2003
Posts: 19
Location: Spain
Posted:
Thu Nov 13, 2003 2:00 am
Sorry, but it seems too difficult for me...
Two month ago I download GT Audioslaved, and I try to add edonkey module. This module is based on downloads module, so I tried copy all entries (of header.php and .htaccess), and modify entries Downloads for Edonkey and download and downloads for edonkey, and this module works ok GT, but are a small bug, orderby don't works on edonkey module neither downloads module, it seems a conflict between modules.
Can you help me please? If you want mi messenger is zakatronweb@hotmail.com we can to try convert this module to gt, and if works we can publicate the code. If you want the module I can send you.
Please help... Thanks a lot irving.hutagalung and Audioslaved!
irving.hutagalung
Corporal
Joined: Oct 07, 2003
Posts: 54
Location: Jakarta (Indonesia)
Posted:
Thu Nov 13, 2003 10:02 pm
Well, if that's the case, can you submit the URL? please give us the original URL, the URL that GT created, and the snippet of your .htaccess and header.php. No need to post the entire file, just the snipper for the specified URL.
- irving
http://www.IrvingEvaJoan.com
ZaKaTRoN
Nuke Soldier
Joined: Aug 28, 2003
Posts: 19
Location: Spain
Posted:
Thu Nov 13, 2003 10:51 pm
The url web is www.zakatron.com, the url edonkey module is http://www.zakatron.com/modules.php?name=Edonkey
.htaccess (I show to too downloads module for is you see and conflict)
Quote:
#Downloads
RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&d_op=NewDownloads`"wdownloadshowdays=$1
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownload-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownload-([0-9]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^download-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Downloads&d_op=$1
RewriteRule ^download([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1("derby=$2
RewriteRule ^download([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2("derby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=search&query=$1&min=$2("derby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1("derby=$2
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^download-outside-([0-9]*).html modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads.html modules.php?name=Downloads
#Edonkey
RewriteRule ^edonkeyview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Edonkey&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^edonkey-mod-([0-9]*).html modules.php?name=Edonkey&d_op=modifydownloadrequest&lid=$1
RewriteRule ^edonkey-broken-([0-9]*).html modules.php?name=Edonkey&d_op=brokendownload&lid=$1
RewriteRule ^edonkey-shownew-([0-9]*).html modules.php?name=Edonkey&d_op=NewDownloads`"wdownloadshowdays=$1
RewriteRule ^edonkey-seldate-([a-zA-Z0-9+]*).html modules.php?name=Edonkey&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^edonkey-file-([0-9]*).html modules.php?name=Edonkey&d_op=getit&lid=$1
RewriteRule ^rateedonkey-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Edonkey&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^rateedonkey-([0-9]*).html modules.php?name=Edonkey&d_op=ratedownload&lid=$1
RewriteRule ^edonkey-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Edonkey&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^edonkey-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Edonkey&d_op=$1
RewriteRule ^edonkey([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Edonkey&d_op=viewdownload&cid=$1("derby=$2
RewriteRule ^edonkey([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Edonkey&d_op=viewdownload&cid=$1&min=$2("derby=$3&show=$4
RewriteRule ^edonkey-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Edonkey&d_op=search&query=$1&min=$2("derby=$3&show=$4
RewriteRule ^edonkey-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Edonkey&d_op=search&query=$1("derby=$2
RewriteRule ^edonkey-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=v&d_op=search&query=$1
RewriteRule ^edonkey-outside-([0-9]*).html modules.php?name=Edonkey&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^edonkey-cat([0-9]*).html modules.php?name=Edonkey&d_op=viewdownload&cid=$1
RewriteRule ^edonkey.html modules.php?name=Edonkey
header.php
Quote:
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload(comments|details|editorial)&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=modifydownloadrequest&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=brokendownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=NewDownloads&newdownloadshowdays=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=NewDownloadsDate&selectdate=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=(TopRated|MostPopular)&ratenum=([0-9]*)&ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Downloads&d_op=(AddDownload|NewDownloads|MostPopular|TopRated)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+=]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+= ]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+=]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=outsidedownloadsetup&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads'",
"'(?<!/)modules.php\?name=Edonkey&d_op=viewdownload(comments|details|editorial)&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=modifydownloadrequest&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=brokendownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=NewDownloads&newdownloadshowdays=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=NewDownloadsDate&selectdate=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=ratedownload&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=ratedownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=ratedownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=(TopRated|MostPopular)&ratenum=([0-9]*)&ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=(AddDownload|NewDownloads|MostPopular|TopRated)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=viewdownload&cid=([0-9]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+=]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+= ]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+=]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=outsidedownloadsetup&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Edonkey'",
and...
Quote:
"downloadview-\\1-\\2-\\3.html",
"download-mod-\\1.html",
"download-broken-\\1.html",
"download-shownew-\\1.html",
"download-seldate-\\1.html",
"download-file-\\1.html",
"ratedownload-\\1-\\2.html",
"ratedownload-\\1.html",
"ratedownload-\\1.html",
"download-\\1-\\2-\\3.html",
"downloads-\\1.html",
"download\\1-orderby\\2.html",
"download\\1-\\2-\\3-\\4.html",
"download-search-\\1-\\2-\\3-\\4.html",
"download-search-\\1-\\2.html",
"download-search-\\1.html",
"download-outside-\\1.html",
"downloads-cat\\1.html",
"downloads-cat\\1.html",
"downloads.html",
"edonkeyview-\\1-\\2-\\3.html",
"edonkey-mod-\\1.html",
"edonkey-broken-\\1.html",
"edonkey-shownew-\\1.html",
"edonkey-seldate-\\1.html",
"edonkey-file-\\1.html",
"rateedonkey-\\1-\\2.html",
"rateedonkey-\\1.html",
"rateedonkey-\\1.html",
"edonkey-\\1-\\2-\\3.html",
"edonkey-\\1.html",
"edonkey\\1-orderby\\2.html",
"edonkey\\1-\\2-\\3-\\4.html",
"edonkey-search-\\1-\\2-\\3-\\4.html",
"edonkey-search-\\1-\\2.html",
"edonkey-search-\\1.html",
"edonkey-outside-\\1.html",
"edonkey-cat\\1.html",
"edonkey-cat\\1.html",
"edonkey.html",
Now I have disable this gt because don't works. Do you need I upload gt for you see where fails?
Thanks you!
irving.hutagalung
Corporal
Joined: Oct 07, 2003
Posts: 54
Location: Jakarta (Indonesia)
Posted:
Sun Nov 16, 2003 9:34 pm
Well, I went to your website, but instantly get lost bcoz of the language I also never used eDonkey, so I don't know how the module works.
To make it easier, since you said the only problem is the "orderby" function, I looked at your code but can not find the problem. So, instead of browsing through your site, can you give me:
- the original URL
- the target URL (after tapped)
Just give me these two for that orderby function only. Since you already give the .htaccess and header.php snippet, you don't need to give me those anymore.
- irving
http://www.IrvingEvaJoan.com
ZaKaTRoN
Nuke Soldier
Joined: Aug 28, 2003
Posts: 19
Location: Spain
Posted:
Mon Nov 17, 2003 3:43 pm
irving.hutagalung
Corporal
Joined: Oct 07, 2003
Posts: 54
Location: Jakarta (Indonesia)
Posted:
Mon Nov 17, 2003 7:20 pm
ZaKaTRoN, can you check your .htaccess file first, bcoz I keep seeing:
instead of:
For instance, in one of your edonkey rule:
Code:
RewriteRule ^edonkey([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Edonkey&d_op=viewdownload&cid=$1("derby=$2
shouldn't this be:
Code:
RewriteRule ^edonkey([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Edonkey&d_op=viewdownload&cid=$1&orderby=$2
Please check.
- irving
http://www.IrvingEvaJoan.com
Audioslaved
Elite Nuker
Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
Posted:
Mon Nov 17, 2003 7:25 pm
Divvy
Lieutenant
Joined: Jul 25, 2004
Posts: 218
Posted:
Sat Oct 02, 2004 7:44 am
What GT means?
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12482
Posted:
Sat Oct 02, 2004 11:27 pm
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