+ Reply to Thread
Results 1 to 3 of 3

Thread: Navigation Blocks

  1. #1
    Client Beery_Asst's Avatar
    Join Date
    Feb 2006
    Location
    Houston, TX
    Posts
    189
    Squirrelcart version
    v3.4.0

    Navigation Blocks

    I'm running 3.1.2.

    I have a navigation block that I want to only display when I am using a non-secure (http) graphic. How do I only display it when I am using http and not a https SSL connection? Is it possible to code something in the "Show When" field of the navigation block that would not display when a user logs in, etc?

    Thanks.

  2. #2
    Client coastalrugs's Avatar
    Join Date
    Dec 2007
    Posts
    171
    Squirrelcart version
    v3.2.0
    You should be able to use this conditional to flag for use on only secure pages, anything that connects with https:

    PHP Code:
    $SC['secure_page'] == 
    [I haven't tried it in Nav Blocks. I have used it in templates for the last several versions, currently working in 3.2.0]

  3. #3
    Client Beery_Asst's Avatar
    Join Date
    Feb 2006
    Location
    Houston, TX
    Posts
    189
    Squirrelcart version
    v3.4.0
    That worked, except I had to change the == 1 to a == 0 as I wanted to only show the content when there was not a secure webpage.

    In my NAV block, I created a "Go-Daddy" NAV block for their affiliate program. As it uses a hard coded http connection to the graphic on their website, it would generate a security warning when a user logged in.

    I figured that if a user logged in, he was going to buy and didn't need or perhaps didn't even care about the affiliate program. If he was browsing the site/catalog, then it may be something they would be interested.

    Thanks again.

    Beery

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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