PDA

Zobacz pełną wersję : Wielka Prośba o pomoc w tworzeniu prostego Kodu !



marcinplnd
07-12-2009, 19:43
Witam ! mam gorącą prośbę . Jestem zielony w sprawach kodowania . Ostatnio pobrałem fajny szablonik . Postanowiłem pobrać Gavick News Shop GK1 .
Moda od gavicka chciałem umieścic na środku strony ( z deka z prawej )
Niestety , szablon nie posiada oskrpytowanego miejsca , aby umieścić tam moduł .

Mam bardzo wielką prośbę , o napisanie i umieszczenie odpowiedniego kodu , do kodu mojego szablonu . Poniżej zamieszczam KOD mojego szablonu , oraz screen z podziałem na oskryptowane części.




http://img515.imageshack.us/img515/6453/nowyobrazmapabitowam.jpg
(nazwa Right rounded )



<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!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" 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/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>
<body id="page_bg">
<div id="wrapper">
<div id="header">
<div id="top">
<div id="logo"><h1><a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a></h1></div>
<div id="pillmenu">
<jdoc:include type="modules" name="user3" />
</div>
<div class="clr"></div>
</div>
<div id="newsflash">
<div class="popular<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
<jdoc:include type="modules" style="rounded" name="user2" />
</div>
<div class="newsflash<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
<jdoc:include type="modules" style="rounded" name="top" />
</div>
<div class="clr"></div>
</div>
<div class="cpathway">
<jdoc:include type="module" name="breadcrumbs" />
</div>
<div class="clr"></div>
<div id="search">
<jdoc:include type="modules" name="user4" />
</div>
</div>

<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="content" class="c_middle">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="content" class="c_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="content" class="c_right">
<?php else: ?>
<div id="content" class="c_full">
<?php endif; ?>

<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $sg = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>

<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>

<div id="footer">
<jdoc:include type="modules" name="debug" />
<?php $sg = ''; include "templates.php"; ?>
<a href="http://validator.w3.org/check/referer">valid xhtml</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">valid css</a>
</div>
</div>
</body>
</html>
O to kod HTML

SERDECZNIE PROSZĘ O OSKRYPTOWANIE ! JESTEM TOTALNIE ZIELONY !!!!

Bazyl
07-12-2009, 20:56
Cześć,

Tak bardzo zielony nie jesteś - wiesz, gdzie dzwonią...
Usuń ten elaborat powyżej i przeczytaj jak się tworzy nowe pozycje dla modułów (http://www.wiki.joomla.pl/Pozycje_modu%C5%82%C3%B3w).

Testuj, czytaj, testuj, czytaj...
;)
www.wiki.joomla.pl (http://www.wiki.joomla.pl)

//
Przyznam, że nie spojrzałem na obrazek...
Pozycje modułów - wiesz gdzie są - to widać na obrazku.
Chcesz usunąć mod_breadcrumb, resztę doczytaj na wiki.

marcinplnd
07-12-2009, 22:14
Z całym szacunkiem , zmylić mógł cię fakt iż tak profesonalinie to ująłem . Kolega pomogł mi '' poprawnie sformułować wypowiedź ''
Będę próbował sam ale na pewno tego nie dam rady zrobić , joomli uczę się od 2 dni . Kod HTML potrzebny mi jest na 1 stycznia . Z tego co się dowiadywałem to kodowania można uczyć się całe życie .
Proszę o pomoc w tym kodzie , postaram się coś zdziałać sam ale raczej marnie to widzę.