Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    93
    Plugin Contributions
    0

    Default remove search sidebox from SSL pages

    is there a way to remove the search sidebox from SSL pages only?

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: remove search sidebox from SSL pages

    Quote Originally Posted by gorie View Post
    is there a way to remove the search sidebox from SSL pages only?
    This post may help (it is for the manufacturers sidebox though):

    http://www.zen-cart.com/forum/showpo...5&postcount=12

    You will need to make your changes accordingly to match the name of the sidebox you want to disable on your SSL pages

  3. #3
    Join Date
    Jan 2008
    Posts
    93
    Plugin Contributions
    0

    Default Re: remove search sidebox from SSL pages

    thanks,

    i tried adding this to

    /includes/modules/sideboxes/MY_TEMPLATE/search.php

    Code:
      // show only on non-secure pages
    
    switch ($request_type) {
    case ('SSL'):
    $show_search = false;
    break;
    case ('NONSSL'):
    $show_search = true;
    break;
    }
    but it doesn't work. not sure what i'm doing wrong.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: remove search sidebox from SSL pages

    Try this version

    Code:
    (.... header....)
    
      // show only on non-secure pages
    
    if ($request_type=='SSL') {
      $show_search = false;
    }
    
    (.... rest of the file ....)

  5. #5
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: remove search sidebox from SSL pages

    I am trying to implement this for the facebook_box mod. However I am unsure of what the name for $show_xxxx should be?

 

 

Similar Threads

  1. v154 Remove Search Box From the EZ PAGES HEADER
    By MillenniumJim in forum Customization from the Admin
    Replies: 3
    Last Post: 10 Mar 2015, 07:18 PM
  2. v139h Script to remove SSL from certain pages
    By cactusrunning in forum General Questions
    Replies: 9
    Last Post: 21 Mar 2013, 06:00 AM
  3. Image missing from Blank Sidebox on SSL pages
    By mewell in forum Basic Configuration
    Replies: 16
    Last Post: 24 Mar 2010, 12:53 AM
  4. Remove Search Heading from Sidebox?
    By fancypants in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 5 Oct 2007, 09:05 PM
  5. remove search header from sidebox
    By SysFix in forum General Questions
    Replies: 17
    Last Post: 25 Sep 2006, 09:03 PM

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