exitbuy Posted March 26, 2005 Posted March 26, 2005 Hi All, i dont know php so help needed i need to know how to add an extra link in left hand bottem corner. ex is giver below Information Shipping & Returns Privacy Notice Conditions of Use Help Desk ( i need to add this whish should be linked to helpdesk.xxxx.com in a new window) Contact Us Payments (i need to add this which should be linked to www.xxx.com/pages/yy.php in a new window) Can You Please Help Me Regards, Satish Kumar ExitBuy.Com
Jack_mcs Posted March 26, 2005 Posted March 26, 2005 Open your includes/boxes/information.php fileand find this line: '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . and insert this line right after it: '<a href="help_desk.php" target="_blank" title="Help Desk">Help Desk</a><br>' . Do the same for the Payments but if it is the last link in the list, be sure to change the end of the string from . to ); (compare to the current last entry to see what I mean). As long as you use it as above, it will work. But if you are linking to pages on your site and not opening in a new window, this code will not work properly. 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
exitbuy Posted March 26, 2005 Author Posted March 26, 2005 <?php /* $Id: languages.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License Modified for VN2 Free Skin E by Kevin jeffery - www.vn2designs.com */ ?> <!-- languages //--> <tr> <td><table width="150" border="0" cellspacing="0" cellpadding="0" class="infoBox_right"> <tr> <td class="infoBox_right"><?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES); new infoBoxHeading($info_box_contents, false, false); if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $languages_string); new infoBox($info_box_contents); ?></td> </tr> <tr><td><img src="images/vn2designsdotcom_right_bot.jpg"></td> </tr> </table></td> </tr> <!-- languages_eof //--> Now what information do i change
Wendy James Posted March 26, 2005 Posted March 26, 2005 The easiest thing I have found if you want to add additional pages and link to them in a box is the contribution Extra Pages Infobox Version 4.1. You just follow the instructions to install, then go to your admin, click on tools then on Page manager. You can create new pages right there in the admin area, or link to pages already connected with osc like contact or link to pages outside of osc. No worrying about what to change or add every time you want a new page, or want to edit text on a page you already have up. =) Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Jack_mcs Posted March 27, 2005 Posted March 27, 2005 <?php/* $Id: languages.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License Modified for VN2 Free Skin E by Kevin jeffery - www.vn2designs.com */ ?> <!-- languages //--> <tr> <td><table width="150" border="0" cellspacing="0" cellpadding="0" class="infoBox_right"> <tr> <td class="infoBox_right"><?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES); new infoBoxHeading($info_box_contents, false, false); if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $languages_string); new infoBox($info_box_contents); ?></td> </tr> <tr><td><img src="images/vn2designsdotcom_right_bot.jpg"></td> </tr> </table></td> </tr> <!-- languages_eof //--> Now what information do i change <{POST_SNAPBACK}> I don't know. What are you doing in that file? I mentioned a different one. Or am I missing your question? 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.