Support Forums

SEO module bug?

This is a discussion on SEO module bug? within the Modules / Plugins / Modifications forums, part of the Developer Forums category; SEO module doesn't work with special characters. when SEO module is enabled and listing title include special character my link ...


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

Reply
 
Thread Tools Display Modes
Old 09-04-2008, 07:58 PM   #1
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 6
Mi?Uszatek is on a distinguished road
Question SEO module bug?

SEO module doesn't work with special characters.

when SEO module is enabled and listing title include special character my link looks like that:

http:/ /mysite.pl/listing/8/garaż.html

and I receive error

Not Found

The requested URL /listing/8/garaż.html was not found on this server.


NOTE: when listing with special character in title is clicked, encoding is switching automatically from UTF-8 to ISO-8856-1




when SEO module is disabled
(same listing) link looks like that:

http:/ /mysite.pl/viewlisting.php?view=8

and everything works.

Is there anythin I can modify to make SEO module to work with special characters?
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-05-2008, 04:43 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,316
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I think you will need to submit a ticket with your ftp details for this. With that I can run some tests and get it working correctly.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-22-2008, 01:55 PM   #3
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 6
Mi?Uszatek is on a distinguished road
Default

I did , few days ago. No reply.
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-22-2008, 02:01 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,316
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

Hi,

You must not be getting our replys. Can you create a ticket with a different email and see if that works? Or check your bulk mail or spam folder?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 10-20-2008, 04:02 PM   #5
Senior Member
 
 
Join Date: Apr 2008
Posts: 140
Rep Power: 10
philoo is on a distinguished road
Default

Is this problem fixed ? I have similar symptoms with characters that have accent (Latin ISO)
__________________
v4.08 Developer
philoo is offline   Reply With Quote
Old 10-21-2008, 04:51 AM   #6
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 18
frommarcq is on a distinguished road
Default

Hi,
I had the same problem with french ponctuation.
I fixed the problem with some changes in Listings.php
I replaced
PHP Code:
    function seoString($string)
    {
        
$string=html_entity_decode($string);
        
$string=str_replace(' ''_'$string);
        
$string=preg_replace('/\W/e'''$string);
        if(
SEO_STRING == 'dash') {
            
$string=str_replace('_''-'$string);
        }
        return 
$string
    } 
with
PHP Code:
    function seoString($string)
    {
        
$string=strtolower($string);
        
$string=str_replace(' ''_'$string);
        
$string=str_replace('�''e'$string);
        
$string=str_replace('�''e'$string);
        
$string=str_replace('�''e'$string);
        
$string=str_replace('�''e'$string);
        
$string=str_replace('�''c'$string);
        
$string=str_replace('�''u'$string);
        
$string=str_replace('�''e'$string);
        
$string=str_replace('�''a'$string);
        
$string=str_replace('�''i'$string);
        
$string=str_replace('�''i'$string);
        
$string=str_replace('�''o'$string);
        
$string=str_replace('�''a'$string);
        
$string=str_replace('�''I'$string);
        
$string=str_replace('�''I'$string);
        
$string=preg_replace('/\W/e''_'$string);
        
$string=str_replace('___''-'$string);
        
$string=str_replace('__''-'$string);
        
$string=str_replace('_''-'$string);
        if(
SEO_STRING == 'dash') {
            
$string=str_replace('_''-'$string);
        }
        return 
$string
    } 
For polish characters, you just have to add lines like this
PHP Code:
$string=str_replace('ż''z'$string); 
I hope it will help.
Regards
Pascal
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline   Reply With Quote
Old 10-21-2008, 06:58 AM   #7
Senior Member
 
 
Join Date: Apr 2008
Posts: 140
Rep Power: 10
philoo is on a distinguished road
Default

Merci Pascal
__________________
v4.08 Developer
philoo is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Maps Module for V3 & V4 Lhotch Modules / Plugins / Modifications 18 09-29-2008 09:05 AM
Google Maps Module - Beta tester needed. Lhotch Technical Support 17 07-30-2008 01:30 PM


All times are GMT -4. The time now is 12:08 AM.


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