Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Define Pages, EZ Pages & SSL

    Using Zen 138a,

    Here is what I have. I have created a survey form based on the Special Orders form contrib. I link to the survey from 2 places in my site.

    The first is from an EZ page using the internal link url (index.php?main_page=survey) option and is checked to use SSL. This works.

    The other is from a link in a define page. The link in the define page is a relitive link (href="index.php?main_page=survey") like that in the EZ page.

    Here is my question,
    Other then making the link absolute
    (href="https://mydoamin.com/index.php?main_page=survey"), is there a pram (ssl=yes) I can pass on the url or other method to force a zen page to be SSL?

    Thank you!
    Experience is what you get when you don’t get what you want…

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Define Pages, EZ Pages & SSL

    Here is my question,
    Other then making the link absolute
    (href="https://mydoamin.com/index.php?main_page=survey"), is there a pram (ssl=yes) I can pass on the url or other method to force a zen page to be SSL?
    Why would you want this page to be in SSL? It is not a login or payment type of page
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Define Pages, EZ Pages & SSL

    We ask for personal information and found, on our older static site, more participation in the survey when it is secure.

    I also may have use for this ability down the road...
    Experience is what you get when you don’t get what you want…

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Define Pages, EZ Pages & SSL

    I understand your preference...and if this were a php page I would have the answer but I do not think you can include php code in an ezpage??

    But this is just a link to some other file "survey" correct?
    What form is the "survey" page? php or html?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Define Pages, EZ Pages & SSL

    Actually, the EZ page link to the survey works with SSL, it is the link to the survey from a Define page that I need to force SSL.

    I can place php code in define pages with no problem! What is your suggested code?

    Again, I wish to do this with out having to use absolute paths. The primary reason for this is the difference between my development store and our live store. I would have to change all absolute paths before moving to the live store...
    Experience is what you get when you don’t get what you want…

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,247
    Plugin Contributions
    58

    Default Re: Define Pages, EZ Pages & SSL

    This workaround is designed to have a element in the head for ONLY the pages you define... so like page_2 for example.

    http://www.zen-cart.com/index.php?ma...oducts_id=1235

    So the next step is simple... in the code file include put this...

    Code:
    <meta http-equiv="refresh" content="0;url=https://mydomain.com/page_2.html">
    Bingo, redirect just that page to always SSL.

    =-)

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Define Pages, EZ Pages & SSL

    I can place php code in define pages with no problem!
    You still did not specify if this is a php page but as you state drfinrd page and that this is the path
    Code:
    index.php?main_page=survey
    I will assume that all the other things in other places are entered for this page
    The following is modified from tpl_login_default.php
    Code:
    <?php echo zen_draw_form('create', zen_href_link(FILENAME_SURVEY, '', 'SSL')); ?>
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Define Pages, EZ Pages & SSL

    Thanks for the suggestions kobra and mprough!

    kobra,

    You got me going in the correct direction with the zen_href_link function! I knew it was just that easy!

    I used that for generating the SSL link in both the Define page link to the form and in the actual form tag submission link to keep it in SSL!

    And yes, the survey form is php, sorry...

    Zen Forum Members Rock!
    Experience is what you get when you don’t get what you want…

 

 

Similar Threads

  1. Define Define Pages / Information pages Manager needed
    By thunderesl in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jun 2010, 02:42 PM
  2. Define Pages Links & Location
    By hungoveragain in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Sep 2009, 03:19 PM
  3. Define Pages Editor & Adding External Links
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jun 2007, 02:05 AM
  4. index_default & define pages(4+ define pages on frontpage?)
    By mrmarcus66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 07:38 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