Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Mon Oct 23, 2006 4:33 pm Reply with quote

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&amp;rss=LastNews'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=ShowCateg'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=SubmitRSS'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=RSSAd'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=SearchNews'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=Del&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=ShowNews&amp;cat=([0-9]*)&amp;page=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=ShowNews&amp;cat=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=ShowNewsHome&amp;cat=([0-9]*)&amp;page=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=Showsitefeeds&amp;url=([0-9]*)&amp;page=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=Showsitefeeds&amp;url=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=Makesticky&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=Multiheadlines&amp;rss=ShowInfo&amp;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]
 
View user's profile Send private message
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Mon Oct 23, 2006 5:50 pm Reply with quote

nice thank you
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Oct 23, 2006 8:27 pm Reply with quote

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



Joined: Jul 18, 2005
Posts: 397

PostPosted: Tue Oct 24, 2006 4:01 am Reply with quote

Not a problem, glad to help where I can Smile
 
View user's profile Send private message
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

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

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",
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Wed Oct 25, 2006 10:20 am Reply with quote

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



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Oct 26, 2006 8:39 am Reply with quote

urlin would be this:

Code:

"'(?<!/)modules.php\?name=Multiheadlines&amp;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 
View user's profile Send private message Visit poster's website
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Thu Oct 26, 2006 9:02 am Reply with quote

Very Happy I have no explanation for my madness. Thanks for picking up the slack there.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Oct 26, 2006 9:05 am Reply with quote

No problem m8.

_________________
“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
jjh221
Newbie
Newbie



Joined: Dec 16, 2006
Posts: 14

PostPosted: Sat Dec 16, 2006 12:33 pm Reply with quote

Thanks for the code...
and thanks Montego for this tap Smile

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



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Dec 16, 2006 12:35 pm Reply with quote

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



Joined: Dec 16, 2006
Posts: 14

PostPosted: Sat Dec 16, 2006 12:42 pm Reply with quote

k thanks Smile it worked
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Dec 16, 2006 1:19 pm Reply with quote

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 
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