PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
webservant
Worker
Worker


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

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

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?
View user's profile Send private message Visit poster's website AIM Address
montego
Site Admin


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

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

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 to the forums!


Regards,
montego
View user's profile Send private message Visit poster's website
webservant
Worker
Worker


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

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

Thanks!
View user's profile Send private message Visit poster's website AIM Address
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
webservant
Worker
Worker


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

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

I've applied the differences and it all works great! Thanks again!
View user's profile Send private message Visit poster's website AIM Address
montego
Site Admin


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

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

Glad to hear it.
View user's profile Send private message Visit poster's website
sixf00t4
Regular
Regular


Joined: Nov 05, 2006
Posts: 51

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

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


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

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

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 Visit poster's website
montego
Site Admin


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

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

Yeah, sorry, it is next on the list after RN 2.20.00.
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum