100asa Posted December 9, 2004 Posted December 9, 2004 I've installed this contribution http://www.oscommerce.com/community/contributions,1779 but only at this moment I see that when I visit the ask a question page, I lost my session ID. Thank you for help. Try it Quote Skype: centoasa Skype: remigioruberto
Jack_mcs Posted December 9, 2004 Posted December 9, 2004 I can't make out how to try it on that page. But my guess is that you are linking without using the tep_href_link function. This is required if you do not want to lose SID's. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
100asa Posted December 10, 2004 Author Posted December 10, 2004 How can I solve this problem of SID? Quote Skype: centoasa Skype: remigioruberto
Jack_mcs Posted December 11, 2004 Posted December 11, 2004 As I said, you need to use the tep_href_link function when you add a link. Pick a link you are having a problem with and then post the code for it here. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
100asa Posted December 11, 2004 Author Posted December 11, 2004 The code I've addedd to product_info is: <?php // ################### Ask a question ############## ?> <img src="<?php tep_image ('button_ask_a_question.gif', IMAGE_BUTTON_ASK_A_QUESTION); ?>"> <a href="ask_a_question.php?products_id=<?php echo $product_info['products_id']; ?>" ONMOUSEOVER="window.status='.<?php echo TEXT_QUESTION; ?> .'; return true"> <?php echo TEXT_QUESTION; ?> <b><?php echo $product_info['products_name']; ?></b></a> <?php // ################ end added ask a question ############ ?> Thank you Quote Skype: centoasa Skype: remigioruberto
Jack_mcs Posted December 11, 2004 Posted December 11, 2004 Yep, you are not using the tep function for the link so you are losing the SID. Try something like this for the link (I'll leave adding the mouse over to you) <?php echo '<a href="' . tep_href_link('ask_a_question.php?products_id=<?php echo $product_info['products_id']', '', 'NONSSL') . '">' . '<img border="0" src="button_ask_a_question.gif" alt="ALT TEXT GOES HERE" width="XX" height="YY"> ' . '</a>'; ?> Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.