Montego Scripts: Forums
 

 

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



Joined: Sep 04, 2007
Posts: 24

PostPosted: Fri May 27, 2011 1:30 pm Reply with quote

Found this on my computer and it still need some minor work on it advanced search and maybe you need to change the account and forum to match your set

.htaccess

Code:


#NukeC
RewriteRule ^send-ad-([0-9]*).html modules.php?name=NukeC&file=friend&id=$1 [L]
RewriteRule ^save-ad-([0-9]*).html modules.php?name=NukeC&file=adsbox&op=SaveAds&id_ads=$1 [L]
RewriteRule ^edit-ad-([0-9]*).html modules.php?name=NukeC&file=adsbox&op=editposted&id=$1 [L]
RewriteRule ^delete-ad-([0-9]*).html modules.php?name=NukeC&file=adsbox&op=deleteads&id=$1 [L]
RewriteRule ^email-member-ad-([0-9]*).html modules.php?name=NukeC&file=contact&id=$1 [L]
RewriteRule ^advert-disclaimer-([0-9]*).html modules.php?name=NukeC&op=Disclaimer&no=$1 [L]
RewriteRule ^advert-view-ads-([0-9]*).html modules.php?name=NukeC&op=ViewAds&id_catg=$1 [L]
RewriteRule ^advert-view-category-([0-9]*).html modules.php?name=NukeC&op=ViewCatg&id_catg=$1 [L]
RewriteRule ^advert-view-details-([0-9]*).html modules.php?name=NukeC&op=ViewDetail&id_ads=$1 [L]
RewriteRule ^advert-comment.html modules.php?name=NukeC&op=SubmitComment [L]
RewriteRule ^view-adverts.html modules.php?name=NukeC&op=viewads [L]
RewriteRule ^popular-adverts.html modules.php?name=NukeC&op=mostpop [L]
RewriteRule ^search-adverts.html modules.php?name=NukeC&file=search [L]
RewriteRule ^adverts-box.html modules.php?name=NukeC&file=adsbox [L]
RewriteRule ^post-advert.html modules.php?name=NukeC&file=postads [L]
RewriteRule ^search-adverts-advanced.html modules.php?name=NukeC&file=search&op=adv_search [L]
RewriteRule ^search-adverts-advanced-search.html modules.php?name=NukeC&file=search&op=adv_search_do [L]
RewriteRule ^adverts.html modules.php?name=NukeC [L]



GT-NukeC.php:

Code:


$urlin = array(
"'(?<!/)modules.php\?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=([0-9]*)'",
"'(?<!/)modules.php\?name=Your_Account&amp;op=logout'",
"'(?<!/)modules.php\?name=Your_Account'",
"'(?<!/)modules.php\?name=Private_Messages&amp;file=index&amp;mode=post&amp;u=([0-9]*)'",
"'(?<!/)modules.php\?name=Private_Messages&amp;file=reply&amp;send=1&amp;uname=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Private_Messages\"'",
"'(?<!/)modules.php\?name=NukeC&amp;file=friend&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;file=adsbox&amp;op=SaveAds&amp;id_ads=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;file=adsbox&amp;op=editposted&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;file=adsbox&amp;op=deleteads&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;file=contact&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;op=Disclaimer&amp;no=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;op=ViewAds&amp;id_catg=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;op=ViewCatg&amp;id_catg=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;op=ViewDetail&amp;id_ads=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&amp;op=SubmitComment'",
"'(?<!/)modules.php\?name=NukeC&amp;op=viewads\"'",
"'(?<!/)modules.php\?name=NukeC&amp;op=mostpop'",
"'(?<!/)modules.php\?name=NukeC&amp;file=search'",
"'(?<!/)modules.php\?name=NukeC&amp;file=adsbox'",
"'(?<!/)modules.php\?name=NukeC&amp;file=postads'",
"'(?<!/)modules.php\?name=NukeC&amp;file=search&op=adv_search'",
"'(?<!/)modules.php\?name=NukeC&amp;file=search&amp;op=adv_search_do'",
"'(?<!/)modules.php\?name=NukeC'"
);

$urlout = array(
"forum-userprofile-\\1.html",
"account-logout.html",
"account.html",
"messages-post-\\1.html",
"messages-post-\\1.html",
"messages.html\"",
"send-ad-\\1.html",
"save-ad-\\1.html",
"edit-ad-\\1.html",
"delete-ad-\\1.html",
"email-member-ad-\\1.html",
"adverts-disclaimer-\\1.html",
"advert-view-ads-\\1.html",
"advert-view-category-\\1.html",
"advert-view-details-\\1.html",
"advert-comment.html",
"view-adverts.html\"",
"popular-adverts.html",
"search-adverts.html",
"adverts-box.html",
"post-advert.html",
"search-adverts-advanced.html",
"search-adverts-advanced-search.html",
"adverts.html"

 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Fri May 27, 2011 5:25 pm Reply with quote

Kenny,

Wow. I just wanted to ask if it was alright to place them here to and I would have done it, but thank you for doing so. I try to ask the author wherever I can before I create a copy of content.

I did remove the following lines from the .htaccess though as these should already be rewritten from the Your Account, Private Messages and Forums taps which come with ShortLinks:

Code:

RewriteRule ^account-logout.html account-logout.html [L]
RewriteRule ^account.html account.html [L]
RewriteRule ^messages-post-([0-9]*).html messages-post-.html$1 [L]
RewriteRule ^messages.html messages.html [L]


Thanks again!
 
View user's profile Send private message Visit poster's website
spasticdonkey
Newbie
Newbie



Joined: Sep 05, 2007
Posts: 78

PostPosted: Sat May 28, 2011 6:32 pm Reply with quote

Looks good Smile For the search taps I think you just have to adjust the order of the search rewrites

Code:
RewriteRule ^search-adverts-advanced-search.html modules.php?name=NukeC&file=search&op=adv_search_do [L]
RewriteRule ^search-adverts-advanced.html modules.php?name=NukeC&file=search&op=adv_search [L]
RewriteRule ^search-adverts.html modules.php?name=NukeC&file=search [L]



Code:
"'(?<!/)modules.php\?name=NukeC&amp;file=search&amp;op=adv_search_do'",
"'(?<!/)modules.php\?name=NukeC&amp;file=search&op=adv_search'",
"'(?<!/)modules.php\?name=NukeC&amp;file=search'",



Code:
"search-adverts-advanced-search.html",
"search-adverts-advanced.html",
"search-adverts.html",
 
View user's profile Send private message
Kenny
Newbie
Newbie



Joined: Sep 04, 2007
Posts: 24

PostPosted: Sun May 29, 2011 4:19 pm Reply with quote

Thanks I will test that
 
View user's profile Send private message
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
linear-bunch