News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

Problem with greek characters in meta tags!

Please post bugs you have found in tuffclassified theme. If you have fix for that post it too.
Do not post anything else, issue related to third party plugins should not be posted here.
alexhs88
Senior
Posts: 204
Joined: Mon Jul 15, 2013 5:33 pm
Has thanked: 6 times
Been thanked: 12 times

Re: Problem with greek characters in meta tags!

Post by alexhs88 » Mon Jun 09, 2014 3:56 pm

any light yet tuffadmin?

oezdemir
Noob
Posts: 5
Joined: Fri Jun 06, 2014 9:54 am

Re: Problem with greek characters in meta tags!

Post by oezdemir » Mon Jul 14, 2014 9:37 pm

Hey

i did not understand the solution. What was it now? To fix greek letter. I have the same issue with german letters.

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Problem with greek characters in meta tags!

Post by tuffadmin » Thu Jul 17, 2014 5:32 pm

I need more testing on this issue.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

alexhs88
Senior
Posts: 204
Joined: Mon Jul 15, 2013 5:33 pm
Has thanked: 6 times
Been thanked: 12 times

Re: Problem with greek characters in meta tags!

Post by alexhs88 » Sat Oct 18, 2014 7:02 pm

Hello it doesn't work with 3.3 i can't get it to work tried everything

[email protected]
Noob
Posts: 8
Joined: Thu Jun 02, 2016 8:19 am
Contact:

Re: Problem with greek characters in meta tags!

Post by [email protected] » Thu Aug 04, 2016 1:42 pm

The problem there.
This also happens with the letters that have a check mark (Č,Ć,Ž) ... changes in the line 219 (meta-function.php) does not help.

Excluding the "Tuffclassified Seo Options" disable SEO, then see the

<meta name = "description" content = "ok ... Č,Ć,Ž)" >



Is there a way around this?

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Problem with greek characters in meta tags!

Post by tuffadmin » Thu Aug 04, 2016 6:29 pm

Remove these lines 224,225 from meta-functions.php file

Code: Select all

        $str = preg_replace( "/\s+/", " ", osc_item_description() );
        $str = html_entity_decode($str);

and replace this line

Code: Select all

return preg_replace('/[^a-zA-Z,0-9-\/ ]/','', $text);
at line no.237 and make it

Code: Select all

return $text;
Line numbers are according to latest tuffclassified theme.

In core function php file remove all instance of preg_replace ,str_replace from this function

Code: Select all

function tfc_not_clean_items($item) {
    $catID  = $item['fk_i_category_id'];
    $itemID = $item['pk_i_id'];

    $title       = Params::getParam('title') ;
    $description = Params::getParam('description', false, false) ;
    $description=preg_replace('/<a[^>]*>/i', ' ', $description);
  	$description=preg_replace('/<\/a>/i', ' ', $description);
   	$description=str_replace ('<p>&nbsp;</p>',' ',$description);
   	$description=preg_replace("{(<br[\\s]*(>|\/>)\s*){1,}}i", " ", $description);
        
    $locale      = osc_current_user_locale() ;

    $mItems = Item::newInstance() ;
    $mItems->updateLocaleForce($itemID, $locale, $title[$locale], $description[$locale]) ;
}
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

Locked