ahwake Posted April 4, 2008 Share Posted April 4, 2008 I installed and I am updating an oscommerce website that has a template. I have a “Create an Account” and “Log In” link on the footer of my store home page. I have been unable to get them back to a secure https. I do not know how they came out of this state in the first place. Could someone tell me how to reconfigure these two pages (or links), so that when they are clicked they go into a secure https state, instead of a regular http state? Thanks www.healingvineyard.com/store Link to comment Share on other sites More sharing options...
GemRock Posted April 4, 2008 Share Posted April 4, 2008 since you are talking about a template and theres so many of them, you would need to look at the footer part to see how the url links are generated. normally, it'd have to be generated using the tep_href_link function with SSL as one of the parameters. if your site's other parts such as the checkout process are using SSL already, then your configure.php is OK and the problem is more likely in the footer. Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
ahwake Posted April 7, 2008 Author Share Posted April 7, 2008 Thanks for your response. Could you tell me what should I change in the footer.php below to get those two pages secure? <?php /* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> </td></tr> </table> </td></tr> <tr><td class="bg"> <table cellpadding="0" cellspacing="0" border="0"> <tr><td valign="top" height="96" align="center"> <table border="0" cellspacing="0" cellpadding="0" style=" width:732px;"> <tr><td height="6" colspan="2"></td></tr> <tr><td width="732" height="83" class="bg6"> <table border="0" cellspacing="0" cellpadding="0" class="footer" style=" width:732px;"> <tr><td width="175" align="center"><?=tep_image(DIR_WS_IMAGES.'m22.gif')?></td> <td width="542" align="right"><a href="<?=tep_href_link('specials.php')?>"><?=BOX_HEADING_SPECIALS?></a> | <a href="<?=tep_href_link('advanced_search.php')?>"><?=BOX_SEARCH_ADVANCED_SEARCH?></a> | <a href="<?=tep_href_link('reviews.php')?>"><?=BOX_HEADING_REVIEWS?></a> | <? if (tep_session_is_registered('customer_id')) { ?><a href="<?=tep_href_link('account.php')?>"><?=HEADER_TITLE_MY_ACCOUNT?></a><? } else { ?><a href="<?=tep_href_link('create_account.php')?>"><?=HEADER_TITLE_CREATE_ACCOUNT?></a><? } ?> | <? if (tep_session_is_registered('customer_id')) { ?><a href="<?=tep_href_link('logoff.php')?>"><?=HEADER_TITLE_LOGOFF?></a><? } else { ?><a href="<?=tep_href_link('login.php')?>"><?=HEADER_TITLE_LOGIN?></a><? } ?><br style="line-height:1px;"><br style="line-height:3px;"><?=FOOTER_TEXT_BODY?> | <a href="<?=tep_href_link('privacy.php')?>"><?=BOX_INFORMATION_PRIVACY?></a> | <a href="<?=tep_href_link('conditions.php')?>"><?=BOX_INFORMATION_CONDITIONS?></a></td> <td width="15"></td></tr> </table> </td> <td width="11"><?php echo tep_draw_separator('spacer.gif', '11', '1'); ?></td></tr> <tr><td height="7" colspan="2"></td></tr> </table> </td></tr> </table> </td></tr> </table> since you are talking about a template and theres so many of them, you would need to look at the footer part to see how the url links are generated. normally, it'd have to be generated using the tep_href_link function with SSL as one of the parameters. if your site's other parts such as the checkout process are using SSL already, then your configure.php is OK and the problem is more likely in the footer. Ken Link to comment Share on other sites More sharing options...
germ Posted April 7, 2008 Share Posted April 7, 2008 To make the account, login and create account links go SSL, all you should have to do is replace these code snippets: tep_href_link('account.php') tep_href_link('login.php') tep_href_link('create_account.php') With tep_href_link('account.php', '', 'SSL') tep_href_link('login.php', '', 'SSL') tep_href_link('create_account.php', '', 'SSL') If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
ahwake Posted April 8, 2008 Author Share Posted April 8, 2008 Thanks very much that did it for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.