Jump to content



Latest News: (loading..)

- - - - -

Pictures on the left column


  • Please log in to reply
10 replies to this topic

#1   belilan

belilan
  • Members
  • 43 posts
  • Real Name:Alain

Posted 11 July 2012 - 09:06 AM

Hello,
I succeeded to add pictures on the left column of my site by adding this code in temlpate_bottom.php

<div><?php if ($banner = tep_banner_exists('dynamic', 'sidepic')) { echo tep_display_banner('static', $banner); }?></div>
  <div><?php if ($banner = tep_banner_exists('dynamic', 'sidepic1')) { echo tep_display_banner('static', $banner); }?></div>
  <div><?php if ($banner = tep_banner_exists('dynamic', 'sidepic2')) { echo tep_display_banner('static', $banner); }?></div

and then adding a banner, in group called "sidepic", "sidepic1","sidepic2", etc.
My only small problem, as you can see on the printcapture in attachment is that the banners are touching themselves. banner 1 is touching banner 2.
Does anyone know how I can have a space between each of them.

Thank you.

Attached Files



#2 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,377 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 11 July 2012 - 09:17 AM

Add a margin to he divs that wrap the banners

#3   belilan

belilan
  • Members
  • 43 posts
  • Real Name:Alain

Posted 11 July 2012 - 09:26 AM

Could you please tell me precisly where I have to add it.
I worked few hours to find that. As you know, I'm a beginner.
Thank you.

#4 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,377 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 11 July 2012 - 09:44 AM

<div style="margin-top:10px;"> to your <div> that wrap the banner

I would suggest, you stop doing anything and spend one day at least to learn some css

#5   belilan

belilan
  • Members
  • 43 posts
  • Real Name:Alain

Posted 11 July 2012 - 09:51 AM

I got that, but I don't know where is my <div> that wrap the banner.

PS: I am trying to learn, I've been looking at that site you gave me a long time yesterday :P

#6 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,377 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 11 July 2012 - 10:02 AM

Ok, so you posted a code above

There is 3 times a <div>, can you see it? This you replace with what I gave you

PS Obviously you didn't spend enough time reading, so maybe you spend some more ? From what I see, you try to get someone to tell you exactly what you have to copy paste. That's not exactly "learning", is it?

#7   belilan

belilan
  • Members
  • 43 posts
  • Real Name:Alain

Posted 11 July 2012 - 10:10 AM

perfect. It works great thank you.

PS: Actually, I did learn some things, because I succeeded to do some things myslef that I wold never have been able to do before.
I only posted the problems I get.
But I will definately spend more time on it.
The problem is, that I have no knowledge in html, in php or css, and I don't really know where to start.

#8 ONLINE   14steve14

14steve14

    STORE OWNER NOT CODER

  • Members
  • 3,073 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

Posted 11 July 2012 - 10:14 AM

There are thousands of pages on google that explain basic html and css. All you have to do is to search, and you will find.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.  

OSC has a steep learning curve, but in general the program does work.  If it doesnt work, the chances are it is something you have done.

#9   belilan

belilan
  • Members
  • 43 posts
  • Real Name:Alain

Posted 11 July 2012 - 10:25 AM

Yes I know, but in wich order should I start between html, php and css?

#10 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,377 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 11 July 2012 - 10:26 AM

View Postbelilan, on 11 July 2012 - 10:10 AM, said:

The problem is, that I have no knowledge in html, in php or css, and I don't really know where to start.

You need to start somewhere, best with basic html and css

On the forum: Don't ask people to tel you what to copy paste blind, because you\ll never learn

Only way to learn is to sit and spend hours reading and then try

#11   belilan

belilan
  • Members
  • 43 posts
  • Real Name:Alain

Posted 11 July 2012 - 10:31 AM

Ok I will do it.
Thanks anyway for all the help you provided me.

Alain.