superman123 Posted May 26, 2004 Posted May 26, 2004 Is there a way to add a Hyperlink inside the Information box? Where it has Shipping & Returns Privacy Notice Conditions of Use Contact Us I want to add a Link to it.. anyone help?
myriadgames Posted May 26, 2004 Posted May 26, 2004 The file you want to edit is information.php in the catalog->includes->boxes folder. Tim Webmaster www.myriadgames.com -So Many Games, So Little Time-
superman123 Posted May 26, 2004 Author Posted May 26, 2004 yes i know its information.php.. i'm asking what code i need to put in. THIS is what i have right now. $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => 'tep_href_link'MY WEBADDRESS'); But its not working.. i get a PHP error.. i need to know what code to put in the 'text' area. normal Hyperlinking using HTML doesn't work.
nrlatsha Posted May 26, 2004 Posted May 26, 2004 Add this: '<a href="' . tep_href_link(FILENAME_NEW_FILE) . '">' . BOX_NEW_FILE . '</a><br>' . Don't forget to add defines to filename.php and english.php. HTH *edit* You define FILENAME_NEW_FILE in filenames.php and BOX_NEW_FILE in english.php. 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
myriadgames Posted May 26, 2004 Posted May 26, 2004 You probably want something like this: $info_box_contents[] = array('text' => '<a href="http://www.whateveryouwant.com">' . BOX_INFORMATION_MY_WEBSITE . '</a>'); *edit* Beat me to it, Noel. Tim Webmaster www.myriadgames.com -So Many Games, So Little Time-
nrlatsha Posted May 26, 2004 Posted May 26, 2004 :P 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
superman123 Posted May 26, 2004 Author Posted May 26, 2004 i KIND of get what your saying.. but still confused I'll just tell you what i want to do i want that hyperlink to be a direct link to a File on my server. So that when my customers click on the link it will show the File Download screen.
superman123 Posted May 26, 2004 Author Posted May 26, 2004 Ok i got it to SOMEWHAT work.. '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_RESELLERS . '</a><br>' . I made the lettering say Resellers.. but i still need it to hyperlink to a file. Is there a code for that?
egnegron Posted May 26, 2004 Posted May 26, 2004 how can you get it to open the link in a new window.. I keep try'n but, NO DICE. - I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.
241 Posted May 26, 2004 Posted May 26, 2004 use standard html coding for target No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
egnegron Posted May 26, 2004 Posted May 26, 2004 nope thats not working.. could someone show me how.. i must be missing something. ;) - I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.
241 Posted May 26, 2004 Posted May 26, 2004 egnegron What codes are you using and where are you using them No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
egnegron Posted May 27, 2004 Posted May 27, 2004 <?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_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_FORUM) .'">' . BOX_INFORMATION_FORUM . '</a><br>'); new infoBox($info_box_contents); ?> </td> </tr> - I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.
egnegron Posted May 27, 2004 Posted May 27, 2004 it's the forum link that i need to open in a _blank window. in the FILENAMES.PHP i have defined the link as: define('FILENAME_FORUM', 'evilboard/index.php'); ?> what am i missing it currently opens but INSIDE the current page. I need it to open in a NEW window out side os OSCOMMERCE - I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.
nrlatsha Posted May 27, 2004 Posted May 27, 2004 '<a href="' . tep_href_link(FILENAME_FORUM) .'"target="_blank">' . BOX_INFORMATION_FORUM . '</a><br>'); 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
241 Posted May 27, 2004 Posted May 27, 2004 Thanks Noel, would that use standard html coding for target per chance :P No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
nrlatsha Posted May 27, 2004 Posted May 27, 2004 Standard? Nahh, I just made that up... ;) 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
egnegron Posted May 27, 2004 Posted May 27, 2004 thank you.. thank you!! -e - I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.