Post by czLEONcz » Tue May 12, 2009 10:37 am

Hi all,
how do I create a new box ???
for example, advertising,
for visitors counter, etc...

Thank you very much for the precious advice.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by tommix » Tue May 12, 2009 7:03 pm

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..

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by czLEONcz » Tue May 12, 2009 10:17 pm

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..
Hi tommix and thanks,
I apologize for the incorrect sekcion
I have created ads.tpl and ads.php

What's next, you can not cope
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


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by tommix » Tue May 12, 2009 11:42 pm

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.

need also ad controler, need add row in extensions table and so on..so it's not easy and quick.
Last edited by tommix on Tue May 12, 2009 11:48 pm, edited 2 times in total.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by czLEONcz » Tue May 12, 2009 11:46 pm

tommix 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.
Hmmm, this is above my strength :o

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by tommix » Tue May 12, 2009 11:50 pm

czLEONcz wrote:
tommix 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.
Hmmm, this is above my strength :o

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>

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by czLEONcz » Wed May 13, 2009 12:05 am

Thanks for the advice, but this may not be.
I need another column on advertising and mini-banner and counter visitors.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by czLEONcz » Wed May 13, 2009 12:13 am

tommix wrote:
czLEONcz wrote:
tommix 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.
Hmmm, this is above my strength :o

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>
Perhaps it will suffice

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by tommix » Wed May 13, 2009 12:15 am

czLEONcz wrote:Thanks for the advice, but this may not be.
I need another column on advertising and mini-banner and counter visitors.
you can make anything you want in this file :) 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.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by czLEONcz » Wed May 13, 2009 4:31 am

tommix wrote:
czLEONcz wrote:Thanks for the advice, but this may not be.
I need another column on advertising and mini-banner and counter visitors.
you can make anything you want in this file :) 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.
Thank you succeeded with me.
If it were in administration, it would be better.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm
Who is online

Users browsing this forum: No registered users and 3 guests