luckybastard Posted May 24, 2010 Share Posted May 24, 2010 Jak se zbavit podivného kodování ve zdrojovém kodu? kde česká diakritika, konkrétně í,ě,š,č atd je nahrazována vizv & iacute;cemá to nějaký vliv na SEO ? Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted May 24, 2010 Share Posted May 24, 2010 http://www.prestashop.com/forums/viewthread/54531/hlavn_diskuze/jak_pracovat_s_vyhledvnm_na_foru Link to comment Share on other sites More sharing options...
soda Posted May 26, 2010 Share Posted May 26, 2010 Je to jenom zkopirovane z osobnich poznamek, ale snad je to pochopitelne, kdyztak PM Takze zmenit takhle a pak vsechny texty znova ulozit. 1) /admin/tabs/AdminCMS.php cca řádek 108 // General options entity_encoding:"raw", mode : "textareas", theme : "advanced", plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen", 2) /admin/tabs/AdminProducts.php cca řádek 2006 // General options entity_encoding:"raw", mode : "textareas", theme : "advanced", plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen", 3) /admin/tabs/AdminManufactures.php cca řádek 136 // General options entity_encoding:"raw", theme : "advanced", plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen", 4) /modules/editorial/editorial.php cca řádek 134 // General options entity_encoding:"raw", theme : "advanced", plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen", 5) Celá idea úprav v bodech 1) až 4) spočívá v přídání entity_encoding:"raw", v místech kde se definují vlatnosti TinyMCE 6) stejné změny jako v 1) a 2) pro každý modul, který používá vlastní verzi TinyMCE (Novinky) 7) /tools/smarty/plugins/modifier.escape.php cca řádek 28 zaměnit case 'htmlall': return htmlentities($string, ENT_QUOTES, $char_set); za case 'htmlall': return htmlspecialchars($string, ENT_QUOTES, $char_set); 5) /classes/Tools.php cca řádek 343 ve funkci htmlentitiesUTF8() změnit ten return htmlentities($string, ENT_QUOTES, ‘utf-8’); na return htmlspecialchars($string, ENT_QUOTES, ‘utf-8’); EDIT: Doplneno Link to comment Share on other sites More sharing options...
D-O-M Posted June 19, 2010 Share Posted June 19, 2010 Omluvte mou omezenost, mám problém se sedmým krokem na verzi 1.2.5, je to tom ňák jináč, rád bych kohokoliv z uvědomělých poprosil o radu. Přikládám soubor Tools.php Tools.php Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted June 20, 2010 Share Posted June 20, 2010 V sedmém kroku se o tools.php nepíše... Link to comment Share on other sites More sharing options...
D-O-M Posted June 20, 2010 Share Posted June 20, 2010 osmičku jsem si domyslel, jde tedy o :5) /classes/Tools.php cca řádek 343ve funkci htmlentitiesUTF8() změnit ten return htmlentities($string, ENT_QUOTES, ‘utf-8’); na return htmlspecialchars($string, ENT_QUOTES, ‘utf-8’); Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted June 20, 2010 Share Posted June 20, 2010 Tuším chybu v apostrofech... Link to comment Share on other sites More sharing options...
Kaspi88 Posted September 16, 2010 Share Posted September 16, 2010 Vše sepsáno do jednoho článkuhttp://prestashopcesky.cz/jak-odstranit-entity-ve-zdrojovem-kodu/ Link to comment Share on other sites More sharing options...
jirik0201 Posted November 9, 2011 Share Posted November 9, 2011 má to někdo vyřešeno pro 1.4.5.1 ? Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 9, 2011 Share Posted November 9, 2011 Musíte ten escape.modifier upravit i ve smarty2... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now