Support Forums

Replacement non-ASCII in SEO Module

This is a discussion on Replacement non-ASCII in SEO Module within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I'm running 68Classifieds (4.2.1 Developer) completely in UTF-8 with the SEO Module 2.1.1 Now I have problems with listings with ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 11-02-2010, 04:38 AM   #1
Customer
 
Join Date: Sep 2008
Posts: 20
Rep Power: 13
nzyan is on a distinguished road
Default Replacement non-ASCII in SEO Module

I'm running 68Classifieds (4.2.1 Developer) completely in UTF-8 with the SEO Module 2.1.1

Now I have problems with listings with non-ASCII characters in the title (German Umlaut, but also accents):

������ � �� etc.

I've taken a look in the PHP code and found a function which should solve the problem:
function (remove_accents)

But there seems to be no call to this function...

Right now a listing with the title "����" or "����" is linked to:
DOMAIN/DIR/listing/19/����.html

Any ideas?

Andreas
nzyan is offline   Reply With Quote
Old 11-02-2010, 08:56 AM   #2
Staff
 
Join Date: Mar 2006
Posts: 587
Rep Power: 34
Blair will become famous soon enough
Default

Hi Andreas -

Please do the following:
- Open modules/seo/hooks.php

- go to line 42 where it says:
Code:
$string=preg_replace('/\W/e', '', $string);
- below this line, insert the following:
Code:
$string=$this->remove_accents($string);
- next, around line 98, locate:
Code:
if (seems_utf8($string))
- change that line to:
Code:
if ($this->seems_utf8($string))
- save and upload the file.

Thank you for bringing this to our attention.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 11-02-2010, 09:46 AM   #3
Customer
 
Join Date: Sep 2008
Posts: 20
Rep Power: 13
nzyan is on a distinguished road
Default Thanks

Works fine - with minor cosmetical problems...

Looks as if all umlauts are rewritten to "A" instead of "�" => "u" or "ue"

But this no big deal...

Thanks for the quick help!

Andreas
nzyan is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4.1.x Make an Offer module based on Rating Module business Modules / Plugins / Modifications 0 10-10-2010 07:50 PM
google maps module/seo friendly urls module incompatibility everyounce Techconnx 2 06-24-2009 12:01 AM


All times are GMT -4. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0