SpinerC Posted February 27, 2007 Posted February 27, 2007 Is there more then one place I have to add the 'NONSSL' in codes to stop my links from being encoded on my site? I am in the process of rebuilding my site and added in the links for pages in the Information Box on the Left and whala! It is all encrypted! lol! Oh the joy :D In the "information.php" file I DID add the 'NONSSL' code into the link definitions but, it didn't seem to help. The code looks like this: '<a href="' . tep_href_link(FILENAME_SHIPPING. '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . And I did that for each link in the file. Here is my site if you want to take a look: www.diamondsahara.ca Thank you! Sincerely Charlene :)
Guest Posted February 27, 2007 Posted February 27, 2007 Is there more then one place I have to add the 'NONSSL' in codes to stop my links from being encoded on my site? I am in the process of rebuilding my site and added in the links for pages in the Information Box on the Left and whala! It is all encrypted! lol! Oh the joy :D In the "information.php" file I DID add the 'NONSSL' code into the link definitions but, it didn't seem to help. The code looks like this: '<a href="' . tep_href_link(FILENAME_SHIPPING. '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . And I did that for each link in the file. Here is my site if you want to take a look: www.diamondsahara.ca Thank you! Sincerely Charlene :) Hi Charlene - ..................... sorry, but ................ what is your question ? I don't get it. You should not have to change any of the default links within the site to provide ssl. Simply update your : includes/configure.php file and the site takes care of the rest. Something is seriously wrong in your info box right now! http://www.diamondsahara.ca/ Corrie
Velveeta Posted February 27, 2007 Posted February 27, 2007 Hi Charlene - ..................... sorry, but ................ what is your question ? I don't get it.You should not have to change any of the default links within the site to provide ssl. Simply update your : includes/configure.php file and the site takes care of the rest. Something is seriously wrong in your info box right now! http://www.diamondsahara.ca/ Corrie Yeah I would call that seriously wrong :) Charlene, once you make that change to your configure.php file, the only links you should ever have to edit are the ones you want to turn SSL *on* for, not off... If you don't send any variable in the 'NONSSL' slot to that function call, it defaults to NONSSL, unless you've changed that... The only links you'll need to change are the ones that aren't already set to send 'SSL' for that variable, that you do want to be SSL, in which case you'd send that argument... Richard. Richard Lindsey
SpinerC Posted February 27, 2007 Author Posted February 27, 2007 LOL Thanks for the responses and I can see, you see my problem.... My site went totally kapooofie over the weekend after being moved from one server to a secure server. All because of the SSL Certificate move, which in my opinion caused all my problems. That's another story :) Anyhow, because I lost so much of my site, only had the important things backed up like the entire catalogue minus about 30 items. I didn't have all the individual pages backed up yet because, I was still "tweaking" like colors etc... So today, I go in to set up the links to the other pages again and whala! They all encrypted!! LOL! Nice to know it works but, I would like people to be able to get to the other pages on the site. I added the codes without the NONSSL and that is what I got, so then I added the NONSSL and it didn't make any difference. The configure files are all set to what they are suppose to be. Any clue why it is grabbing those links in the information box and encrypting them? Thanks! Char :)
Velveeta Posted February 27, 2007 Posted February 27, 2007 LOL Thanks for the responses and I can see, you see my problem.... My site went totally kapooofie over the weekend after being moved from one server to a secure server. All because of the SSL Certificate move, which in my opinion caused all my problems. That's another story :) Anyhow, because I lost so much of my site, only had the important things backed up like the entire catalogue minus about 30 items. I didn't have all the individual pages backed up yet because, I was still "tweaking" like colors etc... So today, I go in to set up the links to the other pages again and whala! They all encrypted!! LOL! Nice to know it works but, I would like people to be able to get to the other pages on the site. I added the codes without the NONSSL and that is what I got, so then I added the NONSSL and it didn't make any difference. The configure files are all set to what they are suppose to be. Any clue why it is grabbing those links in the information box and encrypting them? Thanks! Char :) Not without seeing your information.php file, and possibly your tep_href_link function... And also your includes/languages/english.php file so we can get the BOX_* values that are supposed to be displayed in that information box... Richard. Richard Lindsey
SpinerC Posted February 27, 2007 Author Posted February 27, 2007 Not without seeing your information.php file, and possibly your tep_href_link function... And also your includes/languages/english.php file so we can get the BOX_* values that are supposed to be displayed in that information box... Richard. LOL you don't want much now do you Richard :P I am not sure where I can find the tep_link function but..... here is what I do know. I cut the files down, left the file name at the top instead of all the codes cause me things me knows where ya is lookin :) <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ / information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_QUESTION_AND_ANSWER', 'Q & A'); define('BOX_INFORMATION_VIP_PARTIES', 'V.I.P Parties'); define('BOX_INFORMATION_PRIVACY', 'Privacy'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); define('BOX_INFORMATION_LINKS', 'Links'); define('BOX_INFORMATION_TIPSANDTERMS', 'Tips & Terminology'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); +++++++++++++++++++++++++++++++++++++++++++++++ <?php /* $Id: filenames.php,v 1.4 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_ACCOUNT', 'account.php'); define('FILENAME_ACCOUNT_EDIT', 'account_edit.php'); define('FILENAME_ACCOUNT_HISTORY', 'account_history.php'); define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php'); define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php'); define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php'); define('FILENAME_ADDRESS_BOOK', 'address_book.php'); define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php'); define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php'); define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php'); define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php'); define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php'); define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php'); define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php'); define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php'); define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php'); define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php'); define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php'); define('FILENAME_CONTACT_US', 'contact_us.php'); define('FILENAME_COOKIE_USAGE', 'cookie_usage.php'); define('FILENAME_CREATE_ACCOUNT', 'create_account.php'); define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DOWNLOAD', 'download.php'); define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php'); define('FILENAME_LINKS', 'links.php'); define('FILENAME_LOGIN', 'login.php'); define('FILENAME_LOGOFF', 'logoff.php'); define('FILENAME_NEW_PRODUCTS', 'new_products.php'); define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php'); define('FILENAME_PRIVACY', 'privacy.php'); define('FILENAME_PRODUCT_INFO', 'product_info.php'); define('FILENAME_PRODUCT_LISTING', 'product_listing.php'); define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php'); define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php'); define('FILENAME_PRODUCTS_NEW', 'products_new.php'); define('FILENAME_REDIRECT', 'redirect.php'); define('FILENAME_QUESTION_AND_ANSWER', 'questions.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SHIPPING_&_RETURNS', 'shipping.php'); define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); define('FILENAME_TIPS_&_TERMINOLOGY', 'tipsandterms.php'); define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); define('FILENAME_VIP_PARTIES', 'vip_parties.php'); ?> Let me know what I missed :) Thanks! Sincerely Char :)
Velveeta Posted February 27, 2007 Posted February 27, 2007 <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url=http://www.oscommerce.com]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ / information box text in includes/boxes/information.php Well, this should be throwing a parse error I would think, a single slash instead of double... Buuuuuut if it's happy with that, so am I :D I still need to see the includes/boxes/information.php file, and your tep_href_link function can be found at the top of includes/functions/html_output.php Richard. Richard Lindsey
SpinerC Posted February 27, 2007 Author Posted February 27, 2007 LOL you don't want much now do you Richard :P I am not sure where I can find the tep_link function but..... here is what I do know. I cut the files down, left the file name at the top instead of all the codes cause me things me knows where ya is lookin :) <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ / information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_QUESTION_AND_ANSWER', 'Q & A'); define('BOX_INFORMATION_VIP_PARTIES', 'V.I.P Parties'); define('BOX_INFORMATION_PRIVACY', 'Privacy'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); define('BOX_INFORMATION_LINKS', 'Links'); define('BOX_INFORMATION_TIPSANDTERMS', 'Tips & Terminology'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); +++++++++++++++++++++++++++++++++++++++++++++++ <?php /* $Id: filenames.php,v 1.4 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_ACCOUNT', 'account.php'); define('FILENAME_ACCOUNT_EDIT', 'account_edit.php'); define('FILENAME_ACCOUNT_HISTORY', 'account_history.php'); define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php'); define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php'); define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php'); define('FILENAME_ADDRESS_BOOK', 'address_book.php'); define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php'); define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php'); define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php'); define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php'); define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php'); define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php'); define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php'); define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php'); define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php'); define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php'); define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php'); define('FILENAME_CONTACT_US', 'contact_us.php'); define('FILENAME_COOKIE_USAGE', 'cookie_usage.php'); define('FILENAME_CREATE_ACCOUNT', 'create_account.php'); define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DOWNLOAD', 'download.php'); define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php'); define('FILENAME_LINKS', 'links.php'); define('FILENAME_LOGIN', 'login.php'); define('FILENAME_LOGOFF', 'logoff.php'); define('FILENAME_NEW_PRODUCTS', 'new_products.php'); define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php'); define('FILENAME_PRIVACY', 'privacy.php'); define('FILENAME_PRODUCT_INFO', 'product_info.php'); define('FILENAME_PRODUCT_LISTING', 'product_listing.php'); define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php'); define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php'); define('FILENAME_PRODUCTS_NEW', 'products_new.php'); define('FILENAME_REDIRECT', 'redirect.php'); define('FILENAME_QUESTION_AND_ANSWER', 'questions.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SHIPPING_&_RETURNS', 'shipping.php'); define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); define('FILENAME_TIPS_&_TERMINOLOGY', 'tipsandterms.php'); define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); define('FILENAME_VIP_PARTIES', 'vip_parties.php'); ?> Let me know what I missed :) Thanks! Sincerely Char :) And this one sorry....... <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_Q&A, '', 'NONSSL') . '">' . BOX_INFORMATION_Q_&_A . '</a><br>' . '<a href="' . tep_href_link(FILENAME_VIP_PARTIES, '', 'NONSSL') . '">' . BOX_INFORMATION_V.I.P_PARTIES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'NONSSL') . '">' . BOX_INFORMATION_TIPS_&_TERMINOLOGY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Thanks! Sincerely Charlene :)
Velveeta Posted February 27, 2007 Posted February 27, 2007 Hmmmmmm, that all looks fine... and I think you can actually scratch the request for tep_href_link, otherwise, all of the links in your site would be garbled... I'll have to brainstorm on this one... Richard. Richard Lindsey
SpinerC Posted February 27, 2007 Author Posted February 27, 2007 LOL you don't want much now do you Richard :P I am not sure where I can find the tep_link function but..... here is what I do know. I cut the files down, left the file name at the top instead of all the codes cause me things me knows where ya is lookin :) <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ / information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_QUESTION_AND_ANSWER', 'Q & A'); define('BOX_INFORMATION_VIP_PARTIES', 'V.I.P Parties'); define('BOX_INFORMATION_PRIVACY', 'Privacy'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); define('BOX_INFORMATION_LINKS', 'Links'); define('BOX_INFORMATION_TIPSANDTERMS', 'Tips & Terminology'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); +++++++++++++++++++++++++++++++++++++++++++++++ <?php /* $Id: filenames.php,v 1.4 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_ACCOUNT', 'account.php'); define('FILENAME_ACCOUNT_EDIT', 'account_edit.php'); define('FILENAME_ACCOUNT_HISTORY', 'account_history.php'); define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php'); define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php'); define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php'); define('FILENAME_ADDRESS_BOOK', 'address_book.php'); define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php'); define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php'); define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php'); define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php'); define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php'); define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php'); define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php'); define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php'); define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php'); define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php'); define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php'); define('FILENAME_CONTACT_US', 'contact_us.php'); define('FILENAME_COOKIE_USAGE', 'cookie_usage.php'); define('FILENAME_CREATE_ACCOUNT', 'create_account.php'); define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DOWNLOAD', 'download.php'); define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php'); define('FILENAME_LINKS', 'links.php'); define('FILENAME_LOGIN', 'login.php'); define('FILENAME_LOGOFF', 'logoff.php'); define('FILENAME_NEW_PRODUCTS', 'new_products.php'); define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php'); define('FILENAME_PRIVACY', 'privacy.php'); define('FILENAME_PRODUCT_INFO', 'product_info.php'); define('FILENAME_PRODUCT_LISTING', 'product_listing.php'); define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php'); define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php'); define('FILENAME_PRODUCTS_NEW', 'products_new.php'); define('FILENAME_REDIRECT', 'redirect.php'); define('FILENAME_QUESTION_AND_ANSWER', 'questions.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SHIPPING_&_RETURNS', 'shipping.php'); define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); define('FILENAME_TIPS_&_TERMINOLOGY', 'tipsandterms.php'); define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); define('FILENAME_VIP_PARTIES', 'vip_parties.php'); ?> Let me know what I missed :) Thanks! Sincerely Char :) And this one sorry....... <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_Q&A, '', 'NONSSL') . '">' . BOX_INFORMATION_Q_&_A . '</a><br>' . '<a href="' . tep_href_link(FILENAME_VIP_PARTIES, '', 'NONSSL') . '">' . BOX_INFORMATION_V.I.P_PARTIES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'NONSSL') . '">' . BOX_INFORMATION_TIPS_&_TERMINOLOGY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Thanks! Sincerely Charlene :) And an Edit Add-on! lol!! :D Sorry read your reply after I posted........ Here is the other file you asked for, the whooooooooooooole thing ;) <?php /* $Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } return $link; } //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false; } } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $parameters = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); } =============================================== Just kidding, did see you only wanted the top but, not sure how far :)
jasonabc Posted March 4, 2007 Posted March 4, 2007 The problem you are having stems from 'bad' characters in your info box links which is causing this problem. I stripped all of them out and uploaded to my infobox in a test store and they worked fine. When I put all the 'bad' stuff back - it went crazy again. Have highlighted the bad stuff below - strip that out and you'll be away. $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_Q&A, '', 'NONSSL') . '">' . BOX_INFORMATION_Q_&_A . '</a><br>' . '<a href="' . tep_href_link(FILENAME_VIP_PARTIES, '', 'NONSSL') . '">' . BOX_INFORMATION_V.I.P_PARTIES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'NONSSL') . '">' . BOX_INFORMATION_TIPS_&_TERMINOLOGY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'); Links to SSL pages should just be 'SSL'. Links to non SSL pages should *not* be NONSSL. In fact - they simply take this format: <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
jasonabc Posted March 4, 2007 Posted March 4, 2007 Or actually - just copy and paste this in. You'll have to amend the references in /languages/english.php to match: $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'SSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'SSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_QA, '', 'SSL') . '">' . BOX_INFORMATION_Q_A . '</a><br>' . '<a href="' . tep_href_link(FILENAME_VIP_PARTIES, '', 'SSL') . '">' . BOX_INFORMATION_VIP_PARTIES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS, '', 'SSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'SSL') . '">' . BOX_INFORMATION_TIPS__TERMINOLOGY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'); Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
SpinerC Posted March 4, 2007 Author Posted March 4, 2007 The problem you are having stems from 'bad' characters in your info box links which is causing this problem. I stripped all of them out and uploaded to my infobox in a test store and they worked fine. When I put all the 'bad' stuff back - it went crazy again. Have highlighted the bad stuff below - strip that out and you'll be away. $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_Q&A, '', 'NONSSL') . '">' . BOX_INFORMATION_Q_&_A . '</a><br>' . '<a href="' . tep_href_link(FILENAME_VIP_PARTIES, '', 'NONSSL') . '">' . BOX_INFORMATION_V.I.P_PARTIES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'NONSSL') . '">' . BOX_INFORMATION_TIPS_&_TERMINOLOGY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'); Links to SSL pages should just be 'SSL'. Links to non SSL pages should *not* be NONSSL. In fact - they simply take this format: <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>
Velveeta Posted March 4, 2007 Posted March 4, 2007 Good catch Jason :) I couldn't spot the problem for the life of me, and didn't even think about the ampersands :D Richard. Richard Lindsey
SpinerC Posted March 4, 2007 Author Posted March 4, 2007 Thank you soooooooooo much ((((((((((((Jason)))))))))))) :wub: Now I seem to have one more problem lol! The links were showing up then this..... Parse error: parse error, unexpected $ in /includes/boxes/information.php on line 34 And there is no line 34 that I can see. ====================================== <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_QA, '', 'SSL') . '">' . BOX_INFORMATION_Q_A . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS, '', 'SSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_VIP_PARTIES, '', 'SSL') . '">' . BOX_INFORMATION_VIP_PARTIES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'SSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'SSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'SSL') . '">' . BOX_INFORMATION_TIPS_TERMS . '</a>); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> ============================================== Thanks again, your advice was right on the money!!! Sincerely Charlene :)
Velveeta Posted March 4, 2007 Posted March 4, 2007 '<a href="' . tep_href_link(FILENAME_TIPSANDTERMS, '', 'SSL') . '">' . BOX_INFORMATION_TIPS_TERMS . '</a>); This one I can actually help with :D You're missing an apostrophe at the end of the line above, where it says '</a>);, it should be '</a>'); Richard. Richard Lindsey
SpinerC Posted March 4, 2007 Author Posted March 4, 2007 This one I can actually help with :D You're missing an apostrophe at the end of the line above, where it says '</a>);, it should be '</a>'); Richard. (((((((((RICHARD))))))) :wub: LOL it was just so obvious that I couldn't see it! ;) And now for the last error LOL! can you believe this.. I think I have just been at this way too long! I have the BOX_INFORMATION_TIPS_TERMS showing through on the main page https://www.diamondsahara.ca Can you remind me why this happens? Thanks a bunch! Sincerely Charlene :)
Velveeta Posted March 4, 2007 Posted March 4, 2007 (((((((((RICHARD))))))) :wub: LOL it was just so obvious that I couldn't see it! ;) And now for the last error LOL! can you believe this.. I think I have just been at this way too long! I have the BOX_INFORMATION_TIPS_TERMS showing through on the main page https://www.diamondsahara.ca Can you remind me why this happens? Thanks a bunch! Sincerely Charlene :) Well, I don't see it when I check the page, so you may have gotten it resolved yet... But if you meant that the text BOX_INFORMATION_TIPS_TERMS was showing, instead of "Tips & Terms" or something, then you'd need to define that BOX_INFORMATION_TIPS_TERMS in your english.php file or something... Richard. Richard Lindsey
SpinerC Posted March 4, 2007 Author Posted March 4, 2007 Well, I don't see it when I check the page, so you may have gotten it resolved yet... But if you meant that the text BOX_INFORMATION_TIPS_TERMS was showing, instead of "Tips & Terms" or something, then you'd need to define that BOX_INFORMATION_TIPS_TERMS in your english.php file or something... Richard. Yep found and fixed! :) Thanks again to both of you for helping me, along with another fella behind the scenes :D Just two small things left.... one is a swf that I am trying to get into the Success page of the Cart system, didn't like sufer dude lol! And adding the time and changing the time to my location in the bottom footer.... I have that in a thread on here. Thanks again! Sincerely Char :)
SpinerC Posted March 4, 2007 Author Posted March 4, 2007 Well, I don't see it when I check the page, so you may have gotten it resolved yet... But if you meant that the text BOX_INFORMATION_TIPS_TERMS was showing, instead of "Tips & Terms" or something, then you'd need to define that BOX_INFORMATION_TIPS_TERMS in your english.php file or something... Richard. Yep found and fixed! :) Thanks again to both of you for helping me, along with another fella behind the scenes :D Just two small things left.... one is a swf that I am trying to get into the Success page of the Cart system, didn't like sufer dude lol! And adding the time and changing the time to my location in the bottom footer.... I have that in a thread on here. Thanks again! Sincerely Char :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.