l4uke
28-06-2008, 10:31
W stopce i jednym pluginie ( profilebook) nie mam znaków z ogonkami . Podobno mam przekodować pliki szablonu , które pliki przekodować na co ? Gdy przekodowałem index.php z utf8 na iso to były polskie znaki w stopce, ale zrobiły sie krzaczki w modułach i artykułach .
Na serwerze ustawienia są takie :
Baza danych Rosnąco : Metoda porównywania napisów :
information_schema utf8_general_ci
l4uke_l4uke utf8_unicode_ci
Sumarycznie: 2 latin2_general_ci
Index.php szablonu :
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/topnav/css/menu.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("menulist_root-rounded").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
<?php if(!mosCountmodules("left")||!mosCountmodules("right")){?>
<style type="text/css">
#middle{ width:712px;}
</style>
<?php }?>
<?php if(!mosCountmodules("left")&&!mosCountmodules("right")){?>
<style type="text/css">
#middle{ width:99%;}
</style>
<?php }?>
<?php if(mosCountmodules("user1") + mosCountmodules("user2") + mosCountmodules("top")==2){?>
<style type="text/css">
#user1, #user2, #top{ width:48%;}
</style>
<?php }?>
<?php if(mosCountmodules("user1") + mosCountmodules("user2") + mosCountmodules("top")==1){?>
<style type="text/css">
#user1, #user2, #top{ float:none; width:99%;}
</style>
<?php }?>
<?php if(!mosCountmodules("user3")){?>
<style type="text/css">
#footermodule{ width:99%;}
</style>
<?php }?>
<!--[if lte IE 6]>
<style type="text/css">
#logo img{
behavior: url("templates/<?php echo $mainframe->getTemplate(); ?>/js/iepngfix.htc");
Na serwerze ustawienia są takie :
Baza danych Rosnąco : Metoda porównywania napisów :
information_schema utf8_general_ci
l4uke_l4uke utf8_unicode_ci
Sumarycznie: 2 latin2_general_ci
Index.php szablonu :
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/topnav/css/menu.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("menulist_root-rounded").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
<?php if(!mosCountmodules("left")||!mosCountmodules("right")){?>
<style type="text/css">
#middle{ width:712px;}
</style>
<?php }?>
<?php if(!mosCountmodules("left")&&!mosCountmodules("right")){?>
<style type="text/css">
#middle{ width:99%;}
</style>
<?php }?>
<?php if(mosCountmodules("user1") + mosCountmodules("user2") + mosCountmodules("top")==2){?>
<style type="text/css">
#user1, #user2, #top{ width:48%;}
</style>
<?php }?>
<?php if(mosCountmodules("user1") + mosCountmodules("user2") + mosCountmodules("top")==1){?>
<style type="text/css">
#user1, #user2, #top{ float:none; width:99%;}
</style>
<?php }?>
<?php if(!mosCountmodules("user3")){?>
<style type="text/css">
#footermodule{ width:99%;}
</style>
<?php }?>
<!--[if lte IE 6]>
<style type="text/css">
#logo img{
behavior: url("templates/<?php echo $mainframe->getTemplate(); ?>/js/iepngfix.htc");