Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

    Default 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

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

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

  3. #3
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

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

    Quote Originally Posted by gjh42 View Post
    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

  4. #4
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

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

    Quote Originally Posted by chris32882 View Post
    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..


    PHP Code:
      $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

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

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

    PHP Code:
    $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.

  6. #6
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

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

    Quote Originally Posted by gjh42 View Post
    PHP Code:
    $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

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default 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 Code:
    $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>'

    Last edited by gjh42; 22 Dec 2008 at 03:07 AM.

  8. #8
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

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

    Quote Originally Posted by gjh42 View Post
    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 Code:
    $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
    Have you visited the (un-official) Zen Cart IRC channel yet?
    irc.freenode.net ##zencart

  9. #9
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

    Default 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

    PHP Code:
    <!-- 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

    PHP Code:
    <!-- \' 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

  10. #10
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    336
    Plugin Contributions
    1

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

    tpl_livehelp_sidebox.zip

    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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. A second blank sidebox...
    By nerdgeek in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Oct 2008, 11:32 PM
  2. blank sidebox
    By mthem2003 in forum Basic Configuration
    Replies: 11
    Last Post: 26 Jun 2008, 06:13 PM
  3. Blank Sidebox Mod - remove a blank sidebox
    By PJD in forum Basic Configuration
    Replies: 4
    Last Post: 14 Mar 2008, 02:09 PM
  4. Blank sidebox
    By scorpio4646 in forum General Questions
    Replies: 9
    Last Post: 16 Dec 2007, 10:26 AM
  5. Blank sidebox header link
    By fantasticals in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Apr 2007, 04:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •