May 23 2012 02:06:42
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 7

· Members Online: 0

· Total Members: 495
· Newest Member: chronsk
Last Seen Users
· chronsk15:15:56
· budisantoso 1 day
· lidaer 1 day
· Yodix 2 days
· mr-casino 2 days
· dos5 4 days
· Machello93 4 days
· Leonardo_master 4 days
· ezgi 4 days
· xxyy 5 days

Login
 Username  Password  
View Thread: Latin-1 rewriting ? [é-è-à]
Pimped Fusion - Content Management System » Pimped-Fusion Support & Development » Seo Url-Rewrite Issues
Who is here? 2 Guests
 Print Thread
Latin-1 rewriting ? [é-è-à]
CaLL Me ZeNy
Hello everyone - I've recently downloaded PimpedFusion, and tried the SEO Url-Rewriting...
Pretty cool, but I use some Latin-1 characters like à-é-è-î and I can't find the way to replace by a-e-i.
I tried a str_replace in the function clean_subject_urlrewrite or make_url of maincore.php, without success.
Anyone has a solution?

Thanks in advance.
Keep up the good work.
Smile
  x 1
 
slaughter
try this:

Download source  Code

// Cleanes the Title in Urls for url-rewrite
function clean_subject_urlrewrite($subject) {
       $search = array("ä", "Ä", "ü", "Ü", "ö", "Ö", "ß", "&", "€", "RE:-", "á", "à", "é", "è", "î");
      $replace = array("ae", "Ae", "ue", "Ue", "oe", "Oe", "ss", "and", "euro", "", "a", "a", "e", "e", "i");
      $subject = str_replace($search, $replace, $subject);;
      $subject = preg_replace("/[^\d\w]+/", "-", $subject);
      $subject = trim($subject, "-");
      $subject = strtolower($subject);
return $subject;
}




But I don't know for sure if this works or not.

Edit: It works for me here on this page.
look here:
http://pimped-fus...l#post_334
Edited by slaughter on 14-02-2010 19:59
  x 1
 
CaLL Me ZeNy
Thanks for your reply, but it doesn't work... :(
Seems that ß, €, RE:-n aren't replaced too.

[Edit]
Strange - I don't understand why it doesn't work for me.
:)
Edited by CaLL Me ZeNy on 14-02-2010 20:19
SignatureSorry for my bad English =)
 
ritmi
do you have our databaze on utf8 or german_latin1 ?
 
Advertising Bot
Posted on 23-05-2012 02:06
Bot Agent

Posts: n^x
Joined: Always

  
CaLL Me ZeNy
My database is on latin1_swedish_ci.
SignatureSorry for my bad English =)
 
ritmi
make it
utf8_unicode_ci for standart

test page with uft8_unicode_ci

http://loove.kilu...tml#post_3
Edited by ritmi on 14-02-2010 22:00
  x 1
 
CaLL Me ZeNy
I converted my database and all tables to uft8_unicode_ci, but the result is the same...

Too bad, I think I'll remove the news subjects from the URL.
Thanks anyway.

[Edit]
I reconverted to latin1_general_ci, and everything works well :)
Thanks !
Edited by CaLL Me ZeNy on 15-02-2010 11:39
SignatureSorry for my bad English =)
 
ritmi
Wink
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Seo url rewriting not working on the Gillette Multicolour II Special Edition theme Seo Url-Rewrite Issues 7 08-10-2011 17:43
seo url rewriting, problem page while Seo Url-Rewrite Issues 7 14-12-2010 20:18
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.18 seconds - 111 Queries 995,794 unique visits