Zen Cart Logo
Forums / General Questions / Blank sidebox

Blank sidebox

Locked

Views: 2,073

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
13 Dec 2007, 11:00 AM
#1
scorpio4646 avatar

scorpio4646

New Zenner

Join Date:
Nov 2007
Posts:
39
Plugin Contributions:
0

Blank sidebox

Just installed a new blank sidebox.
Could someone explain the difference between putting data into the blank_sidebox_defines.php or the tpl_blank_sidebox.php. If I remove the message in blank_sidebox_defines.php ie define('TEXT_BLANK_SIDEBOX', 'Replace this text with your HTML content.'); then I get a blank area at the top of the sidebox . Help Please

13 Dec 2007, 11:30 AM
#2
scorpio4646 avatar

scorpio4646

New Zenner

Join Date:
Nov 2007
Posts:
39
Plugin Contributions:
0

Re: Blank sidebox

Another thing I cannot understand is the Layout Boxes Controller. Not Sure how the different settings effect the boxes, namely the LEFT/RIGHT COLUMN Status and SINGLE COLUMN Status

15 Dec 2007, 10:16 AM
#3
scorpio4646 avatar

scorpio4646

New Zenner

Join Date:
Nov 2007
Posts:
39
Plugin Contributions:
0

Re: Blank sidebox

Could someone please expalin why it takes so long to answer a query:huh:

15 Dec 2007, 12:30 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank sidebox

scorpio4646:

Could someone please expalin why it takes so long to answer a query:huh:

Perhaps if you posted more information about what you were trying to replace that text with, answers might be more forthcoming.

15 Dec 2007, 12:31 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank sidebox

scorpio4646:

Another thing I cannot understand is the Layout Boxes Controller. Not Sure how the different settings effect the boxes, namely the LEFT/RIGHT COLUMN Status and SINGLE COLUMN Status
The left/right column status is used to determine whether to display the particular sidebox in the ... um ... left or right column.

Single column status is not used in the current version of Zen Cart. It's an old feature kept for backwards compatibility only. It may be removed or replaced in a future release.

15 Dec 2007, 12:32 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank sidebox

scorpio4646:

then I get a blank area at the top of the sidebox .

What exactly do you mean?
Perhaps a URL to see it in action would be helpful.

15 Dec 2007, 1:31 PM
#7
scorpio4646 avatar

scorpio4646

New Zenner

Join Date:
Nov 2007
Posts:
39
Plugin Contributions:
0

Re: Blank sidebox

Thanks for the explanation of the single column feature in layout control. As to the other question here is the URL
http://www.coolers-computers.com
The sidebox in question is "Our sponsors" on the right hand side of the page. notice there is a large white space above the Image

15 Dec 2007, 4:41 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank sidebox

You've got some really bad HTML in there.

If you click on View Source in your browser, you'll see that the sidebox is drawn from this information:```

<!--// bof: blanksidebox //--> <div class="rightBoxContainer" id="blanksidebox" style="width: 150px"> <h3 class="rightBoxHeading" id="blanksideboxHeading">Our Sponsors</h3> <div id="blanksideboxContent" class="sideBoxContent">[B]<p><p>[/B]<div align="center"><a href="http://www.cool-fm.net" target="_blank"><img src="images/sponsor.jpg" alt="CoolFM internet Radio" width="142" height="227" border="0" /></a></div> [B]</body> </div></p></p></div>[/B]</div> <!--// eof: blanksidebox //--> ``` 1. Get rid of the </body> line. You shouldn't be ending your "body" tag in the middle of the page. 2. Get rid of the extra <p> and </p> and </div> tags as shown. Those are all in the sidebox template file where you inserted your own stuff.

And, you could have used the Banners system to do the Sponsors sidebox, instead of installing a new sidebox.
https://www.zen-cart.com/tutorials/index.php?article=80

16 Dec 2007, 9:10 AM
#9
scorpio4646 avatar

scorpio4646

New Zenner

Join Date:
Nov 2007
Posts:
39
Plugin Contributions:
0

Re: Blank sidebox

Thanks very much for that information I will look into it. So using the banner box would be better for this.

16 Dec 2007, 9:26 AM
#10
scorpio4646 avatar

scorpio4646

New Zenner

Join Date:
Nov 2007
Posts:
39
Plugin Contributions:
0

Re: Blank sidebox

ok tried that looks much better and easy to install thanks once again. As you will have noticed I am completely new to this (about six weeks) but I am learning thanks to you guys:clap: