how do I create a new box

for example, advertising,
for visitors counter, etc...
Thank you very much for the precious advice.
Hi tommix and thanks,tommix wrote:You posted in wrong section.
this question already was on forum-search for it.
for tpl example see: catalog\view\theme\default\template\module\information.tpl
you can rename it to ads.tpl change content in it.
for php file: catalog\controller\module\information.php
and then need somewho add those two new files in system so in admin they to bee seen...how-don't know try bit by bit..
and then need somewho add those two new files in system so in admin they to bee seen...how-don't know try bit by bit..
czLEONcz
czLEONcz wrote:Hmmm, this is above my strengthtommix wrote:i don't know i never did this si i don't know. but there is always need to add/edit two files -if you edit tpl-then need to edit the same php.
Code: Select all
<div class="box">
<div class="top" style="background: url('catalog/view/theme/default/image/icon_basket.png') 8px 8px no-repeat; padding-left: 30px;">YOUR MODULE</div>
<div class="middle">
<div style="text-align: center;">CONTENT</div>
</div>
<div class="bottom"></div>
</div>
Perhaps it will sufficetommix wrote:czLEONcz wrote:Hmmm, this is above my strengthtommix wrote:i don't know i never did this si i don't know. but there is always need to add/edit two files -if you edit tpl-then need to edit the same php.
if you don't need to be so cool as it must to be you just can open - catalog\view\theme\default\template\common\layout.tpl and there you can paste your code.
you can paste this:
Code: Select all
<div class="box"> <div class="top" style="background: url('catalog/view/theme/default/image/icon_basket.png') 8px 8px no-repeat; padding-left: 30px;">YOUR MODULE</div> <div class="middle"> <div style="text-align: center;">CONTENT</div> </div> <div class="bottom"></div> </div>
czLEONcz
you can make anything you want in this fileczLEONcz wrote:Thanks for the advice, but this may not be.
I need another column on advertising and mini-banner and counter visitors.
Thank you succeeded with me.tommix wrote:you can make anything you want in this fileczLEONcz wrote:Thanks for the advice, but this may not be.
I need another column on advertising and mini-banner and counter visitors.i just paste you the code of module box. but you can make it horizontal or any size, if you need to add soemthing in middle-do the same with home.tpl not layout.tpl.
czLEONcz
Users browsing this forum: No registered users and 3 guests