Liquid Web Hosting - Dedicated, VPS and Shared Hosting with top-notch support

HTML Newsletter for PHP-Nuke
Clan Themes!  Making Clans Look Good!
  Login or Register
 • Home • Downloads • Your Account • Forums • 
Supported Projects!

Stop Spam Email Harvestors - Join Project HoneyPot!

Support GoPHP5.org

 
Please Link to Me!


 
Site Menu
icon_home.gif Home
· Montego's Blog
icon_community.gif Community
tree-T.gif Advertising
tree-T.gif Newsletters
tree-T.gif DownloadsNew content !
tree-T.gif Web Links
tree-T.gif Content
tree-L.gif Surveys
nuke.gif Projects
tree-T.gif HTML Newsletter
tree-T.gif ShortLinks
tree-T.gif DynamicTitles
tree-L.gif Mailer
som_downloads.gif Support
tree-T.gif Forums
tree-T.gif Documentation
tree-L.gif Sitemap
icon_members.gif Members Only
Access restricted to our members Private Messages
Access restricted to our members Members List
tree-L.gif Your Account
favoritos.gif News
icon_poll.gif Misc
 
Site Info
Your IP: 38.103.63.17

Welcome, Anonymous
Nickname
Password
Security Code
Security Code
Type Security Code


· Register
· Lost Password
Server Date/Time
23 July 2008 14:07:52 EDT (GMT -4)
 
RSS/XML Feed Previews
1. News Feeds
1. Most Recent 10 Articles

2. Forum Feeds
1. Most Recent 10 Forum Posts

3. Download Feeds
1. Most Recent 10 Downloads
2. Most Popular 10 Downloads
 
Misc Info

Powered by  MyPagerank.Net

Join the HoneyPot Project and help stop spam!

RavenNuke(tm) - Most secure and fast PHP-Nuke on the web!

Get TegoNuke(tm) ShortLinks from this site and more...

This site is valid CSS!

 
Inspiration
So that we may boldly say, The Lord is my helper, and I will not fear what man shall do unto me.
Hebrews 13:6/KJV
Verseoftheday.com
 
Montego Scripts: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Sun Jan 13, 2008 3:11 pm Reply with quote Back to top

When I use Search to search for an article with a word with Scandinavian letters it works normally until I hit Next results, which gives a page without any search results. If Shortlinks is disabled it works very well and there is no problem.
This is the link that gives no search results:
http://www.mysite.com/search.html&author=&topic=0&min=10&query=tv%E5&type=stories&category=0
View user's profile Send private message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Mon Jan 14, 2008 9:20 am Reply with quote Back to top

I have been thinking on the problem and I think my problem here is caused by RewriteRule for this in .htaccess. The Scandinavian letters causing this is åäö, which comes after z in the Swedish alphabet.

This Rewriterule is probably making this:

RewriteRule ^search-([a-zA-Z0-9]*)-([0-9]*)-([0-9]*)-([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)-([a-zA-Z]*)-([0-9]*).html modules.php?name=Search&author=$1&topic=$2&min=$3&query=$4&type=$5&category=$6 [L]

I have modified:

-([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)-([a-zA-Z]*)-

to:

-([/:\-\'{}()\,\._&a-zA-Z0-9+=\å\ä\ö\ ]*)-([a-zA-Z]*)-
did not make any difference
-([/:\-\'{}()\,\._&a-öA-Ö0-9+=\ ]*)-([a-zA-Z]*)-
gave Internal server Error
-([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)-([a-zA-Z\å\ä\ö\]*)-
did not make any difference

The result of normal function of this link should be like this:

http://www.mysite.com/search--0-10-vara-stories-0.html

vara is the word that is put in the Search box.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 862

PostPosted: Mon Jan 14, 2008 4:33 pm Reply with quote Back to top

1. I need to know if the link is being shortened properly (i.e., when you view the link in the browser status bar, is it correct)?

2. Or, is the link appropriate, but when clicked you get a "404 Not Found" type error.

Just a side-note, one could also try using [[:alnum:]] instead of the [a-zA-Z\å\ä\ö\] and see if that works.

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



Joined: Nov 03, 2007
Posts: 57

PostPosted: Mon Jan 14, 2008 4:58 pm Reply with quote Back to top

montego wrote:
1. I need to know if the link is being shortened properly (i.e., when you view the link in the browser status bar, is it correct)?

2. Or, is the link appropriate, but when clicked you get a "404 Not Found" type error.

Just a side-note, one could also try using [[:alnum:]] instead of the [a-zA-Z\å\ä\ö\] and see if that works.


1. The link is not shortened at all. This is the link, when I click on it:

http://www.mysite.com/search.html&author=&topic=0&min=10&query=tv%E5&type=stories&category=0
In the status bar it is:

http://www.mysite.com/search.html&author=&topic=0&min=10&query=två&type=stories&category=0

2. I get no error, when I click on the page. The searchbox is displayed, but there are no displayed search results beneath it.

I tried [[:alnum:]] but it did not make any difference. This is how I did it:

([[:alnum:]]*)-([[:alnum:]]*)-
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 862

PostPosted: Tue Jan 15, 2008 8:07 am Reply with quote Back to top

You need to make sure and change the GT-Search.php script too under the ShortLinks directory in order to get the URL to be shortened.

I tested your

[a-zA-Z\å\ä\ö\]

and it definitely will not work. Try using this instead:

[a-zA-Zåäö]

You do not need to escape the additional characters.

Again, do not forget to change both GT-Search.php AND .htaccess to match.

_________________
“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
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 862

PostPosted: Tue Jan 15, 2008 8:08 am Reply with quote Back to top

By the way, I also just now tested the following and it worked as well:

([/:\-\'{}()\,\._&[:alnum:]+= ]*)

See where/how I placed the [:alnum:] directive?

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



Joined: Nov 03, 2007
Posts: 57

PostPosted: Wed Jan 16, 2008 10:10 pm Reply with quote Back to top

Many thanks!
I have added as you suggested:
-([/:\-\'{}()\,\._&a-zåäöA-Z0-9+=\ ]*)-([a-zA-Z]*)-

and also åäö to GT-Search.php and it is working correct now.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 862

PostPosted: Thu Jan 17, 2008 7:39 am Reply with quote Back to top

Had you tried my [:alnum:] approach? Just curious as since I test mostly in english, it would be nice to know if what also solves the issue because I am hoping it takes your web site character set into consideration.

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



Joined: Nov 03, 2007
Posts: 57

PostPosted: Thu Jan 17, 2008 10:16 am Reply with quote Back to top

[:alnum:] worked, if I added it in .htaccess, but in GT-Search.php I had to have ;query=([a-zåäöA-Z0-9]*) to get it to work, because [:alnum:] did not work for search words with åäö in this file.

I think that people in Denmark, Norway and Germany can have similar problems like this.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 862

PostPosted: Thu Jan 17, 2008 8:03 pm Reply with quote Back to top

Ok. Good to know. That is what I was concerned about. The PHP functions themselves are PCRE based and not straight Perl and so that is not working.

Thank you for testing that out for me!

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



Joined: Nov 03, 2007
Posts: 57

PostPosted: Sat Jan 19, 2008 9:34 pm Reply with quote Back to top

BTW, it is a very similar problem with the Search of the Web_Links module, that is solved in almost identical fashion.
View user's profile Send private message
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-2008 phpBB Group
:: Theme & Graphics by Daz :: Ported for PHP-Nuke by nukemods.com ::
All times are GMT - 4 Hours
Forums ©
 

[ Legal | Privacy Policy | Terms of Use | Contact Us ]


[Valid RSS] Valid robots.txt


All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2005 - 2008 by Montego Scripts.
Distributed by Raven PHP Scripts
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.76 Seconds

:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional & XHTML 1.0 Transitional Compliance by RavenNuke™ TEAM ::

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

Forum - Join the conversation on the Thoughts.com forums
Search Engine Ranking - Improve your SEO services. Premium Web content, intelligent links, quality optimization & competitive search engine placement. You deserve Better Rankings!
PhpNuke Themes
Lobo Links Web Directory
linear-bunch
linear-bunch