Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
vvburnedvv
Newbie
Newbie



Joined: Oct 13, 2006
Posts: 1

PostPosted: Sun Oct 22, 2006 11:04 pm Reply with quote

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
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Oct 23, 2006 8:49 am Reply with quote

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 
View user's profile Send private message Visit poster's website
rbted
Newbie
Newbie



Joined: Oct 09, 2006
Posts: 1

PostPosted: Wed Oct 25, 2006 7:41 am Reply with quote

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 account-new_user.html [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 news.html [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&amp;op=NEMonth&amp;year=([0-9]*)&amp;month=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NEAll"',
'"(?<!/)modules.php\?name=News&amp;op=NEArchive"',
'"(?<!/)modules.php\?name=Your_Account&amp;op=new_user"',
'"(?<!/)modules.php\?name=News&amp;op=NETopicMain"',
'"(?<!/)modules.php\?name=News&amp;op=NETopics&amp;topic=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NERead&amp;sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NERateDone&amp;sid=([0-9]*)&amp;rated=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NEReply&amp;pid=([0-9]*)&amp;sid=([0-9]*)&amp;mode=([a-z]*)&amp;order=([0-9]*)&amp;thold=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NECommentShow&amp;tid=([0-9]*)&amp;sid=([0-9]*)&amp;pid=([0-9]*)&amp;mode=([a-z]*)&amp;order=([0-9]*)&amp;thold=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Search&amp;type=comments&amp;sid=([0-9]*)"',
'"(?<!/)modules.php\?name=Search&amp;author=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Search&amp;topic=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NEPortable&amp;sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;op=NEPrint&amp;sid=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;new_topic=([0-9]*)"',
'"(?<!/)modules.php\?name=Topics"',
'"(?<!/)modules.php\?name=News&amp;op=NEArticle&amp;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
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Oct 25, 2006 8:00 am Reply with quote

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 
View user's profile Send private message Visit poster's website
phroz3n
Newbie
Newbie



Joined: May 15, 2007
Posts: 1

PostPosted: Thu May 17, 2007 9:41 am Reply with quote

tq too Very Happy
 
View user's profile Send private message
webservant
Newbie
Newbie



Joined: Mar 07, 2007
Posts: 5

PostPosted: Sun Sep 23, 2007 6:16 pm Reply with quote

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



Joined: Mar 07, 2007
Posts: 5

PostPosted: Sun Sep 23, 2007 6:45 pm Reply with quote

This code works for GT-backend.php to resolve my issues:

Code:
$urlin = array(
'"modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)"'
);

$urlout = array(
'article\\1.html'
);

_________________
Awaiting His Shout,
Webservant - GraciousCall.org
Romans 8:28-39 
View user's profile Send private message Visit poster's website
webservant
Newbie
Newbie



Joined: Mar 07, 2007
Posts: 5

PostPosted: Sun Sep 23, 2007 6:55 pm Reply with quote

The fix for GT-Top.php is this...

Find this this:
Code:
'"(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)"',


Replace with this:
Code:
'"(?<!/)modules.php\?name=News&amp;file=NEArticle&amp;sid=([0-9]*)"',

_________________
Awaiting His Shout,
Webservant - GraciousCall.org
Romans 8:28-39 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Sep 23, 2007 10:32 pm Reply with quote

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



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Jan 09, 2008 11:34 pm Reply with quote

Another reference:

http://montegoscripts.com/ftopicp-1772.html#1772

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch