Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Oct 23, 2008 8:53 am Reply with quote

First off, I want to thank SpasticDonkey for his taps and Slaytanic for making them available for this great module of his. But, in keeping with publishing as many ShortLinks taps here too, I am providing them here as well.

Replace your current Content module rewrite rules in .htaccess with these (or add them if you previously did not have Content module rules in there):

Code:

#Content Plus
RewriteRule ^content-([0-9]*)-page([0-9]*).html modules.php?name=Content&pa=showpage&pid=$1&page=$2 [L]
RewriteRule ^content-cat-([0-9]*)-order-([0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1&order=$2 [L]
RewriteRule ^content-cat-([0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1 [L]
RewriteRule ^content-([0-9]*).html modules.php?name=Content&pa=showpage&pid=$1 [L]
RewriteRule ^content-send-page.html modules.php?name=Content&pa=send_page [L]
RewriteRule ^content-preview-page.html modules.php?name=Content&pa=preview_page [L]
RewriteRule ^content-add-page.html modules.php?name=Content&pa=add_page [L]
RewriteRule ^content-browsetag-([a-zA-Z0-9_-]*)-order-([0-9]*).html modules.php?name=Content&pa=BrowseTag&tag=$1&order=$2 [L]
RewriteRule ^content-browse-tag-([a-zA-Z0-9_-]*).html modules.php?name=Content&pa=browse_tag&tag=$1 [L]
RewriteRule ^content-browse-tags.html modules.php?name=Content&pa=browse_tags [L]
RewriteRule ^content.html content.html [L]


Overwrite your current GT-Content.php urlin and urlout array values with the following:

Code:

$urlin = array(
'"(?<!/)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]*)&amp;order=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=list_pages_categories&amp;cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=send_page"',
'"(?<!/)modules.php\?name=Content&amp;pa=preview_page"',
'"(?<!/)modules.php\?name=Content&amp;pa=add_page"',
'"(?<!/)modules.php\?name=Content&amp;pa=BrowseTag&amp;tag=([a-zA-Z0-9_-]*)&amp;order=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=browse_tag&amp;tag=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=browse_tags"',
'"(?<!/)modules.php\?name=Content"'
);

$urlout = array(
'content-\\1-page\\2.html',
'content-cat-\\1-order-\\2.html',
'content-cat-\\1.html',
'content-\\1.html',
'content-send-page.html',
'content-preview-page.html',
'content-add-page.html',
'content-browsetag-\\1-order-\\2.html',
'content-browse-tag-\\1.html',
'content-browse-tags.html',
'content.html'
);


There you go. Thanks again guys!


Last edited by montego on Sun Aug 30, 2009 9:47 am; edited 1 time in total 
View user's profile Send private message Visit poster's website
Palbin
Newbie
Newbie



Joined: Nov 26, 2007
Posts: 25

PostPosted: Tue Nov 11, 2008 1:54 pm Reply with quote

I posted this a few others places, but figured it should be here to Smile. A couple taps missing. I have added them below.

http://slaytanic.sourceforge.net/modules.php?name=Forums&file=viewtopic&p=371#371

Code:
#Content Plus
RewriteRule ^content-print-page-([0-9]*).html modules.php?name=Content&pa=print_page&pid=$1 [L]
RewriteRule ^content-print-pdf-([0-9]*).html modules.php?name=Content&pa=print_pdf&pid=$1 [L]
RewriteRule ^content-share-page-([0-9]*).html modules.php?name=Content&pa=share_page&op=FriendSend&pid=$1 [L]
RewriteRule ^content-([0-9]*)-page([0-9]*).html contentid-.html$1&page=$2 [L]
RewriteRule ^content-cat-([0-9]*)-order-([0-9]*).html content-cat-.html$1&order=$2 [L]
RewriteRule ^content-cat-([0-9]*).html content-cat-.html$1 [L]
RewriteRule ^content-([0-9]*).html contentid-.html$1 [L]
RewriteRule ^content-send-page.html modules.php?name=Content&pa=send_page [L]
RewriteRule ^content-preview-page.html modules.php?name=Content&pa=preview_page [L]
RewriteRule ^content-add-page.html modules.php?name=Content&pa=add_page [L]
RewriteRule ^content-browsetag-([a-zA-Z0-9_-]*)-order-([0-9]*).html modules.php?name=Content&pa=BrowseTag&tag=$1&order=$2 [L]
RewriteRule ^content-browse-tag-([a-zA-Z0-9_-]*).html modules.php?name=Content&pa=browse_tag&tag=$1 [L]
RewriteRule ^content-browse-tags.html modules.php?name=Content&pa=browse_tags [L]
RewriteRule ^content.html content.html [L]


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)
************************************************************************/
//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=Content&amp;pa=print_page&amp;pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=print_pdf&amp;pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=share_page&amp;op=FriendSend&amp;pid=([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]*)&amp;order=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=list_pages_categories&amp;cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=send_page"',
'"(?<!/)modules.php\?name=Content&amp;pa=preview_page"',
'"(?<!/)modules.php\?name=Content&amp;pa=add_page"',
'"(?<!/)modules.php\?name=Content&amp;pa=BrowseTag&amp;tag=([a-zA-Z0-9_-]*)&amp;order=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=browse_tag&amp;tag=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=browse_tags"',
'"(?<!/)modules.php\?name=Content"'
);

$urlout = array(
'content-print-page-\\1.html',
'content-print-pdf-\\1.html',
'content-share-page-\\1.html',
'content-\\1-page\\2.html',
'content-cat-\\1-order-\\2.html',
'content-cat-\\1.html',
'content-\\1.html',
'content-send-page.html',
'content-preview-page.html',
'content-add-page.html',
'content-browsetag-\\1-order-\\2.html',
'content-browse-tag-\\1.html',
'content-browse-tags.html',
'content.html'
);

?>
 
View user's profile Send private message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Sun Aug 30, 2009 6:30 am Reply with quote

Edit this post. It is Content Plus not Contact Plus.

After testing this ShortLink I get a blank page running the last version of RavenNuke. Any suggestion why it is not working?

Thanks in advance Shocked

Testing again and again

Search for

Code:
RewriteRule ^content.html content.html [L]


Replace with

Code:
RewriteRule ^comments.html comments.html [L]


I did it and it works but the rest of the option doesnt. Rolling Eyes
 
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 Aug 30, 2009 9:52 am Reply with quote

Why would you search and replace that? Makes no sense. Instead, your "Replace with" line should be this:

Code:

RewriteRule ^content.html content.html [L]


My turn now for the Rolling Eyes

The blank page is a server 500 issue and its actually being worked right now internally on the RN team. The Team found this issue out while QA testing. I'll post the fixed taps back here once the issue has been found and corrected.
 
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