| Author |
Message |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Mon Oct 23, 2006 4:33 pm |
|
For htaccess
| Code: |
RewriteRule ^multiheadlines-last-rss.html modules.php?name=Multiheadlines&rss=LastNews [L]
RewriteRule ^multiheadlines-categories.html modules.php?name=Multiheadlines&rss=ShowCateg [L]
RewriteRule ^multiheadlines-submit-rss.html modules.php?name=Multiheadlines&rss=SubmitRSS [L]
RewriteRule ^multiheadlines-rss-submited.html modules.php?name=Multiheadlines&rss=RSSAd [L]
RewriteRule ^multiheadlines-search.html modules.php?name=Multiheadlines&rss=SearchNews [L]
RewriteRule ^multiheadlines-del-([0-9]*).html modules.php?name=Multiheadlines&rss=Del&id=$1 [L]
RewriteRule ^multiheadlines-cat-([0-9]*).html modules.php?name=Multiheadlines&rss=ShowNews&cat=$1 [L]
RewriteRule ^multiheadlines-cat-([0-9]*)-page-([0-9]*).html modules.php?name=Multiheadlines&rss=ShowNews&cat=$1&page=$2 [L]
RewriteRule ^multiheadlines-first-([0-9]*)-page-([0-9]*).html modules.php?name=Multiheadlines&rss=ShowNewsHome&cat=$1&page=$2 [L]
RewriteRule ^multiheadlines-site-([0-9]*)-page-([0-9]*).html modules.php?name=Multiheadlines&rss=Showsitefeeds&url=$1&page=$2 [L]
RewriteRule ^multiheadlines-site-([0-9]*).html modules.php?name=Multiheadlines&rss=Showsitefeeds&site=$1 [L]
RewriteRule ^multiheadlines-makesticky-([0-9]*).html modules.php?name=Multiheadlines&rss=Makesticky&id=$1 [L]
RewriteRule ^multiheadlines-urlinfo-([0-9]*).html modules.php?name=Multiheadlines&rss=ShowInfo&url=$1 [L]
RewriteRule ^multiheadlines.html modules.php?name=Multiheadlines [L] |
Create file named: GT-Multiheadlines.php
Insert the following code
| Code: |
/************************************************************
* 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)
************************************************************/
//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)
//Original TAP code for this Multiheadlines module (www.aikons.net)
$urlin = array(
"'(?<!/)modules.php\?name=Multiheadlines&rss=LastNews'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=ShowCateg'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=SubmitRSS'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=RSSAd'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=SearchNews'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=Del&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=ShowNews&cat=([0-9]*)&page=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=ShowNews&cat=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=ShowNewsHome&cat=([0-9]*)&page=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=Showsitefeeds&url=([0-9]*)&page=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=Showsitefeeds&url=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=Makesticky&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&rss=ShowInfo&url=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines'"
);
$urlout = array(
"multiheadlines-last-rss.html",
"multiheadlines-categories.html",
"multiheadlines-submit-rss.html",
"multiheadlines-rss-submited.html",
"multiheadlines-search.html",
"multiheadlines-del-\\1.html",
"multiheadlines-cat-\\1-page-\\2.html",
"multiheadlines-cat-\\1.html",
"multiheadlines-first-\\1-page-\\2.html",
"multiheadlines-site-\\1-page-\\2.html",
"multiheadlines-site-\\1.html",
"multiheadlines-makesticky-\\1.html",
"multiheadlines-urlinfo-\\1.html",
"multiheadlines.html"
); |
Don't forget to add the PHP start end end tags (cannot post the here), save the file and upload to your ShortLinks directory.
Enjoy![/code] |
| |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 89
|
Posted:
Mon Oct 23, 2006 5:50 pm |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Mon Oct 23, 2006 8:27 pm |
|
Yes, thank you Guardian! You are a Gentleman and a Scholar. Well, ok, how about just settle for a drinking buddy (although doubt I'll ever get into your neck of the woods). |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Tue Oct 24, 2006 4:01 am |
|
Not a problem, glad to help where I can  |
| |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 89
|
Posted:
Wed Oct 25, 2006 10:00 am |
|
The missed link was for the page numbers on the Home Page (at the bottom)
http://www.t3gamingcommunity.com/multiheadlines.html
.htaccess
| Code: |
RewriteRule ^multiheadlines-page-([0-9]*).html modules.php?name=Multiheadlines&rss=ShowNewsHome&page=$1 [L]
|
GT-Multiheadlines.php
| Code: |
"multiheadlines-page-\\1.html",
|
|
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Wed Oct 25, 2006 10:20 am |
|
Something is missing?
You need to keep the same number of entries for both the url_in array as the url_out array in the GT file
Well done though, I missed that completely!! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Thu Oct 26, 2006 8:39 am |
|
urlin would be this:
| Code: |
"'(?<!/)modules.php\?name=Multiheadlines&rss=ShowNewsHome&page=([0-9]*)'",
|
|
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 89
|
Posted:
Thu Oct 26, 2006 9:02 am |
|
I have no explanation for my madness. Thanks for picking up the slack there. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Thu Oct 26, 2006 9:05 am |
|
No problem m8. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
jjh221
Newbie


Joined: Dec 16, 2006
Posts: 14
|
Posted:
Sat Dec 16, 2006 12:33 pm |
|
Thanks for the code...
and thanks Montego for this tap
I have a problem, wich will fix my other tap I made.
I can go to http://mysite.com/multiheadlines.html and it does work. When I mouse over the Multiheadlines link in the modules block, I get the correct link (http://mysite.com/multiheadlines.html)
However, when going back to http://mysite.com/index.php and mouse over the link in the modules block, I get the long link still.
So pretty much when going to http://mysite.com/ it still links to the old long link. When i go to the short multiheadlines.html link everything seems to be fine.
How do I fix this?
thanks,
j |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Sat Dec 16, 2006 12:35 pm |
|
If you are using the PHP-Nuke modules block, you need to add multi-headlines in the GTB-block-Modules.php file.
<<edited: sorry, I had the wrong filename in there>> |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
jjh221
Newbie


Joined: Dec 16, 2006
Posts: 14
|
Posted:
Sat Dec 16, 2006 12:42 pm |
|
k thanks it worked |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Sat Dec 16, 2006 1:19 pm |
|
Excellent. Thanks for letting us know. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|