Skocz do zawartości

Blad (index.php) w stylu do JOOMLA


M17ek

Rekomendowane odpowiedzi

Witam , instaluje na JOOMLI kilka nasty juz styl gdyz poszukuje mi dogodnego nawet juz taki znalazlem ale przy zaladowaniu strony wyskakuje komunikat

Warning: Division by zero in /home/porady/public_html/Newsy/templates/jcommunication/index.php on line 40

Warning: Division by zero in /home/porady/public_html/Newsy/templates/jcommunication/index.php on line 50

Warning: Division by zero in /home/porady/public_html/Newsy/templates/jcommunication/index.php on line 65

Styl wgralem normalnie jak wszytkie , zadego pliku nie pominalem .

Odnośnik do komentarza
Udostępnij na innych stronach

Nie wiem czy mam licztc z komentarzami i przerwami dlatego wstawie caly index.php :P

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<?php

/**

* @Sponsor: simsalaring.eu

* @author: Markus Knopp

* @creation date: April 2020

* @url: https://www.simsalaring.eu

* @copyright: Copyright by simsalaring.eu

* @license: GNU/GPL

* @created by: Yannick Spang + Philipp Vincon

*/

// no direct access

defined('_JEXEC') or die('Restricted access');

?>

<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>

<jdoc:include type="head" />

<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />

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

<!--[if IE 6]>

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

<![endif]-->

</head>

<?php

//Set site name in browser

$this->setTitle($mainframe->getCfg('sitename') . ' - ' . $this->getTitle());

//$top = ($this->countModules('top1') + $this->countModules('top2') + $this->countModules('top3') + $this->countModules('top4')); if($top >4) $top = 4;

$top=0;

if($this->countModules('top1'))$top++;

if($this->countModules('top2'))$top++;

if($this->countModules('top3'))$top++;

if($this->countModules('top4'))$top++;

$topmargin = 4*$top;

$topwidth = 990;

$topwidthnew = $topwidth/$top;

//$bottom = ($this->countModules('bottom1') + $this->countModules('bottom2') + $this->countModules('bottom3') + $this->countModules('bottom4')); if($top >4) $top = 4;

$bottom=0;

if($this->countModules('bottom1'))$bottom++;

if($this->countModules('bottom2'))$bottom++;

if($this->countModules('bottom3'))$bottom++;

if($this->countModules('bottom4'))$bottom++;

$bottommargin = 4*$bottom;

$bottomwidth = 990;

$bottomwidthnew = $bottomwidth/$bottom;

$content = 1;

if(($this->countModules('left')>0)||($this->countModules('right')>0)) $content = 2;

if(($this->countModules('left')>0)&&($this->countModules('right')>0)) $content = 3;

//$footer = ($this->countModules('footer1') + $this->countModules('footer2') + $this->countModules('footer3') + $this->countModules('footer4')); if($footer >4) $footer = 4;

$footer=0;

if($this->countModules('footer1'))$footer++;

if($this->countModules('footer2'))$footer++;

if($this->countModules('footer3'))$footer++;

if($this->countModules('footer4'))$footer++;

$footermargin = 4*$footer;

$footerwidth = 990-30;

$footerwidthnew = $footerwidth/$footer;

?>

<body>

<div class="yag_all">

<div class="yag_header">

<div class="yag_slogan">

<a href="<?php echo JURI::Base();?>">

<img src="<?php echo JURI::Base()?>templates/<?php echo $this->template ?>/images/logo.png" alt="<?php echo $this->getTitle();?>"/>

</a>

<div class="yag_slogan_b">

<?php echo $this->params->get( 'slogan' );?>

</div>

</div>

</div>

<div class="yag_nav">

<jdoc:include type="modules" name="menu" style="menu" />

</div>

<div class="yag_clr"></div>

<?php if ($this->countModules('top1 || top2 || top3 || top4')) {

if ($this->countModules('top1')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top1" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('top2')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top2" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('top3')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top3" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('top4')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top4" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } } ?>

<div class="yag_clr"></div>

<div class="yag_main">

<?php if ($this->countModules('left')) { ?>

<div class="yag_left">

<jdoc:include type="modules" name="left" style="rounded" />

</div>

<?php } ?>

<div class="yag_content_c<?php echo $content; ?>">

<div class="yag_contentA">

<div class="yag_contentB">

<div class="yag_padding">

<div><div><div><div><div>

<?php if ($this->countModules('user1a')) { ?>

<div class="yag_user yag_user_t col_<?php echo $user1; ?>">

<jdoc:include type="modules" name="user1a" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<?php if ($this->countModules('user1b')) { ?>

<div class="yag_user yag_user_t col_<?php echo $user1; ?>">

<jdoc:include type="modules" name="user1b" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<div class="yag_mainbody">

<jdoc:include type="message" />

<jdoc:include type="component" />

<div class="yag_clr"></div>

</div>

<?php if ($this->countModules('user2a')) { ?>

<div class="yag_user yag_user_b col_<?php echo $user2; ?>">

<jdoc:include type="modules" name="user2a" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<?php if ($this->countModules('user2b')) { ?>

<div class="yag_user yag_user_b col_<?php echo $user2; ?>">

<jdoc:include type="modules" name="user2b" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

</div></div></div></div></div>

</div>

</div>

</div>

</div>

<?php if ($this->countModules('right')) { ?>

<div class="yag_right">

<jdoc:include type="modules" name="right" style="rounded" />

</div>

<?php } ?>

<div class="yag_clr"></div>

</div>

<?php if ($this->countModules('bottom1 || bottom2 || bottom3 || bottom4')) {

if ($this->countModules('bottom1')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom1" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('bottom2')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom2" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('bottom3')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom3" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('bottom4')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom4" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } }?>

<div class="yag_clr"></div>

<?php if ($this->countModules('footer1 || footer2 || footer3 || footer4')) { ?>

<div class="yag_footer">

<div class="yag_footerA">

<div class="yag_footerB">

<?php if ($this->countModules('footer1')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer1" style="xhtml" />

</div>

<?php } ?>

<?php if ($this->countModules('footer2')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer2" style="xhtml" />

</div>

<?php } ?>

<?php if ($this->countModules('footer3')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer3" style="xhtml" />

</div>

<?php } ?>

<?php if ($this->countModules('footer4')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer4" style="xhtml" />

</div>

<?php } ?>

<div class="yag_clr"></div>

</div>

</div>

</div>

<?php } ?>

<div class="yag_clr"></div>

<?php if ($this->countModules('footertext')) { ?>

<div class="yag_footertext_l">

<jdoc:include type="modules" name="footertext" style="xhtml" />

</div>

<?php } ?>

<div class="yag_footertext_r">

<!-- This is a FREE Joomla! Template. You´re not allow to remove the credits.

Be fair and support us, so we can provide more free templates.

This template is created by the team from www.yagendoo.com for simslaraing.eu!

You need a custom joomla template or joomla job? check www.yagendoo.com

-->

Design by <a rel="nofollow" href="https://www.yagendoo.com" target="_blank">Yagendoo.com</a> & Template by <a href="https://www.simsalaring.eu">simsalaring.eu</a>

</div>

</div>

</body>

</html>

Odnośnik do komentarza
Udostępnij na innych stronach

40- $topwidthnew = $topwidth/$top;

50- $bottomwidthnew = $bottomwidth/$bottom;

65- $footerwidthnew = $footerwidth/$footer;

Za bardzo się nie znam, luknąłem parę stronek i może rozwiązaniem być ustawienie atrybutu 777 dla pliku index.

Nie pozwól, by konkurencja ciągle Cię wyprzedzała. Znajdź się ponad nimi, dzięki Google AdWords!

www.Lera.pl Forum koszykówki ulicznej - Street-Ball.info

Odnośnik do komentarza
Udostępnij na innych stronach

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Warunki użytkowania Polityka prywatności