Forums / General Questions / Blank Sidebox, no borders or header, just blank

Blank Sidebox, no borders or header, just blank

Locked

Views: 9,600

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
21 Dec 2008, 4:38 AM
#1
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Blank Sidebox, no borders or header, just blank

How can I make a new sidebox with no border or header

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

21 Dec 2008, 4:55 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

Install the Blank Sidebox, giving it a unique name, and style that id in the stylesheet:

#myBlankSideBox {border: none;}
#myBlankSideBoxHeading {display: none;}
#myBlankSideBoxContent {border: none;}

with whatever other properties you wish.

21 Dec 2008, 5:40 AM
#3
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

gjh42:

Install the Blank Sidebox, giving it a unique name, and style that id in the stylesheet:

#myBlankSideBox {border: none;}
#myBlankSideBoxHeading {display: none;}
#myBlankSideBoxContent {border: none;}

with whatever other properties you wish.

thanks sounds good, going to add content its a live help buttong

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

21 Dec 2008, 6:42 AM
#4
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

chris32882:

thanks sounds good, going to add content its a live help buttong

alright I can't even get the sidebox to show regularly..this is what I got..

  $content .= '<p>' . TEXT_LIVEHELP_SIDEBOX . '</p>';
  $content .= '<a href="javascript:void(window.open('http://localhost/livezilla/livezilla.php','','width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
<!--
var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);
// -->
</script>';

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

21 Dec 2008, 7:00 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

$content .= '<a href="javascript:void(window.open('http://localhost/livezilla/livezilla.php','','width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">

One problem is here. The ' before http is seen as terminating the text string, which then allows the // to be seen as a comment which wipes out the rest of the line.

If you need to use a single quote inside a single-quoted string, escape it like this: ' .

I don't know javascript, but the comment tags overlapping with the script tags don't look right.

22 Dec 2008, 1:26 AM
#6
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

gjh42:

$content .= '<a href="javascript:void(window.open('http://localhost/livezilla/livezilla.php','','width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">

> One problem is here. The ' before http is seen as terminating the text string, which then allows the // to be seen as a comment which wipes out the rest of the line.
> 
> If you need to use a single quote inside a single-quoted string, escape it like this: \' .
> 
> I don't know javascript, but the comment tags overlapping with the script tags don't look right.

yeah I'm not sure, thats the code livzialla produced to put on a website

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

22 Dec 2008, 2:04 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

The opening script tag is at the end of the $content line, in the commented section:

<script language="JavaScript" type="text/javascript"> So that is correct; you just need to escape the special characters so they get output instead of acting immediately. ```php $content .= '<a href="javascript:void(window.open(\'http://localhost/livezilla/livezilla.php\',\'\',\'width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes\'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript"> <!-- var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1); // --> </script>';
22 Dec 2008, 2:55 AM
#8
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

gjh42:

The opening script tag is at the end of the $content line, in the commented section:

<script language="JavaScript" type="text/javascript"> So that is correct; you just need to escape the special characters so they get output instead of acting immediately. ```php

$content .= '<a href="javascript:void(window.open(\'http://localhost/livezilla/livezilla.php\',\'\',\'width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes\'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">

<!-- var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1); // -->

</script>';


ahhh I see now, weird how one peice of code changes the whole outlook :) Thanks :yes:

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

22 Dec 2008, 3:16 AM
#9
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

hmm still isn't working, I noticed this code, is commented out as well, not sure

<!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">

this is what I am thinking I should do, correct me if I am wrong

<!-- \' http://www.LiveZilla.net' Chat Button Link Code --><!-- \' http://www.LiveZilla.net' Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

22 Dec 2008, 3:22 AM
#10
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

Attachment #5046

this is the file, it may be easier to look at than on her on the forum

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

22 Dec 2008, 5:01 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

I missed another pair of quotes in a last-minute edit - 'livezilla_tracking' was dropping out of the output and most likely causing a problem.

$content .= '<a href="javascript:void(window.open(\'http://localhost/livezilla/livezilla.php\',\'\',\'width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes\'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
<!--
var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById(\'livezilla_tracking\').appendChild(script)",1);
// -->
</script>';  
22 Dec 2008, 5:14 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

From your zipped file:```php
$content .= '<p>' . TEXT_LIVEHELP_SIDEBOX . '</p>';
$content .= '$content .= '<a href="javascript:void(window.open(\'http://localhost/livezilla/livezilla.php\',\'\',\'width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes\'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">

<!-- var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1); // -->

</script>';


The second line duplicates the $content .= ', which throws everything off. Fixing the 'livezilla tracking' takes care of the code.```php
  $content .= '<a href="javascript:void(window.open(\'http://localhost/livezilla/livezilla.php\',\'\',\'width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes\'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
<!--
var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById(\'livezilla_tracking\').appendChild(script)",1);
// -->
</script>'; 
2 Mar 2009, 10:16 PM
#13
dave010880 avatar

dave010880

New Zenner

Join Date:
Mar 2008
Location:
UK
Posts:
26
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

Hi Guys,

I have a similar question, I would like to customize the sideboxes for my banners. I wish to keep the current format for all other sideboxes, i.e categories, information, search. What I am trying to achieve is a banner sidebox that is completely blank, no borders, no background, no heading ... this way my banners will be the images only.

If anyone has any ideas I would greatly appreciate it.

So far I've gotten into the stylesheet.css, I can see how to change sideboxes but cannot see much in the way of banner definition?

Thanks in advance

Dave

Zen Newbie: www.wickedstyling.com]. Thanks All.

3 Mar 2009, 10:45 AM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

What you need is to find the sidebox id. The simplest way is to look in view source, if you don't have web developer tools.

Then you can add to your stylesheet

#yourSideBoxId {what: ever;}

and change display characteristics for that box.

3 Mar 2009, 7:03 PM
#15
dave010880 avatar

dave010880

New Zenner

Join Date:
Mar 2008
Location:
UK
Posts:
26
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

Hi Glenn,

Cheers for the reply, I'll have a look in to that and see if I can desipher the code to make some changes!

If I fail I'll no doubt be back!!!

Regards

Dave

Zen Newbie: www.wickedstyling.com]. Thanks All.

3 Dec 2009, 12:46 PM
#16
dan123 avatar

dan123

New Zenner

Join Date:
Apr 2008
Posts:
82
Plugin Contributions:
0

Re: Blank Sidebox, no borders or header, just blank

Hi all,
I have a hard time putting php code into a blank side box. I am not very familiar with php, so excuse me for my dumb questions. I want to show my blog categories in sidebox. but can not figure out what I'm doing wrong, hre is code:
$content .= '
require('/wordpress/wp-blog-header.php')
wp_list_categories()';

I only need those two lines.
Does anybody know what's wrong?
Thank You!!!!!

3 Dec 2009, 5:22 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Blank Sidebox, no borders or header, just blank

PHP statements need to end with a semicolon ;

Also, nested quotes will break your string. You need to either use double quotes inside a single-quoted string like this, or escape the single quotes in the string content.

$content .= 'require("/wordpress/wp-blog-header.php");
wp_list_categories();';

$content .= 'require(\'/wordpress/wp-blog-header.php\');
wp_list_categories();';
```You may need to wrap <php> tags around the content:```php
<?php //ignore this, it's just to get the code to show properly in this window


$content .= '<?php require(\'/wordpress/wp-blog-header.php\');
wp_list_categories(); ?>';