Guest Posted June 19, 2010 Posted June 19, 2010 I have installed osCommerce into a folder and am using a template. I quite like the links provided but wish to change one to link back to site default.html, and another to a php page, is this possible? I have managed to change the images and have fiddled around with the codes but can't get it to work. Below is the code for the 1st 4 buttons, 1 and 4 are ok but "About me" would go to ../default.html and the "Originals to originals.php. Can someone help please? <td width="139"><a title="<?php echo STORE_NAME;?>" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" ><?php echo tep_image_button("../../../../../images/button1.gif", "Home"," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="136"><a title="<?php echo about_me.php;?>" href=";?>"<?php echo tep_href_link('about_me.php'); ?>" ><?php echo tep_image_button("../../../../../images/button2.gif", "About_Me"," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="137"><a title="<?php echo originals.php;?>" href="; ?>" ><?php echo tep_image_button("../../../../../images/button3.gif","Originals"," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="133"><a title="<?php echo BOX_HEADING_SPECIALS;?>" href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>" ><?php echo tep_image_button("../../../../../images/button4.gif", BOX_HEADING_SPECIALS," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> Thank you
♥geoffreywalton Posted June 20, 2010 Posted June 20, 2010 Try looking here http://www.w3schools.com/html/html_links.asp You could start by replacing <a title="<?php echo about_me.php;?>" with <a title="about_me.php" Then space out the commands so you can compare more easily <td width="139"> <a title="<?php echo STORE_NAME;?>" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" > <?php echo tep_image_button("../../../../../images/button1.gif", "Home"," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> <td width="136"> <a title="<?php echo about_me.php;?>" href=";?>"<?php echo tep_href_link('about_me.php'); ?>" > <?php echo tep_image_button("../../../../../images/button2.gif", "About_Me"," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> <td width="137"> <a title="<?php echo originals.php;?>" href="; ?>" > <?php echo tep_image_button("../../../../../images/button3.gif","Originals"," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> <td width="133"> <a title="<?php echo BOX_HEADING_SPECIALS;?>" href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>" > <?php echo tep_image_button("../../../../../images/button4.gif", BOX_HEADING_SPECIALS," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> Enjoy G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted June 21, 2010 Posted June 21, 2010 Thanks G, I followed your advice and got "originals" working but I don't have an about_me.php I want to link to the main default page. Do I have to rename that page? I don't have any php code on it. I have checked out w3schools, that is usually my first stop and then every other tutorial I can find. I have been working on this for 3 weeks before asking for help as I need to be able to work with php, but I am stumped and can't go any further. I can cancel the images altogether and just go with text links but I wanted to perservere. Another thing that confuses me is that the code in the header for the images goes through 5 levels to get to images but it is in the "includes" folder which is only one down from "images", does that mean I need to go through 6 levels to get back to the main site? I can't find the php file that calls the header into play. Robyn Try looking here http://www.w3schools.com/html/html_links.asp You could start by replacing <a title="<?php echo about_me.php;?>" with <a title="about_me.php" Then space out the commands so you can compare more easily <td width="139"> <a title="<?php echo STORE_NAME;?>" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" > <?php echo tep_image_button("../../../../../images/button1.gif", "Home"," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> <td width="136"> <a title="<?php echo about_me.php;?>" href=";?>"<?php echo tep_href_link('about_me.php'); ?>" > <?php echo tep_image_button("../../../../../images/button2.gif", "About_Me"," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> <td width="137"> <a title="<?php echo originals.php;?>" href="; ?>" > <?php echo tep_image_button("../../../../../images/button3.gif","Originals"," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> <td width="133"> <a title="<?php echo BOX_HEADING_SPECIALS;?>" href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>" > <?php echo tep_image_button("../../../../../images/button4.gif", BOX_HEADING_SPECIALS," onmouseover=\"button_act(this)\" onmouseout=\"button_pas(this)\""); ?> </a> </td> Enjoy G
Guest Posted June 22, 2010 Posted June 22, 2010 Thanks again G for your advice, played around with it and got it working. Robyn
Recommended Posts
Archived
This topic is now archived and is closed to further replies.