Results 1 to 10 of 16

Threaded View

  1. #1
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Idea or Suggestion Hiding Sidebox content

    @ ideasgirl

    Cool I'll check out the box, I take it it's available in the download section...

    Here is a little change I made it checks the two criteria you need logged in and ssl connected ( It think )
    As I am not at home, stuck at work and skiving an extra long break, shhhh don't talk load.
    Anyway here's the update to the answer.

    Code:
    <?php // hide If customer logged in and SSL connection true
    
    // include("/includes/application_top.php"); really not sure if this is needed as should be called in header
    
    // un-comment these two line if it's not called already
    
    if (isset($_SESSION['customer_id']== > 0 ) && ($_SERVER['HTTPS']=='on')){
    
    echo '<div class="clearBoth">';
    
    echo ' whatever happens when login true and ssl true ';
    echo '</div>';
    }
    
    // show If customer not logged in and SSL connection false
    else {
    
    echo '<div class="clearBoth">';
    
    echo ' whatever happens when login false and ssl false like your normal sidebox stuff ';
    echo '</div>';
    
    } // End if
    ?>
    You could run this to show two different box contents or the message me for visiters and a nice graphic for logged in secure customers. I am sure you have probably thought of all that allready.

    Anyhoo! back to work for me.
    Last edited by BillyBoyle; 13 Jun 2012 at 11:27 PM. Reason: Spelling, probably still errors

 

 

Similar Threads

  1. v150 Help hiding a sidebox from certain pages
    By ray-the-otter in forum General Questions
    Replies: 3
    Last Post: 1 May 2013, 01:07 PM
  2. putting ezpage content in sidebox or editing sidebox from admin
    By nilsen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jan 2010, 09:30 PM
  3. Hiding subcat from category sidebox
    By Tim M in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Jan 2009, 11:51 PM
  4. Sidebox Content Pushed Sideways in IE for Aweber Sidebox
    By lindasdd in forum Basic Configuration
    Replies: 2
    Last Post: 17 Dec 2008, 03:48 PM
  5. changing sidebox name and content for that sidebox
    By zc-newbie in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Aug 2006, 06:13 AM

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