| Author |
Message |
alnuke
Newbie


Joined: Dec 03, 2006
Posts: 4
|
Posted:
Thu Dec 07, 2006 5:58 am |
|
Thanks for the ShortLinks hack
I am using ravenNuke v2.02.00
For NSN GR Downloads, I got this error message
| Quote: |
| Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 67 in ../../../../includes/tegonuke/shortlinks/shortlinks.php on line 86 |
when set
$display_errors = true;
and
$tnsl_bUseShortLinks = TRUE;
in config.php
This error message will be displayed as below
| Quote: |
[nextGenFunction] = Present In Header
[nextGenName] = Downloads
[nextGenPath] = GT File :: ShortLinks/GT-Downloads.php :: Does Exist
[nextGenPath] = Using GT File :: ShortLinks/GT-Downloads.php
Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 67 in ../../../../includes/tegonuke/shortlinks/shortlinks.php on line 86
[nextGenPath] = Using GT File :: ShortLinks/GTZ-PageTap.php
[nextGenPath] = GT File :: ShortLinks/GTZ-PageTap.php :: Does Exist |
line 86 includes/tegonuke/shortlinks/shortlinks.php
| Quote: |
| $nextGenContent = preg_replace($urlin, $urlout, $nextGenContent); |
Thanks |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Thu Dec 07, 2006 7:48 am |
|
Have you changed GT-Downloads at all? I just checked the download against what I have running on the site here and it is an exact match. So, I am thinking that either you have modified it, or maybe the FTP of the file corrupted it? |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
alnuke
Newbie


Joined: Dec 03, 2006
Posts: 4
|
Posted:
Thu Dec 07, 2006 8:14 am |
|
Thanks for the quick reply
from my /ShortLinks/GT-Downloads.php
| Code: |
<?php
/******************************************************************************
* Script: TegoNuke(tm) ShortLinks "Tap" for NSN GR Downloads v1.0.3pl1
* from http://www.nukescripts.net.
* 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)
******************************************************************************/
$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]*))"', //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&op=search&query=([/:\-\'{}()\,\._&a-zA-Z0-9+=]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)"', //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&op=search&query=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&orderby=([a-zA-Z0-9+]*)"', //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&op=search"', //Must make code chg to work!
'"(?<!/)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', //Must make code chg to work!
'download-search-\\1-\\2-\\3-\\4.html', //Must make code chg to work!
'download-search-\\1-\\2.html', //Must make code chg to work!
'download-search.html', //Must make code chg to work!
'download-gfx-\\1.html',
'downloads-cat\\1.html',
'downloads.html'
);
?> |
From my .htaccess
| Code: |
#NSN GR Downloads
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&op=modifydownloadrequest&lid=$1 [L]
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&op=getit&lid=$1 [L]
RewriteRule ^downloads-(NewDownloads|newdownloads).html modules.php?name=Downloads&op=NewDownloads [L]
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&op=NewDownloads&newdownloadshowdays=$1 [L]
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&op=NewDownloadsDate&selectdate=$1 [L]
RewriteRule ^downloads-(MostPopular|mostpopular).html modules.php?name=Downloads&op=MostPopular [L]
RewriteRule ^download-(MostPopular|mostpopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&op=MostPopular&ratenum=$2&ratetype=$3 [L]
RewriteRule ^download-sort-([0-9]*)-orderby-title([aA]).html modules.php?name=Downloads&cid=$1&orderby=titleA [L]
RewriteRule ^download-sort-([0-9]*)-orderby-title([dD]).html modules.php?name=Downloads&cid=$1&orderby=titleD [L]
RewriteRule ^download-sort-([0-9]*)-orderby-date([aA]).html modules.php?name=Downloads&cid=$1&orderby=dateA [L]
RewriteRule ^download-sort-([0-9]*)-orderby-date([dD]).html modules.php?name=Downloads&cid=$1&orderby=dateD [L]
RewriteRule ^download-sort-([0-9]*)-orderby-hits([aA]).html modules.php?name=Downloads&cid=$1&orderby=hitsA [L]
RewriteRule ^download-sort-([0-9]*)-orderby-hits([dD]).html modules.php?name=Downloads&cid=$1&orderby=hitsD [L]
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&orderby=$3&show=$4 [L]
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1&orderby=$2 [L]
RewriteRule ^download-search.html modules.php?name=Downloads&op=search [L]
RewriteRule ^download-gfx-([0-9]*).html modules.php?name=Downloads&op=gfx&random_num=$1 [L]
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&cid=$1 [L]
RewriteRule ^downloads.html&min=([0-9]*)&cid=([0-9]*)$ modules.php?name=Downloads&min=$1&cid=$2 [L]
RewriteRule ^downloads.html downloads.html [L] |
|
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Thu Dec 07, 2006 8:24 am |
|
Although it is not apparent in what you have posted, first try re-FTP'ing the GT-Downloads.php file over using ASCII. If that does not work, use BINARY. I am seeing extra characters at the end of each line and I am thinking that these are ^M, which could be from a bad FTP. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
alnuke
Newbie


Joined: Dec 03, 2006
Posts: 4
|
Posted:
Thu Dec 07, 2006 11:25 am |
|
sorry montego, where is that ^M ? i don't see it above |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Fri Dec 08, 2006 8:03 am |
|
You don't see it above, but when I copy and paste that text into a good text editor, I see some lines having an extra character that my original distribution file does not have. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Dec 16, 2006 12:34 pm |
|
alnuke,
What is the status on this? |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|