Guest Posted April 2, 2007 Posted April 2, 2007 Hey Guys, Been trailing through the forums and i know i am probually missing the thread about this but what i am trying to do is add the text forums to my information box and then have the link lead to my forum www.freeforums.com but as of yet have been unsuccessful. I can add the text already to connect to other pages throughout the site but cannot for the life of me work out how to add an hyperlink. Sorry if i sound dumb but very little knowledge on php so trying to learn :(. I would be greatful if anyone could please help me. Many Thanks
Jack_mcs Posted April 2, 2007 Posted April 2, 2007 Add this before the last link '<a href="http://www.freeforums.com" target="_blank">forums</a><br>' . Jack 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
Guest Posted April 3, 2007 Posted April 3, 2007 Add this before the last link '<a href="http://www.freeforums.com" target="_blank">forums</a><br>' . Jack Thanks mate :)
Guest Posted April 3, 2007 Posted April 3, 2007 Ok guys, Thanks for the advice on the first part.. did exactually what you said and now it displays a syntex error and loses half the page.. I reverted back to my old page and it is all back to normal but still no link.. what am i doing wrong???? Please find below my information.php as it is at present.. <?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) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' . '<a href="' . tep_href_link(FILENAME_BUSINESS) . '">' . BOX_INFORMATION_BUSINESS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SERVICES) . '">' . BOX_INFORMATION_SERVICES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Please can someone help as i am pulling my hair out :(
Bushmaster Posted April 3, 2007 Posted April 3, 2007 Ok guys, Thanks for the advice on the first part.. did exactually what you said and now it displays a syntex error and loses half the page.. I reverted back to my old page and it is all back to normal but still no link.. what am i doing wrong???? Please find below my information.php as it is at present.. <?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) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' . '<a href="' . tep_href_link(FILENAME_BUSINESS) . '">' . BOX_INFORMATION_BUSINESS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SERVICES) . '">' . BOX_INFORMATION_SERVICES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Please can someone help as i am pulling my hair out :( Yes that would cause an error in that file they gave you the HTML version. Here read this: http://www.oscommerce.info/kb/osCommerce/C..._Area/Boxes/262
Recommended Posts
Archived
This topic is now archived and is closed to further replies.