Waar haal je deze code vandaan dan?
Haal hem even door PHP Formatter:
<?php
defined('_JEXEC') or die('Restricted index access');
if ($this->countModules("left") && $this->countModules("right")) {
$compwidth = "60";
} else if ($this->countModules("left") && !$this->countModules("right")) {
$compwidth = "80";
} else if (!$this->countModules("left") && $this->countModules("right")) {
$compwidth = "80";
} else if (!$this->countModules("left") && !$this->countModules("right")) {
$compwidth = "100";
}
$mainmod1_count = ($this->countModules('user1') > 0) + ($this->countModules('user2') > 0) + ($this->countModules('user3') > 0);
$mainmod1_width = $mainmod1_count > 0 ? ' w' . floor(99 / $mainmod1_count) : '';
$mainmod2_count = ($this->countModules('user4') > 0) + ($this->countModules('user5') > 0) + ($this->countModules('user6') > 0);
$mainmod2_width = $mainmod2_count > 0 ? ' w' . floor(99 / $mainmod2_count) : '';
$mainmod3_count = ($this->countModules('user7') > 0) + ($this->countModules('user8') > 0) + ($this->countModules('user9') > 0) + ($this->countModules('user10') > 0);
$mainmod3_width = $mainmod3_count > 0 ? ' w' . floor(99 / $mainmod3_count) : '';
?>
Ik heb die rare regel er ook gelijk uit gehaald, want zo moeilijk is dat niet.
Link gekopieerd
hah nu die regel verwijderd is werkt de template weer hmm ik snap er niks van maar toch bedankt
Link gekopieerd
Wouter J
27-06-2012 19:43
gewijzigd op 27-06-2012 19:44
ik snap er niks van
Dan is je code niet goed. Als je je code niet voor 100% begrijpt is hij fout en dan kunnen er binnen de kortste keren weer problemen optreden. Maak dus in 1 keer je code overzichtelijk, goed en begrijp alles.
Link gekopieerd
Wouter, zoals hij aangeeft, het is een template voor Joomla [size=1]oops niet vloeken hier...[/size]
Die zijn nooit overzichtelijk of normaal.
Link gekopieerd