| Author |
Message |
vvburnedvv
Newbie


Joined: Oct 13, 2006
Posts: 1
|
Posted:
Sun Oct 22, 2006 11:04 pm |
|
I Got Shortlinks to work perfectly on PHP Nuke 8.0 but it's not working on nsn news module 2.0 RC ?.
anybody knows what modifications need to be made?
i'm also wondering how to allow the availability of index.html to show the same thing that index.php does (like www.nukecops.com/index.html has the same thing as www.nukecops.com/index.php).
Thanks
http://www.Yawho.cc |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 954
|
Posted:
Mon Oct 23, 2006 8:49 am |
|
I will have to get NSN news 2.0 and take a look. Unfortunately, I am not going to be able to get to that for quite awhile due to current commitments on RavenNuke 2.10.00.
To make index.html behave the same as index.php use this simple rewrite rule:
RewriteRule ^index.html index.php
Edited: Place this right after your RewriteEngine on statement and before your ShortLinks ones. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
rbted
Newbie


Joined: Oct 09, 2006
Posts: 1
|
Posted:
Wed Oct 25, 2006 7:41 am |
|
Here we go open .htaccess
Part 1
Remove the parts Topics and Storie Archives as they belong to Nsn news and are no longer seperate modules.
Replace #Articles section with code below
| Quote: |
#Articles, Stories Archive, Topics (Nsn News rc2)
RewriteRule ^archive-year([0-9]*)-month([0-9]*).html modules.php?name=News&op=NEMonth&year=$1&month=$2 [L]
RewriteRule ^archive-showall.html modules.php?name=News&op=NEAll [L]
RewriteRule ^archive.html modules.php?name=News&op=NEArchive [L]
RewriteRule ^new_user.html modules.php?name=Your_Account&op=new_user [L]
RewriteRule ^topics.html modules.php?name=News&op=NETopicMain [L]
RewriteRule ^topic-([0-9]*).html modules.php?name=News&op=NETopics&topic=$1 [L]
RewriteRule ^article_popup-([0-9]*).html modules.php?name=News&op=NERead&sid=$1 [L]
RewriteRule ^article_rating_done_([0-9]*)_([0-9]*).html modules.php?name=News&op=NERateDone&sid=$1&rated=$2 [L]
RewriteRule ^article_reply_([0-9]*)_([0-9]*)_([a-z]*)_([0-9]*)_([0-9]*).html modules.php?name=News&op=NEReply&pid=$1&sid=$2&mode=$3&order=$4&thold=$5 [L]
RewriteRule ^article_comments_show_([0-9]*)_([0-9]*)_([0-9]*)_([a-z]*)_([0-9]*)_([a-zA-Z0-9_-]*).html modules.php?name=News&op=NECommentShow&tid=$1&sid=$2&pid=$3&mode=$4&order=$5&thold=$6 [L]
RewriteRule ^search_comments-([0-9]*).html modules.php?name=Search&type=comments&sid=$1 [L]
RewriteRule ^search_authors_([a-zA-Z0-9_-]*).html modules.php?name=Search&author=$1 [L]
RewriteRule ^search_topics-([0-9]*).html modules.php?name=Search&topic=$1 [L]
RewriteRule ^article_pdf-([0-9]*).html modules.php?name=News&op=NEPortable&sid=$1 [L]
RewriteRule ^article_print-([0-9]*).html modules.php?name=News&op=NEPrint&sid=$1 [L]
RewriteRule ^article_topic-([0-9]*).html modules.php?name=News&new_topic=$1 [L]
RewriteRule ^article_topics.html topics.html [L]
RewriteRule ^article-([0-9]*).html modules.php?name=News&op=NEArticle&sid=$1 [L]
RewriteRule ^articles.html modules.php?name=News [L] |
Part 2
Remove ShorLinks/GT-Topics.php and ShorLinks/GT-Stories_Archives.php they are no longer needed
Open ShorLinks/GT-News.php and replave code with
| Quote: |
$urlin = array(
'"(?<!/)modules.php\?name=News&op=NEMonth&year=([0-9]*)&month=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NEAll"',
'"(?<!/)modules.php\?name=News&op=NEArchive"',
'"(?<!/)modules.php\?name=Your_Account&op=new_user"',
'"(?<!/)modules.php\?name=News&op=NETopicMain"',
'"(?<!/)modules.php\?name=News&op=NETopics&topic=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NERead&sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NERateDone&sid=([0-9]*)&rated=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NEReply&pid=([0-9]*)&sid=([0-9]*)&mode=([a-z]*)&order=([0-9]*)&thold=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NECommentShow&tid=([0-9]*)&sid=([0-9]*)&pid=([0-9]*)&mode=([a-z]*)&order=([0-9]*)&thold=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Search&type=comments&sid=([0-9]*)"',
'"(?<!/)modules.php\?name=Search&author=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Search&topic=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NEPortable&sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News&op=NEPrint&sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News&new_topic=([0-9]*)"',
'"(?<!/)modules.php\?name=Topics"',
'"(?<!/)modules.php\?name=News&op=NEArticle&sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News"',
);
$urlout = array(
'archive-year\\1-month\\2.html',
'archive-showall.html',
'archive.html',
'new_user.html',
'topics.html',
'topic-\\1.html',
'article_popup-\\1.html',
'article_rating_done_\\1_\\2.html',
'article_reply_\\1_\\2_\\3_\\4_\\5.html',
'article_comments_show_\\1_\\2_\\3_\\4_\\5_\\6.html',
'search_comments-\\1.html',
'search_authors_\\1.html',
'search_topics-\\1.html',
'article_pdf-\\1.html',
'article_print-\\1.html',
'article_topic-\\1.html',
'article_topics.html',
'article-\\1.html',
'articles.html',
);
|
Please dont forget the opening and end php code
Maybe more taps are required as i am still testing on my site please let me know than i will tap these |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 954
|
Posted:
Wed Oct 25, 2006 8:00 am |
|
rbted,
Thank you so much! I know that there are a lot of people using NSN News 2.0 rcN, so I am sure they will appreciate it. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
phroz3n
Newbie


Joined: May 15, 2007
Posts: 1
|
Posted:
Thu May 17, 2007 9:41 am |
|
tq too  |
| |
|
|
 |
webservant
Newbie


Joined: Mar 07, 2007
Posts: 5
|
Posted:
Sun Sep 23, 2007 6:16 pm |
|
I've followed this thread and this other thread http://montegoscripts.com/ftopict-203.html. The latter solves more of the issues with RavenNuke 2.10 and NSN News.
Although, I'm still having issues with the Top module and the backend.php - both yield a
| Quote: |
| Sorry, that module was not found. |
The link from top looks like this:
| Code: |
| http://www.graciouscall.org/modules.php?name=News&file=NEArticle&sid=8 |
The link from backend.php looks like this:
| Code: |
| http://www.graciouscall.org/modules.php?name=News&file=article&sid=48 |
|
_________________ Awaiting His Shout,
Webservant - GraciousCall.org
Romans 8:28-39 |
|
|
 |
webservant
Newbie


Joined: Mar 07, 2007
Posts: 5
|
Posted:
Sun Sep 23, 2007 6:45 pm |
|
This code works for GT-backend.php to resolve my issues:
| Code: |
$urlin = array(
'"modules.php\?name=News&file=article&sid=([0-9]*)"'
);
$urlout = array(
'article\\1.html'
);
|
|
_________________ Awaiting His Shout,
Webservant - GraciousCall.org
Romans 8:28-39 |
|
|
 |
webservant
Newbie


Joined: Mar 07, 2007
Posts: 5
|
Posted:
Sun Sep 23, 2007 6:55 pm |
|
The fix for GT-Top.php is this...
Find this this:
| Code: |
| '"(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)"', |
Replace with this:
| Code: |
| '"(?<!/)modules.php\?name=News&file=NEArticle&sid=([0-9]*)"', |
|
_________________ Awaiting His Shout,
Webservant - GraciousCall.org
Romans 8:28-39 |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 954
|
Posted:
Sun Sep 23, 2007 10:32 pm |
|
Thanks webservant! I am sure that will help many folks who want to use NSN News and ShortLinks or GT-NExtGEn. |
_________________ “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: 954
|
Posted:
Wed Jan 09, 2008 11:34 pm |
|
|
|
 |
|
|