Page 6 of 19 FirstFirst ... 4567816 ... LastLast
Results 51 to 60 of 189
  1. #51
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by CnTGifts View Post
    i want to hide the category sidebox untill a user logs in

    Is that possible
    It's not only possible, it's straightforward. You would make an over-ride copy of the includes/modules/sideboxes/categories.php file and then wrap all the executable statements inside this condition
    if ($_SESSION['customer_id']) {

    ...

    }
    Last edited by kuroi; 11 Apr 2008 at 02:48 PM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #52
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by hharper1321 View Post
    I have created, using the editable sidebax contribution, a rotating set of vintage ads and other images on my antiques site and I would like for this sidebox to be active ONLY on the main page
    This is also straightforward. In your modules/sideboxes/editable_sidebox.php file, change

    $show_editable_sidebox = true;

    to

    $show_editable_sidebox = $this_is_home_page ? true : false;
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #53
    Join Date
    Mar 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by kuroi View Post
    This is also straightforward. In your modules/sideboxes/editable_sidebox.php file, change

    $show_editable_sidebox = true;

    to

    $show_editable_sidebox = $this_is_home_page ? true : false;
    Thanks for the help, kuroi!
    H

  4. #54
    Join Date
    May 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Hi,
    I use the blank sidebox for a legend, that I'd like to show only on the product-listing and product-description pages.
    But how...
    Thanks in advance, anna

  5. #55
    Join Date
    Feb 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by anniti View Post
    Hi,
    I use the blank sidebox for a legend, that I'd like to show only on the product-listing and product-description pages.
    But how...
    Thanks in advance, anna
    My question is similar to this one. I want to only show the categories sidebox on the product pages.

    Thanks!

  6. #56
    Join Date
    May 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    hi SHokuf,

    I did find a solution, probably not very elegant, but it works:

    // test if box should display

    $show_my_sidebox = false;
    if ($_GET['main_page']=='product_info' or $_GET['main_page']=='index') {
    $show_my_sidebox = true;
    }
    if ($this_is_home_page) {
    $show_my_sidebox = false;
    }


    The HomePage is also an indexpage, that's why I had to add the second part.
    regards, anna

  7. #57
    Join Date
    May 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    sorry, I got confused,
    for the productpages, you'd need:


    // test if box should display

    $show_my_sidebox = false;
    if ($_GET['main_page']=='product_info') {
    $show_my_sidebox = true;
    }

  8. #58
    Join Date
    Feb 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Awesome! That worked!

    Thanks so much!

  9. #59
    Join Date
    Aug 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Ok, so if I wanted to show a different sidebox depending on the base category the user was viewing, how would i find out the category and set the sidebox to display (rather than setting it not to display)?

  10. #60
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Sorry if has been answered before.

    I want to Keep the Sidebars open ONLY for the main page and then turned off for all other pages.

    How can I do that?

 

 
Page 6 of 19 FirstFirst ... 4567816 ... LastLast

Similar Threads

  1. v150 Any way to show/hide payment modules dynamically based on order total?
    By Limitless in forum Addon Payment Modules
    Replies: 2
    Last Post: 27 Sep 2012, 03:22 PM
  2. Show/Hide INformation Sidebox based on page
    By atracksler in forum Basic Configuration
    Replies: 12
    Last Post: 17 Jun 2011, 04:21 PM
  3. Show/Hide sideboxes based on page
    By monkeyjr47906 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2007, 07:25 PM
  4. Hide sideboxes on main page
    By disciple in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 11 Jan 2007, 07:38 AM

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