Author
Message
jestrella Moderator Joined: Dec 01, 2005 Posts: 535 Location: Santiago, Dominican Republic
Posted:
Wed Oct 22, 2008 7:59 pm
A brave user at my site took the lead to make it work
everything seems to be working fine but if you found something weird let us know
This is the link:
Note: you need to replace the GT-Content.php file with the given one and also remove from .h t a c c e s s the rewrite rules for Content module.
Raven Site Admin/Owner Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Wed Oct 22, 2008 10:09 pm
Montego, do you want to add this to the standard Shortlinks.htaccess ?
montego Site Admin Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Thu Oct 23, 2008 6:09 am
If and when we make Contact Plus the core module offerring, I would agree with that. However, what I would prefer - given Contact Plus is a replacement module rather than its own serparate module - is provide the ShortLinks pieces within the AddOns directory structure as "extras". Also, I was intending upon writing these and placing these in my "Additional ShortLinks" forum, as I and others have done for years.
Raven Site Admin/Owner Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Thu Oct 23, 2008 6:20 am
It is definitely going to be in 2.4 and possibly sooner. Could you add them to the Content Plus Addons folder so they are available now?
montego Site Admin Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Thu Oct 23, 2008 6:27 am
Yes sir, will do, that way if we have to cut a patch release, they will be there. I'll add the Mantis issue.
Palbin Site Admin Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Mon Nov 10, 2008 8:56 pm
A couple taps missing. I have added them below.
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 modules.php?name=Content [L]
Code: <?php
/************************************************************************
* Script: TegoNuke(tm) ShortLinks
* Version: 1.0
* Author: Rob Herder (aka: montego) of http://montegoscripts.com
* Contact:
* 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&pa=print_page&pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=print_pdf&pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=share_page&op=FriendSend&pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)&order=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=send_page"',
'"(?<!/)modules.php\?name=Content&pa=preview_page"',
'"(?<!/)modules.php\?name=Content&pa=add_page"',
'"(?<!/)modules.php\?name=Content&pa=BrowseTag&tag=([a-zA-Z0-9_-]*)&order=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=browse_tag&tag=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Content&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'
);
?>
jestrella Moderator Joined: Dec 01, 2005 Posts: 535 Location: Santiago, Dominican Republic
Posted:
Mon Nov 10, 2008 9:30 pm
Once again... thank you Palbin
Keep it up!!!
montego Site Admin Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Fri Nov 14, 2008 6:20 am
Palbin , in your revised RewriteRules in .htaccess above, can you please explain the following lines?
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]
These don't make sense to me as to why you changed them.
montego Site Admin Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Fri Nov 14, 2008 6:24 am
NEVER MIND PALBIN!!
However, everyone else, please do NOT take the .htaccess rules from the forums here. Raven's rewriting rules are clobbering those lines of code.
Please get them from the link provided above or from here:
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