Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
webservant
Worker
Worker



Joined: Feb 26, 2006
Posts: 206
Location: Springfield, MA

PostPosted: Wed Mar 21, 2007 11:59 am Reply with quote

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&amp;op=modifydownloadrequest&amp;lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=NewDownloads&amp;newdownloadshowdays=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=NewDownloadsDate&amp;selectdate=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=getit&amp;lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=(MostPopular)&amp;ratenum=([0-9]*)&amp;ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=(NewDownloads|MostPopular)'",
"'(?<!/)modules.php\?name=Downloads&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;min=([0-9]*)&amp;cid=([0-9]*))'",
"'(?<!/)modules.php\?name=Downloads&amp;op=search&amp;query=([/:\-\'{}()\,\._&amp;a-zA-Z0-9+=]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)&amp;show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=search&amp;query=([/:\-\'{}()\,\._&amp;a-zA-Z0-9+= ]*)&amp;orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;op=search'",
"'(?<!/)modules.php\?name=Downloads&amp;op=gfx&amp;random_num=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&amp;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&amp;op=modifydownloadrequest&amp;lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=NewDownloads&amp;newdownloadshowdays=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=NewDownloadsDate&amp;selectdate=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=getit&amp;lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=(MostPopular)&amp;ratenum=([0-9]*)&amp;ratetype=(num|percent)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=(NewDownloads|MostPopular)"',
'"(?<!/)modules.php\?name=Downloads&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;min=([0-9]*)&amp;cid=([0-9]*))"',
'"(?<!/)modules.php\?name=Downloads&amp;op=search&amp;query=([/:\-\'{}()\,\._&amp;a-zA-Z0-9+=]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)&amp;show=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=search&amp;query=([/:\-\'{}()\,\._&amp;a-zA-Z0-9+= ]*)&amp;orderby=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=search"',
'"(?<!/)modules.php\?name=Downloads&amp;op=gfx&amp;random_num=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;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 
View user's profile Send private message Visit poster's website AIM Address
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Mar 22, 2007 6:04 am Reply with quote

webservant, you are correct, NSN Downloads is different than the standard PHP-Nuke downloads and I have the necessary tweaks as a separate download from my site:
[ Only registered users can see links on this board! Get registered or login! ]

Regards,
montego

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
webservant







PostPosted: Thu Mar 22, 2007 3:33 pm Reply with quote

Thanks!
 
montego







PostPosted: Thu Mar 22, 2007 10:09 pm Reply with quote

I couldn't just make a simple ShortLinks variant as it requires a small code change to also work properly with the search. Hence, the separate download.
 
webservant







PostPosted: Fri Mar 23, 2007 4:57 am Reply with quote

I've applied the differences and it all works great! Thanks again!
 
montego







PostPosted: Fri Mar 23, 2007 6:22 am Reply with quote

Glad to hear it.
 
sixf00t4
Regular
Regular



Joined: Nov 05, 2006
Posts: 96

PostPosted: Fri Oct 19, 2007 10:22 am Reply with quote

Thanks so much!!! Works like a charm!
 
View user's profile Send private message Visit poster's website AIM Address
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Oct 19, 2007 10:50 am Reply with quote

It doesn´t work like a charm there are still some issues with submit downloads and short links or such urls: downloads.html?min=10&cid=1 .
However, there are much more issues with that module but we have to be patient because Montego is the only who has taken over this module and its very time consuming to get this all fixed. I know this because I only tried to make it W3C valid and its still not 100 % valid.
 
View user's profile Send private message
montego







PostPosted: Sat Oct 20, 2007 4:51 pm Reply with quote

Yeah, sorry, it is next on the list after RN 2.20.00.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©