PDA

Zobacz pełną wersję : Złe położenie modułu. Inaczej wygląda podgląd inaczej na stronie



arekk
06-05-2010, 19:33
Witam. Tak jak w temacie, przedstawiam dwa screen jeden z panelu administratora, a drugi ze strony. W podglądzie przez panel dobrze, pokazuje położenie, tak jak ustawiłem, a na stronie jest z drugiej strony.

http://img294.imageshack.us/img294/7293/16592409.th.png (http://img294.imageshack.us/i/16592409.png/)

http://img294.imageshack.us/img294/5/60275106.th.jpg (http://img294.imageshack.us/i/60275106.jpg/)

Szukałem trochę w kodzie, ale nie znam aż tak zasad pisania templatki pod Joomle

Zamieszam plik index.php oraz functions.php

Plik functions.php http://wklej.to/b2X3
Plik index.php http://wklej.to/Cs2r

Z tego co patrzyłem to tak ta funkcja jest, odpowiedzialna za format wyświetlania


function artxPositions(&$document, $positions, $style)
{
ob_start();
if (count($positions) == 3) {
if (artxCountModules($document, $positions[0])
&& artxCountModules($document, $positions[1])
&& artxCountModules($document, $positions[2]))
{
?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="33%"><?php echo artxModules($document, $positions[0], $style); ?></td>
<td width="33%"><?php echo artxModules($document, $positions[1], $style); ?></td>
<td><?php echo artxModules($document, $positions[2], $style); ?></td>
</tr>
</table>
<?php
} elseif (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1])) {
?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="33%"><?php echo artxModules($document, $positions[0], $style); ?></td>
<td><?php echo artxModules($document, $positions[1], $style); ?></td>
</tr>
</table>
<?php
} elseif (artxCountModules($document, $positions[1]) && artxCountModules($document, $positions[2])) {
?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="67%"><?php echo artxModules($document, $positions[1], $style); ?></td>
<td><?php echo artxModules($document, $positions[2], $style); ?></td>
</tr>
</table>
<?php
} elseif (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[2])) {
?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="50%"><?php echo artxModules($document, $positions[0], $style); ?></td>
<td><?php echo artxModules($document, $positions[2], $style); ?></td>
</tr>
</table>
<?php
} else {
echo artxModules($document, $positions[0], $style);
echo artxModules($document, $positions[1], $style);
echo artxModules($document, $positions[2], $style);
}
} elseif (count($positions) == 2) {
if (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1])) {
?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="50%"><?php echo artxModules($document, $positions[0], $style); ?></td>
<td><?php echo artxModules($document, $positions[1], $style); ?></td>
</tr>
</table>
<?php
} else {
echo artxModules($document, $positions[0], $style);
echo artxModules($document, $positions[1], $style);
}
} // count($positions)
return ob_get_clean();
} Oraz w pliku index.php za wyświetlanie na stronie


<?php
echo artxModules($document, 'banner2', 'art-nostyle');
if (artxCountModules($document, 'breadcrumb'))
echo artxPost(null, artxModules($document, 'breadcrumb'));
echo artxPositions($document, array('user1','user2'), 'art-article');
echo artxModules($document, 'banner3', 'art-nostyle');
?>Pytanie, co muszę zmienić aby moduł był wyświetlany po prawej stronie tak jak pokazuje to podgląd...