wasylek
29-12-2006, 16:03
Witam!
Mam w joomli zainstalowany szablon technozine. Mam jednak z nim problem. Na lokalnym serwerze wszystko wyświetlane było poprawnie jednak po przeniesieniu( zainstalowaniu nawet od nowa) w Operze nie ma polskich znaków a w IE wogóle nie wyswietla nawet innych. Co trzeba zrobić? Zauważyłem że szablon ten korzysta ze swojej czcionki która nie ma polskich liter jednak na lokalnym dysku wszystkie przeglądarki dobrze wyświetlały bo chyba korzystało z jakieś innej bardzo podobnej czcionki systemowej. Proszę pomóżcie mi aby wyświetlało tak jak na moim lokalnym czcionke polską również. A może jest możliwość w jakiś prosty sposób edytowanie istniejącej czcionki i dodanie polskich liter? Próbowałem podmienić czcionke na inną ale nie dawało to nic na serwerze hostingowym!
Plik index.php z szablonu fragment.
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _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>
<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 rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<?php
if ( $my->id ) {
initEditor();
}
mosShowHead();
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/md_submenu.php");
//fail back to standard CSS if server doesn't support GD and TTF Generation
if (function_exists('ImageTTFText')) {
?>
<script type="text/javascript">
function imageHeader(selector,phpfile,wordwrap){
this.selector = selector;
this.phpfile = phpfile;
this.wordwrap = wordwrap;
}
var testURL = "templates/<?php echo $mainframe->getTemplate(); ?>/images/test.png" ;
var hideFlicker = true;
var hideFlickerCSS = "templates/<?php echo $mainframe->getTemplate(); ?>/css/hidden_css.css";
var hideFlickerTimeout = 1000;
var imageHeaders = [
new imageHeader("h2","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fff&background_color=853400&upper=true",false),
new imageHeader("h3","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fc0&background_color=111&upper=true",false),
new imageHeader("div.componentheading","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fc0&background_color=111&upper=true",false),
new imageHeader("ul.mainlevel a.active_menu","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fc0&background_color=111&upper=true",false),
new imageHeader("ul.mainlevel a.normal","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fff&background_color=111&upper=true",false)
]
</script>
<script
type="text/JavaScript"
src="templates/<?php echo $mainframe->getTemplate(); ?>/replacement.js">
</script>
<?php
}
?>
Trochę dużo ale nie wiedziałem co się przyda!
3 dni się bawie i nic nie wyszło!
Mam w joomli zainstalowany szablon technozine. Mam jednak z nim problem. Na lokalnym serwerze wszystko wyświetlane było poprawnie jednak po przeniesieniu( zainstalowaniu nawet od nowa) w Operze nie ma polskich znaków a w IE wogóle nie wyswietla nawet innych. Co trzeba zrobić? Zauważyłem że szablon ten korzysta ze swojej czcionki która nie ma polskich liter jednak na lokalnym dysku wszystkie przeglądarki dobrze wyświetlały bo chyba korzystało z jakieś innej bardzo podobnej czcionki systemowej. Proszę pomóżcie mi aby wyświetlało tak jak na moim lokalnym czcionke polską również. A może jest możliwość w jakiś prosty sposób edytowanie istniejącej czcionki i dodanie polskich liter? Próbowałem podmienić czcionke na inną ale nie dawało to nic na serwerze hostingowym!
Plik index.php z szablonu fragment.
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _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>
<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 rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<?php
if ( $my->id ) {
initEditor();
}
mosShowHead();
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/md_submenu.php");
//fail back to standard CSS if server doesn't support GD and TTF Generation
if (function_exists('ImageTTFText')) {
?>
<script type="text/javascript">
function imageHeader(selector,phpfile,wordwrap){
this.selector = selector;
this.phpfile = phpfile;
this.wordwrap = wordwrap;
}
var testURL = "templates/<?php echo $mainframe->getTemplate(); ?>/images/test.png" ;
var hideFlicker = true;
var hideFlickerCSS = "templates/<?php echo $mainframe->getTemplate(); ?>/css/hidden_css.css";
var hideFlickerTimeout = 1000;
var imageHeaders = [
new imageHeader("h2","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fff&background_color=853400&upper=true",false),
new imageHeader("h3","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fc0&background_color=111&upper=true",false),
new imageHeader("div.componentheading","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fc0&background_color=111&upper=true",false),
new imageHeader("ul.mainlevel a.active_menu","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fc0&background_color=111&upper=true",false),
new imageHeader("ul.mainlevel a.normal","templates/<?php echo $mainframe->getTemplate(); ?>/heading.php?font_size=12&font_color=fff&background_color=111&upper=true",false)
]
</script>
<script
type="text/JavaScript"
src="templates/<?php echo $mainframe->getTemplate(); ?>/replacement.js">
</script>
<?php
}
?>
Trochę dużo ale nie wiedziałem co się przyda!
3 dni się bawie i nic nie wyszło!