Montego Scripts: Forums
 

 

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



Joined: Oct 12, 2006
Posts: 12

PostPosted: Mon May 19, 2008 1:56 pm Reply with quote

Now why would you want to tap this, after all, search engines won't be entering search queries. Well no, but users, especially me don't like looking at ugly URLs, especially when the rest of your site is Shortlinked.

Anyway, wasn't difficult so here's the shortlink file, just call it GT-mSearch.php

Code:
<?php
/************************************************************************
* Script:     TegoNuke(tm) ShortLinks
* 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)
* Collator: THoTH from http://www.book-of-thoth.com
************************************************************************/
//GT-NExtGEn 0.4/0.5 by Bill Murrin (Audioslaved) http://gt.audioslaved.com (c) 2004
//Original Nukecops GoogleTap done by NukeCops (http://www.nukecops.com)

$urlin = array(
'"(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)&amp;mode=([a-z]*)&amp;order=([0-9]*)&amp;thold=([0-9]*)"',
'"(?<!/)modules.php\?name=Journal&amp;file=([a-zA-Z0-9+]*)&amp;(jid|onwhat|disp|op)=([a-zA-Z0-9+]*)"',
"'(?<!/)modules.php\?name=Sections&amp;op=(printpage|viewarticle)&amp;artid=([0-9]*)'",
'"(?<!/)modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=list_pages_categories&amp;cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content"'
);

$urlout = array(
'article\\1.html',
'journal-\\1-\\2-\\3.html',
'sections-\\1-\\2.html',
'content-\\1-page\\2.html',
'content-cat-\\1.html',
'encyclopedia-\\1.html',
'content-\\1.html',
'content.html'
);

?>
 
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: Mon May 19, 2008 11:22 pm Reply with quote

Good one THoTH. Thanks!

_________________
“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
linear-bunch
linear-bunch