l4uke
27-06-2008, 13:19
Witam .
Adres mojej strony www.malakai.pl (http://www.malakai.pl). Sprawdziłem dziesiątki tematów, na forum tak i w google ale niestety mimo usilnych starań nie mogę sobie poradzić z templatka . Na samej stronie polskie znaki wyświetlane są prawidłowo z ogonkami ale jeżeli próbuje wpisać znak z ogonkiem w stopce ' ó,ł,ś,ż itd. ' to pokazuje się ' ? ' zamiast litery z ogonkiem. Problem dotyczy też modułu profilebook gdzie brakuje polskich znaków a na ich miejscu są znaki zapytania . Próbowałem na różne sposoby zmieniać kod np. na taki :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />Wtedy polskie znaki są w stopce ale brak na samej stronie w artykułach i w modułach .
A kiedy przeniose dobrą linie :
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />Zaraz po znaczniku otwierającym <head> to zero reakcji .
Wszystko jest na webd.pl i zmienione na utf-8 .
Jak to naprawić ?
<?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");
}
</style>
<![endif]-->
</head>
Adres mojej strony www.malakai.pl (http://www.malakai.pl). Sprawdziłem dziesiątki tematów, na forum tak i w google ale niestety mimo usilnych starań nie mogę sobie poradzić z templatka . Na samej stronie polskie znaki wyświetlane są prawidłowo z ogonkami ale jeżeli próbuje wpisać znak z ogonkiem w stopce ' ó,ł,ś,ż itd. ' to pokazuje się ' ? ' zamiast litery z ogonkiem. Problem dotyczy też modułu profilebook gdzie brakuje polskich znaków a na ich miejscu są znaki zapytania . Próbowałem na różne sposoby zmieniać kod np. na taki :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />Wtedy polskie znaki są w stopce ale brak na samej stronie w artykułach i w modułach .
A kiedy przeniose dobrą linie :
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />Zaraz po znaczniku otwierającym <head> to zero reakcji .
Wszystko jest na webd.pl i zmienione na utf-8 .
Jak to naprawić ?
<?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");
}
</style>
<![endif]-->
</head>