Poom Posted January 11, 2004 Share Posted January 11, 2004 I am looking to add 2 links in the Information info box! How can I do this? Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2004 Share Posted January 11, 2004 you need to open catalog/includes/boxes/information.php: and find $info_box_contents[] = array('text' => after this part are the links, that look like this: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>' hth Link to comment Share on other sites More sharing options...
Marg Posted January 11, 2004 Share Posted January 11, 2004 /includes/boxes/information.php Use the links that are in there for the correct format. Link to comment Share on other sites More sharing options...
Poom Posted January 11, 2004 Author Share Posted January 11, 2004 So far I have : $info_box_contents = array(); $info_box_contents[] = array('text' =>'<a href="' http://www.thecdrstore.34sp.com/support/web.php'">'Support Form'</a><br>' . '<a href="' http://www.thecdrstore.34p.com/forum/'">'Discussion Forum'</a><br>' . '<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>'); But it doesnt seem to work! Any ideas? Link to comment Share on other sites More sharing options...
Poom Posted January 11, 2004 Author Share Posted January 11, 2004 $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="'http://www.thecdrstore.34sp.com/support/web.php'" target="_blank">'Support Form'</a><br>' . '<a href="'http://www.thecdrstore.34p.com/forum/'" target="_blank">'Discussion Forum'</a><br>' . '<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>'); Is my latest code! Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2004 Share Posted January 11, 2004 So far I have : ?$info_box_contents = array(); ?$info_box_contents[] = array('text' =>'<a href="' http://www.thecdrstore.34sp.com/support/web.php'">'Support Form'</a><br>' . ? ? ? ? ? '<a href="' http://www.thecdrstore.34p.com/forum/'">'Discussion Forum'</a><br>' . ? ? ? ? ? '<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>'); But it doesnt seem to work! Any ideas? this code should work: $info_box_contents = array(); $info_box_contents[] = array('text' =>'<a href="http://www.thecdrstore.34sp.com/support/web.php">Support Form</a><br>' . '<a href="http://www.thecdrstore.34p.com/forum/">Discussion Forum</a><br>' . '<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>'); you need to look for the usage of the quotes with '. Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2004 Share Posted January 11, 2004 If you want the pages to open in a new window, use this: $info_box_contents = array(); $info_box_contents[] = array('text' =>'<a href="http://www.thecdrstore.34sp.com/support/web.php" target="blank">Support Form</a><br>' . '<a href="http://www.thecdrstore.34p.com/forum/" target="blank">Discussion Forum</a><br>' . '<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>'); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.