Guest Posted January 6, 2004 Share Posted January 6, 2004 I installed the module, and I can get links installed on the page it produces but I'm trying to get links to work direct from the information box. I can get the links showing and working but the link for the info page shows above each link like this; Info Page Link Direct Link Info Page Link Direct Link I have included the code from catalog\includes\boxes\information.php as it is currently, what I want is this: Info Page Link Direct Link Direct Link Any help would be greatly appreciated. Thanks <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); // Retrieve information from Info table $informationString = ""; // joles //$sql=mysql_query('SELECT information_id, info_title FROM ' . TABLE_INFORMATION .' WHERE visible=\'1\' ORDER BY v_order') $sql=mysql_query('SELECT information_id, languages_id, info_title FROM ' . TABLE_INFORMATION .' WHERE visible=\'1\' and languages_id ='.$languages_id.' ORDER BY v_order') or die(mysql_error()); while($row=mysql_fetch_array($sql)): $filename_information = tep_href_link(FILENAME_INFORMATION) . (stristr(tep_href_link(FILENAME_INFORMATION), '?')?'&':'?') . 'info_id=' . $row['information_id']; $informationString .= '<a href="' . $filename_information . '">' . $row['info_title'] . '</a><br>'; endwhile; $info_box_contents = array(); $info_box_contents[] = array('text' => $informationString . '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>'); $info_box_contents[] = array('text' => $informationString . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.