PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   This topic is locked: you cannot edit posts or make replies.
Author Message
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Wed Oct 22, 2008 7:59 pm Reply with quote Back to top

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:
Only registered users can see links on this board!
Get registered or login to the forums!



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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Oct 22, 2008 10:09 pm Reply with quote Back to top

Montego, do you want to add this to the standard Shortlinks.htaccess ?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Thu Oct 23, 2008 6:09 am Reply with quote Back to top

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Oct 23, 2008 6:20 am Reply with quote Back to top

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


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Thu Oct 23, 2008 6:27 am Reply with quote Back to top

Yes sir, will do, that way if we have to cut a patch release, they will be there. I'll add the Mantis issue.
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Nov 10, 2008 8:56 pm Reply with quote Back to top

A couple taps missing. I have added them below.
Only registered users can see links on this board!
Get registered or login to the forums!


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:   
Only registered users can see links on this board!
Get registered or login to the forums!

* 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
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Mon Nov 10, 2008 9:30 pm Reply with quote Back to top

Once again... thank you Palbin
Keep it up!!!
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Fri Nov 14, 2008 6:20 am Reply with quote Back to top

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


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Fri Nov 14, 2008 6:24 am Reply with quote Back to top

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:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   This topic is locked: you cannot edit posts or make replies.

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

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum