PDA

Orijinalini görmek için tıklayınız : Temada header sorunu.


gurton
27-07-2011, 16:34:41
"ju_cobles" adlı temayı indirdim ve kurdum. Ancak tema ile gelen header da flashla gösterilen üst bölüm mevcut.
aşağıdaki linkte olan header da görülen bölümü kaldırmam gerekiyor.
Resim için tıklayın (http://imageshack.us/photo/my-images/163/headertqh.jpg)
Bu bölümü kaldırabilmem için fikri olan var mı acaba?
Saygılar.

Akar
27-07-2011, 18:50:58
Resimle fikir zor. Modül olarak geliyorsa modülü kapatırsınız, yoksa nerede tanımlandığınız bulup, tanımlandığı yeri gizleyerek test eder ve sonra isterseniz silersiniz.

gurton
27-07-2011, 19:18:48
Akar Bey, Modül olarak gelmiyor.
ancak temanın index.php dosyasında şu şekilde.

<?php

defined('_JEXEC') or die;

define( 'YOURBASEPATH', dirname(__FILE__) );
$app = JFactory::getApplication();
$templateparams = $app->getTemplate(true)->params;
$left_width = $this->params->get("leftWidth", "220");
$right_width = $this->params->get("rightWidth", "220");
$temp_width = $this->params->get("templateWidth", "960");
$sitetitle = $this->params->get("sitetitle", "joomla2you.com Joomla Templates");
$col_mode = "s-c-s";
if ($left_width==0 and $right_width>0) $col_mode = "x-c-s";
if ($left_width>0 and $right_width==0) $col_mode = "s-c-x";
if ($left_width==0 and $right_width==0) $col_mode = "x-c-x";
$temp_width = 'margin: 0 auto; width: ' . $temp_width . 'px;';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.com/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.com/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<?php
require(YOURBASEPATH . DS . "tools.php");
?>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />

<script src="<?php echo $this->baseurl ?>/templates/ju_cobles/js/ie_suckerfish.js" type="text/javascript"></script>

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/ju_cobles/css/styles.css" type="text/css" media="screen,projection" />
<!--[if IE]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/ju_cobles/css/styles.ie.css" type="text/css" media="screen,projection" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/ju_cobles/css/styles.ie7.css" type="text/css" media="screen,projection" />
<![endif]-->
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/scroll.js"></script>
</head>
<body>

<div class="topground"><div class="cobles"></div></div>

<div id="main">
<div id="wrapper"> <div class="leftop"><jdoc:include type="modules" name="user4" style="none"/></div>
<div class="logo">
<a href="index.php" title="<?php echo $sitetitle ?>" ><img src="<?php echo $this->baseurl ?>/templates/ju_cobles/images/logo.png" alt="<?php echo $sitetitle ?>" /></a>
</div>
<div id="nav">
<jdoc:include type="modules" name="position-1" style="none"/>
</div>
<div class="clear"></div>
<div id="message">
<jdoc:include type="message" />
</div>

<!-- START FLASH HEADER -->
<?php if($templateparams->get('show-header',1)) : ?>
<?php if (JRequest::getVar('view') == 'featured') : ?>
<div id="header">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="100%" height="260">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<?php else: ?>
<div id="header">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="100%" height="260">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<!-- END FLASH HEADER --><div id="main-content" class="<?php echo $col_mode; ?>">
<div id="colmask">
<div id="colmid">
<div id="colright">
<div id="col1wrap">
<div id="col1pad">
<div id="col1">
<?php if ($this->countModules('position-2')) : ?>
<div class="breadcrumbs-pad">
<jdoc:include type="modules" name="position-2" />
</div>
<?php endif; ?>
<div class="component">
<jdoc:include type="component" />
<?php if ($this->countModules('position-3 or position-4 or position-5')) : ?>
<div id="main2" class="spacer2<?php echo $main2_width; ?>"><jdoc:include type="modules" name="position-3" style="xhtml"/><jdoc:include type="modules" name="position-4" style="xhtml"/><jdoc:include type="modules" name="position-5" style="xhtml"/></div>
<?php endif; ?>
<?php if ($this->countModules('bannersload')) : ?>
<div class="modulebottom">
<jdoc:include type="modules" name="bannersload" style="xhtml"/>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div><?php if ($left_width != 0) : ?>
<div id="col2">
<jdoc:include type="modules" name="left" style="res"/>
</div>
<?php endif; ?>
<?php if ($right_width != 0) : ?>
<div id="col3">
<jdoc:include type="modules" name="right" style="res"/>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php if ($this->countModules('user8 or user9 or user10')) : ?>
<div id="main3" class="spacer<?php echo $main3_width; ?>">
<div class="centerbox">
<jdoc:include type="modules" name="user8" style="xhtml"/>
<jdoc:include type="modules" name="user9" style="xhtml"/>
<jdoc:include type="modules" name="user10" style="xhtml"/>
</div>
</div>
<?php endif; ?>
<div id="footer">
<div class="scroll">
<a href="#" onclick="scrollToTop();return false;"><img src="templates/<?php echo $this->template ?>/images/top.png" width="24" height="15" alt="top" /></a></div>
<jdoc:include type="modules" name="footerload" style="none" />
<div class="copy">
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
global $_VERSION;
require_once('libraries/joomla/utilities/date.php');
$date = new JDate();
$config = new JConfig();
?>
<!-- START FLASH HEADER --> denen yerden başlıyor. bir kaç yeri silip denedim ama bu sefer de temada hata oluyor ve görünmüyor. Tam neresini silmem gerektiğini bulamadım. Yardımcı olursanız çok makbule geçer. Dilersenizn temayı da yükleyebilirim.
Buna benzer bir çok tema mevcut. hepsindede aynı uygulama var. Buna çare bulabilirsem diğer kısımlarını hallederim. Oldum olası flashı sevemedim, hep başıma bela oldu.
Saygılar.

Buldum.

<!-- START FLASH HEADER -->
<?php if($templateparams->get('show-header',1)) : ?>
<?php if (JRequest::getVar('view') == 'featured') : ?>
<div id="header">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="100%" height="260">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<?php else: ?>
<div id="header">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="100%" height="260">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<!-- END FLASH HEADER -->
Bu arayı silince oldu.

Akar
27-07-2011, 20:31:44
Orada zaten tema ayarında header etkinleştirilmişse diyor. Yani aslında temanın ayarından kapatılabiliyor olması lazım. Eğer doğru çalışıyorsa kod o şekilde :) Siz kökten çözmüşsünüz olayı tabii.

gurton
27-07-2011, 23:00:05
Temanın ayarlarında yok Akar Bey. Zaten basit bir tema. İnşallah artisteer 1.7 için tema yapan sürümü çıkartır bende istediğim gibi temamı hazırlarım.
İlginiz için teşekkürler.