Guest Posted November 26, 2004 Posted November 26, 2004 how would i go about adding a link to my forum in the left column under the information heading?? heres the URL http://nzdownloads.com/store/
Guest Posted November 26, 2004 Posted November 26, 2004 there is a contribution, search for phpbb, if that is what you are meaning to do
Guest Posted November 26, 2004 Posted November 26, 2004 i already have my forums up and running http://nzdownloads.com/forums/ but I was wondering how I would place a link to it in the left column
Guest Posted November 26, 2004 Posted November 26, 2004 create a link in whatever box you want it in, define the text in the appropriate language, and go . . . follow the examples by duplicating one in a box includes/boxes/whatever box
Guest Posted November 26, 2004 Posted November 26, 2004 open up whatever box you want the link to appear in. create the link in the code. save the file. define the text you are using for the forum based upon the code in the box.
Guest Posted November 26, 2004 Posted November 26, 2004 i dont really know what codes to type in(maybe i can tell you exactly what i want and you could tell me what code to put in and where) i want a link called forums in the information box that leads to the address http://nzdownloads.com/forums/
Guest Posted November 26, 2004 Posted November 26, 2004 open up your catalog/includes/boxes/information.php and you will see where/how it needs to go.
Guest Posted November 26, 2004 Posted November 26, 2004 In includes/boxes/information.php find this code: $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>'); ...and change it to this: $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="http://nzdownloads.com/forums/">Forum</a>' );
Guest Posted November 26, 2004 Posted November 26, 2004 ahhhhh, but they never learn if we do it for them
Guest Posted November 26, 2004 Posted November 26, 2004 yeah that worked, now what i want to do is get rid of the text "information" that is underneath the box heading information. Also how do i get rid of "This shop is running on osCommerce version osCommerce 2.2-MS2"
♥Vger Posted November 26, 2004 Posted November 26, 2004 "This shop is running on osCommerce version osCommerce 2.2-MS2" The text above that tells you how to edit it, and if you've already removed the other text then you've done it once already. I think it's time you consulted the Knowledge Base and used the 'Search' feature - and stopped bumping - because nobody likes that. Vger
Guest Posted November 26, 2004 Posted November 26, 2004 ok i removed "this shop is running on...." but how do i remove the text "information" underneath the heading "information" heres what the code inside information.php looks like */ ?> <!-- 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('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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="http://nzdownloads.com/forums/">Forums</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //-->
Guest Posted November 26, 2004 Posted November 26, 2004 first, please no bumping, that is definitely against forum rules. look in the languages/english/english.php // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us');
Guest Posted November 26, 2004 Posted November 26, 2004 i think you have misunderstood if you go to http://nzdownloads.com/store/ you will see that there is the text "information" inside the box labeled "information" i want to remove that
Guest Posted November 27, 2004 Posted November 27, 2004 any help, please? <{POST_SNAPBACK}> Find this code in catalog/includes/boxes/information.php <!-- information //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"> </td> <td width="100%" height="14" class="infoBoxHeading">Information</td> <td height="14" class="infoBoxHeading" nowrap><img src="/store/images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText">Information</td> </tr> <tr> <td class="boxText"><a href="http://nzdownloads.com/store/shipping.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Shipping</a><br><a href="http://nzdownloads.com/store/conditions.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Conditions</a><br><a href="http://nzdownloads.com/store/contact_us.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Contact Us</a><br><a href="http://nzdownloads.com/forums/">Forums</a></td> </tr> <tr> <td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- information_eof //--> Change it to <!-- information //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"> </td> <td width="100%" height="14" class="infoBoxHeading">Information</td> <td height="14" class="infoBoxHeading" nowrap><img src="/store/images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://nzdownloads.com/store/shipping.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Shipping</a><br><a href="http://nzdownloads.com/store/conditions.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Conditions</a><br><a href="http://nzdownloads.com/store/contact_us.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Contact Us</a><br><a href="http://nzdownloads.com/forums/">Forums</a></td> </tr> <tr> <td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- information_eof //-->
Guest Posted November 27, 2004 Posted November 27, 2004 if you use static links, then you will have ssl problems
Guest Posted November 27, 2004 Posted November 27, 2004 Forget the post above...that is nothing more than the output HTML. Here is your answer -> In includes/boxes/information.php change this code: <!-- 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('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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="http://nzdownloads.com/forums/">Forums</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> ...to this code: <!-- 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_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="http://nzdownloads.com/forums/">Forums</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //-->
Guest Posted November 27, 2004 Posted November 27, 2004 Forget the post above...that is nothing more than the output HTML. Chemo, You are, as usual, right about the HTML output. Sorry, it's been a long day. Can you pinpoint the difference between the original code and the new code? I looked but couldn't find it. I couldn't find anything in the original code that looked like it would output the text in question. Like I said, it's been a long day. Dave
Guest Posted November 27, 2004 Posted November 27, 2004 ... more code ... $info_box_contents = array(); <= array reset $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); <= array reset or it contains the above info $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . ...more code...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.