Forums / Basic Configuration / Disappearing sidebox border (bottom)

Disappearing sidebox border (bottom)

Locked
Results 1 to 13 of 13
This thread is locked. New replies are disabled.
26 Jul 2006, 21:17
#1
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Posts:
408
Plugin Contributions:
0

Disappearing sidebox border (bottom)

Hi to all,

I only recently started working with zencart (1.3.0.2) and wish to begin this post by congratulating all on a brilliant system. User friendly and very easy to use. (Even with no programming knowledge.)

Everything worked as intended straight from the "box". :thumbsup:

I am however experiencing one small bu irretating problem.:( :dontgetit Most of the sideboxes posted on the downloads page gives the same result. On installing any add-on sidebox the bottom border line disappears. (I tried the scrolling specials sidebox, the credit card accepted sidebox and the refreshing "whats new" sidebox and all had the bottom line missing. As soon as I go back to the original sidebox (eg. standard specials sidebox) all is ok again. This problem is basically holding up the usage of add-in sideboxes on my site.

Any assistance will be welcome.

Louis
26 Jul 2006, 21:29
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

What template have you based your custom template on?
26 Jul 2006, 21:44
#3
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Posts:
408
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

You are quick!!:laugh:

I am using Nightfall from the downloads section. I also changed the template to future zen to see if there is any difference but the same still happened.

Louis
26 Jul 2006, 21:57
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

The URL where this can be seen?
26 Jul 2006, 22:10
#5
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Posts:
408
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

Kim,

I activated the Credit card box as a right hand sidebox for you
the url is http://shop.technopro.co.za

Thanks for your help.
26 Jul 2006, 23:34
#6
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

The only thing I can see is the last row of the table that is inside the sidebox is missing a colspan="2"
26 Jul 2006, 23:58
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Disappearing sidebox border (bottom)

Hi Louis

Your problem is that the sidebox that you have added in is not designed for use with version 1.3 of Zen Cart. The v1.3 sideboxes all have an outer container div and a heading which are generated for all boxes and a content div which is generated by the individual sidebox.

Unfortunately your credit card accept sidebox doesn't have this sidebox content div which is used by both the Nightfall and future Zen templates as the hook from which to hang the image at for the bottom of the sidebox.

If you're up for a bit of php coding then make a copy of the file that I suspect will be called something like tpl_ccaccept,php and put it in your includes/templates/nightfall/sideboxes directory. Then edit it to add two lines. This one as the second line of after the header comment
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
and then this one immediately before the final ?>
$content .= '</div>';
27 Jul 2006, 21:31
#8
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Posts:
408
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

Kurio,

I am still working on your suggestion. My first attempt was not so successful. The box contained = - ; ' and other funnies. It also repeated the description from the box above it.

Did you mean that I have to replace certain code with your code or am i just supposed to add the code (I first tried just adding).??

I am determined to get this fixed myself. Good to know the inner workings of the system you use. One never knows when you will have to dig in yourself.

I will keep you informed of progress.
27 Jul 2006, 21:43
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Disappearing sidebox border (bottom)

Louis:

I am still working on your suggestion. My first attempt was not so successful. The box contained = - ; ' and other funnies. It also repeated the description from the box above it.

Did you mean that I have to replace certain code with your code or am i just supposed to add the code (I first tried just adding).??

I am determined to get this fixed myself. Good to know the inner workings of the system you use. One never knows when you will have to dig in yourself.
Doing it yourself is a great way of learning.

From the result you describe, it looks as though your first attempt had some syntax errors. The aim is not to replace any code (I am guessing as I haven't actually seen your code!) but rather to simply wrap a div that all 1.3 template_default sideboxes have around the sidebox content.

If you run into difficulties. a bit of persistence is good, but if it bubbles over into frustration, please post the code.
27 Jul 2006, 22:28
#10
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Posts:
408
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

Got it!!!:D

I also had to add
$content = '';
to remove the box above's heading.

BTW - Any comments on the site? Am i doing Zen-Cart justice?
28 Jul 2006, 07:36
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Disappearing sidebox border (bottom)

You're doing great. Just a minor suggestion, you may wish to widen your right and left column widths to move your sideboxes away slightly from the edge of your site. In Firefox they overlap the right hand border slightly. It looks better in Internet Explorer, but if you look carefully you'll see that it's causing the New Products for July heading to be just off center (BTW what's the spelling in za? center or centre?)

You could do this by tweaking the values in Admin > Configuration > Layout Settings and then the entries on lines 14 and 15.
28 Jul 2006, 16:30
#12
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Posts:
408
Plugin Contributions:
0

Re: Disappearing sidebox border (bottom)

Thanks for the info. I changed the width from 150 to 160 and can now see a little white border on the out-side of the sideboxes.

As for spelling: Most words are basically the same as in the US except for some silly things like COLOR vs COLOUR, REALIZE vs REALISE (in fact most of the words where the "Z" is used for the ZZZZZ sound we use a "S". South African spelling is really based on the EN-UK (United Kingdom) english dictionary.
30 Jul 2006, 08:54
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Disappearing sidebox border (bottom)

Louis:

South African spelling is really based on the EN-UK (United Kingdom) english dictionary.
Thanks helpful to know. Many thanks. I shall try to remember that next time our paths cross, I can use proper spelling :thumbsup:.