special characters (ä,ü,ö,ß) problem

Register an Account
Reply
 
Thread Tools Display Modes
  #51 (permalink)  
Old 09-22-2007, 10:20 AM
New Pligger
 
Join Date: Jan 2007
Posts: 9
We have intalled makefriendly module but it does not work in Turkish special characters such as

ü
ç
ö
Reply With Quote
  #52 (permalink)  
Old 09-22-2007, 06:14 PM
aNt aNt is offline
New Pligger
 
Join Date: Sep 2007
Posts: 2
The problem with Tag cloud addresses containing % can be solved by:

1. Going to libs/tags.php -> class TagCloud -> Function show
2.
Code:
if(isset($time_query)){
					$tag_url[$tagnumber] = getmyurl('tag2', urlencode(($tag_name[$tagnumber]), $from_time);
				} else {
					$tag_url[$tagnumber] = getmyurl('tag', urlencode($tag_name[$tagnumber]));
				}
3. Replace urlencode with your own str_ireplace function. But you need to have Tag localization installed. In Andtony example the link will look like: search=lossnitz and in the tag_safe column there will be lossnitz as well.

Sorry if I am not clear enough. I am new here so please correct me if I am wrong.
Reply With Quote
  #53 (permalink)  
Old 10-11-2007, 06:24 AM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
An older thread contains more information on the same topic.

I wonder why accented characters substitution has now made its way into the core code. Many people with languages other than English have to haphazardly patch their Pligg setup. Should not the known working substitutions be commited to the main svn trunk ?
Reply With Quote
  #54 (permalink)  
Old 10-11-2007, 02:38 PM
New Pligger
 
Join Date: Oct 2007
Posts: 1
I'm adding my 2 cents to the thread ...
I discovered my host supported php4 and php5, BUT the iconv function was only present in 5, and the host was default to 4.

Changing version from 4 to 5 solved my accent problem !

BTW I have Pligg 9.8.2
Reply With Quote
  #55 (permalink)  
Old 10-12-2007, 03:46 AM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
Quote:
Originally Posted by liotier View Post
I wonder why accented characters substitution has now made its way into the core code.
I of course meant "has not"... Sorry for the typo.
Reply With Quote
  #56 (permalink)  
Old 11-01-2007, 06:31 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Aug 2007
Posts: 18
Quote:
Originally Posted by aNt View Post
The problem with Tag cloud addresses containing % can be solved by:

1. Going to libs/tags.php -> class TagCloud -> Function show
2.
Code:
if(isset($time_query)){
					$tag_url[$tagnumber] = getmyurl('tag2', urlencode(($tag_name[$tagnumber]), $from_time);
				} else {
					$tag_url[$tagnumber] = getmyurl('tag', urlencode($tag_name[$tagnumber]));
				}
3. Replace urlencode with your own str_ireplace function. But you need to have Tag localization installed. In Andtony example the link will look like: search=lossnitz and in the tag_safe column there will be lossnitz as well.

Sorry if I am not clear enough. I am new here so please correct me if I am wrong.
Could you please explain this a bit more? Exactly what do I replace the "urlencode" with?
Reply With Quote
  #57 (permalink)  
Old 11-09-2007, 12:54 PM
clems365's Avatar
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: CMS Theme
 
Join Date: May 2007
Location: santiago chile
Posts: 56
Some result... for my part I have the same problem, search tags doen't work when the word has a special caracter.
Reply With Quote
  #58 (permalink)  
Old 11-13-2007, 10:28 AM
clems365's Avatar
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: CMS Theme
 
Join Date: May 2007
Location: santiago chile
Posts: 56
I have a solution, not perfect but for this moment it will be the better way

In libs/html1

If you use the URLMethod == 1

Change:
Code:
If ($x == "tag") {return my_pligg_base."/search.php?search=" . $var1 . "&tag=true";}
If ($x == "tag2") {return my_pligg_base."/search.php?search=" . $var1 . "&tag=true&from=" . $var2;}
To

Code:
If ($x == "tag") {return my_pligg_base."/search.php?search=" . $var1;}
If ($x == "tag2") {return my_pligg_base."/search.php?search=" . $var1;}
And if you use the url method 2

Change:
Code:
If ($x == "tag") {return my_pligg_base."/tag/" . $var1;}
If ($x == "tag2") {return my_pligg_base."/tag/" . $var1 . "/" . $var2 . "/";}
To

Code:
If ($x == "tag") {return my_pligg_base."/search/" . $var1;}
If ($x == "tag2") {return my_pligg_base."/search/" . $var1;}
It's not perfect, but it's better than nothing
Reply With Quote
  #59 (permalink)  
Old 11-13-2007, 11:18 AM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
Clems, what does your solution exactly do? It changes the tag search to general search or?

Quote:
Originally Posted by clems365 View Post
I have a solution, not perfect but for this moment it will be the better way

In libs/html1

If you use the URLMethod == 1

Change:
Code:
If ($x == "tag") {return my_pligg_base."/search.php?search=" . $var1 . "&tag=true";}
If ($x == "tag2") {return my_pligg_base."/search.php?search=" . $var1 . "&tag=true&from=" . $var2;}
To

Code:
If ($x == "tag") {return my_pligg_base."/search.php?search=" . $var1;}
If ($x == "tag2") {return my_pligg_base."/search.php?search=" . $var1;}
And if you use the url method 2

Change:
Code:
If ($x == "tag") {return my_pligg_base."/tag/" . $var1;}
If ($x == "tag2") {return my_pligg_base."/tag/" . $var1 . "/" . $var2 . "/";}
To

Code:
If ($x == "tag") {return my_pligg_base."/search/" . $var1;}
If ($x == "tag2") {return my_pligg_base."/search/" . $var1;}
It's not perfect, but it's better than nothing
Reply With Quote
  #60 (permalink)  
Old 11-13-2007, 12:06 PM
clems365's Avatar
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: CMS Theme
 
Join Date: May 2007
Location: santiago chile
Posts: 56
Exactly, this "solution" changes the tag search to general search

An example will be better to explain:
If a normal html1 without change:
Wikeo / Resultados de búsqueda para ant

No résult....

But nex the change I have this:
Wikeo / Resultados de búsqueda para antártica

With some good result, not perfect because it's a simple "search" and not a "tag search", but for this moment I don't find other solution.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with translation to czech language due to special characters. stormanx Questions and Comments 7 08-21-2010 09:13 AM
Problem in title, url_title and tags with special characters [svn rev.162] dotx Questions and Comments 4 11-04-2008 05:47 AM
Special characters problem RSS and IE 7 markoi Questions and Comments 1 08-09-2007 02:52 PM
Special Characters "Ñ" "´" - Is a very comented thread mathcv Questions and Comments 7 07-13-2007 09:34 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development