webservant
Worker


Joined: Feb 26, 2006
Posts: 206
Location: Springfield, MA
|
Posted:
Wed Mar 21, 2007 11:59 am |
|
A while ago, I replaced Downloads with NSN Downloads, and had it working under an 0.4a GT. When I upgraded to RN 2.10 with Shortlinks, the NSN Downloads main page (download.html) works, but any links off of it go back to this page (download.html).
To resolve this, I went back to the GoogleTap directory and took the original GT-Downloads.php which had this in it:
Code:
$urlin = array(
"'(?<!/)modules.php\?name=Downloads&op=modifydownloadrequest&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&op=NewDownloads&newdownloadshowdays=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&op=NewDownloadsDate&selectdate=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&op=(MostPopular)&ratenum=([0-9]*)&ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Downloads&op=(NewDownloads|MostPopular)'",
"'(?<!/)modules.php\?name=Downloads&cid=([0-9]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&min=([0-9]*)&cid=([0-9]*))'",
"'(?<!/)modules.php\?name=Downloads&op=search&query=([/:\-\'{}()\,\._&a-zA-Z0-9+=]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&op=search&query=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&op=search'",
"'(?<!/)modules.php\?name=Downloads&op=gfx&random_num=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads'"
);
$urlout = array(
"download-mod-\\1.html",
"download-shownew-\\1.html",
"download-seldate-\\1.html",
"download-file-\\1.html",
"download-\\1-\\2-\\3.html",
"downloads-\\1.html",
"download-sort-\\1-orderby-\\2.html",
"download-paging-\\1-\\2.html",
"download-search-\\1-\\2-\\3-\\4.html",
"download-search-\\1-\\2.html",
"download-search.html",
"download-gfx-\\1.html",
"downloads-cat\\1.html",
"downloads.html"
);
|
And changed it to this (following Montego's lead):
Code:$urlin = array(
'"(?<!/)modules.php\?name=Downloads&op=modifydownloadrequest&lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&op=NewDownloads&newdownloadshowdays=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&op=NewDownloadsDate&selectdate=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&op=getit&lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&op=(MostPopular)&ratenum=([0-9]*)&ratetype=(num|percent)"',
'"(?<!/)modules.php\?name=Downloads&op=(NewDownloads|MostPopular)"',
'"(?<!/)modules.php\?name=Downloads&cid=([0-9]*)&orderby=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&min=([0-9]*)&cid=([0-9]*))"',
'"(?<!/)modules.php\?name=Downloads&op=search&query=([/:\-\'{}()\,\._&a-zA-Z0-9+=]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&op=search&query=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&orderby=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&op=search"',
'"(?<!/)modules.php\?name=Downloads&op=gfx&random_num=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads"'
);
$urlout = array(
'download-mod-\\1.html',
'download-shownew-\\1.html',
'download-seldate-\\1.html',
'download-file-\\1.html',
'download-\\1-\\2-\\3.html',
'downloads-\\1.html',
'download-sort-\\1-orderby-\\2.html',
'download-paging-\\1-\\2.html',
'download-search-\\1-\\2-\\3-\\4.html',
'download-search-\\1-\\2.html',
'download-search.html',
'download-gfx-\\1.html',
'downloads-cat\\1.html',
'downloads.html'
);
|
Is this the correct solution, or is there a tweaked version to the Shortlinks supplied GT-Downloads.php that would be better? |
_________________ Awaiting His Shout
Webservant - GraciousCall.org
Romans 8:28-39 |
|