Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 924

PostPosted: Sun Aug 12, 2012 5:55 am Reply with quote

Greetings All,

Just thought I would share. Maybe this has already been fixed. I don't know but I found an error in the Content Plus Rewrite Rules.

Problem....
In Content Plus if you had more than one page of content in a cat...The Page Links at the bottom of the page would send you to the error docs.

This should be like this....
Orginal Link
/modules.php?name=Content&pa=list_pages_categories&cid=8&page=2
Rewrite Link
/content-cat-8-page-2.html

In the Htaccess under
#Content Plus

Orginal was...
RewriteRule ^content-cat-([0-9]*)-page([0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1&page=$2 [L]

Fix is...
RewriteRule ^content-cat-([0-9]*)-page-([0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1&page=$2 [L]

It was missing the "-" after -page

Maybe this has already been corrected...but I looked in my orginal dload and it was there so I thought I would share.

Dawg
 
View user's profile Send private message
montego
Site Admin



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

PostPosted: Sun Aug 12, 2012 10:03 am Reply with quote

Thanks Dawg. I'll enter this into my bug tracker too for additional follow-up.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1008
Location: Netherland

PostPosted: Sun Aug 12, 2012 3:29 pm Reply with quote

Hi Dawg, Checking my my file I am unable to find that lind but I have this which should be the same

Code:
RewriteRule ^content-cat-([0-9]*)-page([0-9]*).html content-cat-.html$1&page=$2 [L]


Fix it with

Code:
RewriteRule ^content-cat-([0-9]*)-page-([0-9]*).html content-cat-.html$1&page=$2 [L]


Note: Is this the same as yours?

and that is not the only one

I got another one

Code:
RewriteRule ^content-([0-9]*)-page([0-9]*).html modules.php?name=Content&pa=showpage&pid=$1&page=$2 [L]


Fix it with

Code:
RewriteRule ^content-([0-9]*)-page-([0-9]*).html modules.php?name=Content&pa=showpage&pid=$1&page=$2 [L]


Thanks for warning us! Wink
 
View user's profile Send private message Visit poster's website
Dawg







PostPosted: Sun Aug 12, 2012 5:15 pm Reply with quote

Every once in a while I come up with something useful!

Here is that section of my htaccess.



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]*)-page([0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1&order=$2&page=$3 [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]*)-page-([0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1&page=$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-browse-tag-([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)-page-([0-9]*)-order-([0-9]*).html modules.php?name=Content&pa=browse_tag&tag=$1&page=$2&order=$3 [L]
RewriteRule ^content-browse-tag-([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)-page-([0-9]*).html modules.php?name=Content&pa=browse_tag&tag=$1&page=$2 [L]
RewriteRule ^content-browse-tag-([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)-order-([0-9]*).html modules.php?name=Content&pa=browse_tag&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-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-send-page-([0-9]*).html modules.php?name=Content&pa=share_page&op=SendPage&pid=$1 [L]
RewriteRule ^content.html content.html [L]


The base site here is almost 10 yers old now and I have edited it to hell....LOL! So anything that does not match does not suprize me.

Dawg
 
hicuxunicorniobestbuildpc







PostPosted: Sun Aug 12, 2012 6:36 pm Reply with quote

very nice. Can we use it or we need to make other modifications from GT-Content.php? Thanks for sharing!
 
Dawg







PostPosted: Wed Aug 15, 2012 7:24 am Reply with quote

I would think you could use it. I do not see why not.

Try it and see what happens.

If you have any problems post back here and I will try to help.

Dawg
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©