Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2008
    Posts
    53
    Plugin Contributions
    0

    Default Blank Sidebox Header

    I have made a few sidboxes from the blank_sidebox mod without an problems.

    This time I only want the header of the sidebox to shown on the site. It that possible?

    I uploaded two files;

    includes/languages/english/extra_definitions/CUSTOM/box-name_sidebox_defines.php

    includes/modules/sideboxes/CUSTOM/box-name_sidebox.php

    When I turned the box on it broke the site in as much as the main page wouldn't load. So I turned the new box off and I uploaded the third file to;

    includes/templates/CUSTOM/sideboxes/tpl_box-name_sidebox.php

    The new sidebox now displays. The tpl_box-name_sidebox.php file doesn't have any content. But it gives me a slight gap under the header where the content should go.

    Does anybody know how to remove this gap? I only want the header to show. It's just a bit of information that can fit in the header, so I don't want the rest of the box to show.

    Thank you.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Blank Sidebox Header

    You should be able to turn it off in the stylesheet using something like #blanksideboxContent {display:none;}

  3. #3
    Join Date
    Feb 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: Blank Sidebox Header

    I worked out how to do it. Problem solved.

  4. #4
    Join Date
    Feb 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: Blank Sidebox Header

    Quote Originally Posted by stevesh View Post
    You should be able to turn it off in the stylesheet using something like #blanksideboxContent {display:none;}
    If I do it that way, won't it stop all my other custom sideboxes from displaying their content?

    I removed three lines of code from my tpl file. I removed the following;

    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

    and near the end of the code I removed;

    $content .= '</div>';

    And now I just have the header of the sidebox without a gap.

    Thanks anyway!

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Blank Sidebox Header

    Quote Originally Posted by blue-grape View Post
    If I do it that way, won't it stop all my other custom sideboxes from displaying their content?
    No, with multiple blank sideboxes, each should have its own name, so you'd turn off blanksidebox1Content but not blanksidebox2Content.

    Your way works, too but I prefer using CSS when I can rather than modifying files.

  6. #6
    Join Date
    Feb 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank Sidebox Header

    Hi, how can I remove the "X" close function in sidebox header?

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Blank Sidebox Header

    lovefury - It's always better to start a new thread rather than adding an unrelated question to an existing thread. You can start a new thread by going to the forum homepage, select a forum area and click on 'New Thread'.

    That function is part of your template, or is an add-on. We'd need a link to your site to know for sure.

  8. #8
    Join Date
    Feb 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank Sidebox Header

    My bad :). I've created a new thread "How to disable close function in sidebox". Also included the link. Thanks for the quick response.

  9. #9
    Join Date
    Feb 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank Sidebox Header

    Hi stevesh,
    thanks for the clue. already made the changes. ur right! its on the template. I thought all along it was on stylesheet only.

  10. #10
    Join Date
    Feb 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: Blank Sidebox Header

    Quote Originally Posted by stevesh View Post
    No, with multiple blank sideboxes, each should have its own name, so you'd turn off blanksidebox1Content but not blanksidebox2Content.
    Now I see what you mean. Being a newbie I though you meant to copy your original CSS code which didn't specify a certain sidebox to turn off, so I would have turned them all off.

    Sometime we newbies need the code and the explanation as you placed it above before we understand.

    Thank you. I do appreciate you taking the time to explain it to me.

 

 

Similar Threads

  1. Blank Sidebox v2.0 Header won't change
    By Tamuren in forum Templates, Stylesheets, Page Layout
    Replies: 30
    Last Post: 12 Jul 2011, 02:55 PM
  2. Blank Sidebox, no borders or header, just blank
    By chris32882 in forum General Questions
    Replies: 16
    Last Post: 3 Dec 2009, 06:22 PM
  3. How do I change the header image of blank sidebox?
    By saminc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2009, 08:53 AM
  4. Blank Sidebox Mod - remove a blank sidebox
    By PJD in forum Basic Configuration
    Replies: 4
    Last Post: 14 Mar 2008, 02:09 PM
  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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR