Guest Posted November 7, 2005 Posted November 7, 2005 I have written a html doc and placed within php file in the privacy.php file. The browser is able to read the text fine (understands tag for underline bold etc) but wont follow the links that I have place within the text. The links are like "back to top" links and I have used html <a href=></a> and <a id=><a> tags. Will php not read this? Could someone suggest where i could get info on how to fix this
kgt Posted November 7, 2005 Posted November 7, 2005 Post the code you are trying to use. Contributions Discount Coupon Codes Donations
Guest Posted November 7, 2005 Posted November 7, 2005 Post the code you are trying to use. This is the entire file <?php /* $Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', '<a id="pot"><b>Privacy statement</b></a></h4> <b>Greatshades</b> appreciates the importance of your privacy especially when it comes to personal details. We would like you to feel confident in the way in which we deal with your information and security of this information. This page details our policies to security, data protection, and sharing of information. By accessing the <b>Greatshades</b> website you will be agreeing to these policies described.<br><ul> <lh>Privacy policies</lh> <li><a href="#section1">Type of information gathered</a><br></li> <li><a href="#section1.1">How secure is this information</a><br></li> <li><a href="#section1.2">Do we Share Information</a><br /></li> <li><a href="#section1.3">Can I access my information</a><br></li> <li><a href="#section1.4">Questions about our privacy policies</a><br /></li> <h4><a name="section1">Type of information gathered</a></h4> We gather certain information that is vital to process your orders and make your visit to our store as user friendly as possible. This information can be split into 2 types of information:<ol type="1"> <li><b>Information you supply us</b> such as the information that you supply to set up your account (name, address etc) certain of these fields are vital, and cerytain of these fields are optional and are used to optimise our service to you. This information can be access at any time by logging into your account.<br></li> <li><b>Information automatically generated by your computer</b>When you access any site your computer sends us information that allows you to view our site. This is vital information to help stop fraud.<br></li> <li><b>NOTE!</b>We do not store any Credit Card or payment details on our site. Altough we are protected by SSL (128 encrypted) we still feel that information as vital as this should pass through the hand of the profesional, hence all you payment details are handled though HSBC secure e payment. HSBC secure e payments conducts the transactions online on our behalf to ensure 100% safety.<br></li><br> <a href="#pot">Back to top</a> <h4 id="section1.1">How secure is this information</h4> We protect your personal information by using a Secured Security Layer(SSL) software which encrypts any information that we gather from you. As mentioned earlier we do not actualy store your payments details for extra security and altough that means inputing your Card details for each purpose we feel this is the most secure method, and only takes a fews seconds extra but gives you extra peace of mind.<br><br> <a href="#pot">Back to top</a><br> <h4 id="section1.2">Do we share information?</h4> The only information that is shared is with HSBC secure e payments. To optimise you shopping experience and minimize you checkout time we share your address details with HSBC to allow then to process any credit card transactions. We feel tha this is the most secure method of conducting payments as your card details are then never actually stored on any server. You will how ever have to imput these details for every payment. Other than this we share no datails with any other organisations.<br> <br> <a href="#pot">Back to top</a><br> <h4 id="section1.3">Can I access my information</h4> Yes at any time you may log on to your accout using your secure password and update or change any of the information that we store. Just click on the "my account button"<br> <br> <a href="#pot">Back to top</a><br> <h4 id="section1.4">Questions about our privacy policies</h4> For any queries about or privacy policies please email [email protected] on the link below.<br><br> <a href="mailto:[email protected]"><u><b>Email Greatshades</b></u></a><br> <br> <a href="#pot">Back to top</a> </ol> </ul>'); ?>
ecgbyme Posted November 8, 2005 Posted November 8, 2005 This is the entire file<?php /* $Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', '<a id="pot"><b>Privacy statement</b></a></h4> <b>Greatshades</b> appreciates the importance of your privacy especially when it comes to personal details. We would like you to feel confident in the way in which we deal with your information and security of this information. This page details our policies to security, data protection, and sharing of information. By accessing the <b>Greatshades</b> website you will be agreeing to these policies described.<br><ul> <lh>Privacy policies</lh> <li><a href="#section1">Type of information gathered</a><br></li> <li><a href="#section1.1">How secure is this information</a><br></li> <li><a href="#section1.2">Do we Share Information</a><br /></li> <li><a href="#section1.3">Can I access my information</a><br></li> <li><a href="#section1.4">Questions about our privacy policies</a><br /></li> <h4><a name="section1">Type of information gathered</a></h4> We gather certain information that is vital to process your orders and make your visit to our store as user friendly as possible. This information can be split into 2 types of information:<ol type="1"> <li><b>Information you supply us</b> such as the information that you supply to set up your account (name, address etc) certain of these fields are vital, and cerytain of these fields are optional and are used to optimise our service to you. This information can be access at any time by logging into your account.<br></li> <li><b>Information automatically generated by your computer</b>When you access any site your computer sends us information that allows you to view our site. This is vital information to help stop fraud.<br></li> <li><b>NOTE!</b>We do not store any Credit Card or payment details on our site. Altough we are protected by SSL (128 encrypted) we still feel that information as vital as this should pass through the hand of the profesional, hence all you payment details are handled though HSBC secure e payment. HSBC secure e payments conducts the transactions online on our behalf to ensure 100% safety.<br></li><br> <a href="#pot">Back to top</a> <h4 id="section1.1">How secure is this information</h4> We protect your personal information by using a Secured Security Layer(SSL) software which encrypts any information that we gather from you. As mentioned earlier we do not actualy store your payments details for extra security and altough that means inputing your Card details for each purpose we feel this is the most secure method, and only takes a fews seconds extra but gives you extra peace of mind.<br><br> <a href="#pot">Back to top</a><br> <h4 id="section1.2">Do we share information?</h4> The only information that is shared is with HSBC secure e payments. To optimise you shopping experience and minimize you checkout time we share your address details with HSBC to allow then to process any credit card transactions. We feel tha this is the most secure method of conducting payments as your card details are then never actually stored on any server. You will how ever have to imput these details for every payment. Other than this we share no datails with any other organisations.<br> <br> <a href="#pot">Back to top</a><br> <h4 id="section1.3">Can I access my information</h4> Yes at any time you may log on to your accout using your secure password and update or change any of the information that we store. Just click on the "my account button"<br> <br> <a href="#pot">Back to top</a><br> <h4 id="section1.4">Questions about our privacy policies</h4> For any queries about or privacy policies please email [email protected] on the link below.<br><br> <a href="mailto:[email protected]"><u><b>Email Greatshades</b></u></a><br> <br> <a href="#pot">Back to top</a> </ol> </ul>'); ?> See if this helps. The break <br> in most of your lines should be at the end after the closing italics </li> B)
Guest Posted November 8, 2005 Posted November 8, 2005 See if this helps. The break <br> in most of your lines should be at the end after the closing italics </li> B) Thanks but no change I still click the link and it takes me to the home page ??? Any clues You can check the site at greatshades.co.uk/privacy.php TRY IT YOURSELF!
2oldnslow Posted November 8, 2005 Posted November 8, 2005 Thanks but no change I still click the link and it takes me to the home page ??? Any clues You can check the site at greatshades.co.uk/privacy.php TRY IT YOURSELF! Have you tested the html code outside of the php code? Does it only fail within the php code? What version of php are you using? 2oldNslow I am no expert, I am only trying to help. Always, always back up.Use several browsers like IE, Opera, Firefox and Netscape to view your work.. The free tools work great to do osCommerce changes, PHP Designer 05/06, NoteTab Lite, SciTE, PSPad, XAMPP, Filezilla, 1st Page, osCommerce is #1!
Guest Posted November 8, 2005 Posted November 8, 2005 I have test the html code I wrote with coffecup html editor and it worked fine. I then cut and pasted the html into hapedit which is what I used to edit the php. My server uses php 4.3.9 thanks for your help
kgt Posted November 8, 2005 Posted November 8, 2005 Your links look like this: <a href="#pot"> That's it. It doesn't say what PAGE these anchors can be found. OSCommerce always put s a <base> tag at the beginning of each document. This tells your browser, "whenever I don't give an absolute url, assume the link is relative from this point." Your base href tag is: <base href="http://greatshades.co.uk/shop/"> Therefor, your links become http://greatshades.co.uk/shop/#pot Try instead: <a href="privacy.php#pot"> Contributions Discount Coupon Codes Donations
Guest Posted November 8, 2005 Posted November 8, 2005 Thanks kgt this worked! CANT EXPALIN TO YOU HOW GRATEFUL I AM. hours of searching tutorials about php and html. thank you again :thumbsup:
Guest Posted August 29, 2006 Posted August 29, 2006 Your links look like this: <a href="#pot"> That's it. It doesn't say what PAGE these anchors can be found. OSCommerce always put s a <base> tag at the beginning of each document. This tells your browser, "whenever I don't give an absolute url, assume the link is relative from this point." Your base href tag is: <base href="http://greatshades.co.uk/shop/"> Therefor, your links become http://greatshades.co.uk/shop/#pot Try instead: <a href="privacy.php#pot"> Hi, I realize this thread is a little old, but this post was such a tremendous help to me........I had to say thanks! :D
jonquil Posted December 14, 2006 Posted December 14, 2006 This was very helpful :) I would like to use this on products_info.php and I understand why it doesn't function with a typical HTML anchor. My products_info image is consistent at 300x300, centered, with the description below the image. On short-screen laptops, for example, one must scroll down to find the description. I have removed the Model reference below the Product Name and would like to do as follows: Camaro (Click for Description) [links to anchor] products_image [centered] addtocart.gif [centered] [anchor]This car has heated seats and a stock stereo. Price: 20,000 Attributes: Here is the code chunk from products_info.php: if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText"></span>'; } else { $products_name = $product_info['products_name']; } ?> <tr> <td><table border="0" width="98%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo $products_name; ?></td> <td class="pageHeading"></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '2'); ?></td> </tr> <tr> <td class="main"> <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="center"> <tr> <td valign="top" class="smallText"> <script language="javascript"><!-- document.write('<?php $product_substr = $product_info['products_image']; $product_substr = substr($product_substr,0, strlen($product_substr) - 7) . ".jpg"; echo tep_image(DIR_WS_IMAGES . $product_substr, addslashes($product_info['products_name'])); ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> <tr><td align="center"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> </tr> </table> <?php } ?> <p><?php echo stripslashes($product_info['products_description']); ?><br><br><font size="2"><b>Price: <?php echo $products_price; ?></b></font></p> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <table border="1" cellspacing="0" cellpadding="2"> <tr> <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td> Many thanks to anyone who can help me sort this out :) jon It's all just ones and zeros....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.