PDA

Zobacz pełną wersję : Problem z sekcją Bannery na stronie / w szablonie



Mobius00
14-01-2010, 23:03
Witam,
Jestem względnie początkującym użytkownikiem Joomli dlatego też na wstępie proszę o wyrozumiałość :)

Próbowałem "wygooglować" mój problem jednak nie udało mi się go rozwiązać,
chodzi mianowicie o bannery na stronie.
Chciałbym utworzyć coś takiego:
http://img27.imageshack.us/img27/4227/sampleqef.jpg

Rozumiem oczywiście, że do tego trzeba "wklepać" bannery w panelu administracyjnym.
Można powiedzieć, że już to zrobiłem (mam jeden przykładowy) jednak najzwyczajniej w świecie się on nie wyświetla - nie ma go w szablonie (a przynajmniej ja tak to rozumiem).

Znalazłem taki oto opis:


1) Open the index.php file for your web design using notepad or another editor like dreamweaver.

2) Add the following code into the index.php file where you would like the banner module to appear.

<div id="banner"><?php if (mosCountModules('banner')) { mosLoadModules('banner'); } ?></div>

3) Basically the above code will display the banner module on your site only if you have enabled it. If the module is not enabled then the banner will not appear.

4) You will also need to position the banner module so it appears in the centre or to the left or right. You can do this by including the following css code in your template_css.css file.

5) Open the template_css.css file and add the following code.

#banner { float: right; padding: 25px 10px 0px 0px; margin: 0;

6) The above code is referencing the <div id="banner"> and applying a style to it. So in the CSS style element noted above you are saying the banner will float to the left ( or you can you right or centre ) and then you are adding some padding to it.

Hope this helps to include a banner module in your joomla theme plus how to position the module.

Jednak po dopisaniu tego do mojego index.php strona się krzaczy i nie wyświetla nic w głównym oknie.

Może mi ktoś pomóc z tym problemem ? Chodzi mi o to gdzie konkretnie wstawić ten kod, aby wszystko śmigało tak jak należy.

Bannery chce wstawić po prawej stronie szablonu, zaraz pod menu (nie wiem czy widać cały szablon strony w tym pliku, jak coś to mogę podesłać więcej info albo adres do stronki na priva)

Mój index.php w załączniku.

Wielkie dzięki

KejeN
14-01-2010, 23:43
Skoro chcesz miec baner zaraz pod menu to wstaw modul baner do tej samej pozycji co owe menu :) zapewne right. Podstawy wypada znac...ps: ten kod na pozycje modulu co cytowales jest do joomla 1.0

Mobius00
16-01-2010, 01:13
dzięki, poradziłem sobie za pomocą wtyczki: "Banner Slider" :)