Hi,
This is the bookmark code to place a box in the store that people can bookmark your site with.
<!-- Add Favorites //-->
<?php
if (strstr ($HTTP_USER_AGENT, "MSIE")) {
$self = "http://".$HTTP_HOST.$REQUEST_URI;
?>
<?php
/*$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_INFORMATION_BOOKMARK
);
new infoBoxHeading($info_box_contents, false, false);
$rows = 0;
$info_box_contents = array();*/
if ($HTTP_GET_VARS['products_id']) {
$product_box_info = tep_db_query("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'");
$product_box_info_values = tep_db_fetch_array($product_box_info);
$text = "<a href=\"javascript:window.external.AddFavorite('$se lf','$HTTP_HOST Online Shop - " . str_replace("'", "\'", $product_box_info_values["products_name"])."')\">Bookmark ".$product_box_info_values['products_name']."</a>";
}
else {
$text = "<a href=\"javascript:window.external.AddFavorite('$se lf','$HTTP_HOST Online Shop')\">Bookmark Us</a>";
}
$info_box_contents[] = array('align' => 'center',
'text' => $text);
new infoBox($info_box_contents);
?>
I have removed the <tr> and <td> tags and also commented out the first lines at the top to remove the header of the box.
How can I get this code completely out of the box and turn the text link into a graphic link?
I have tried commenting out this code various ways but it just removes the whole box section:
$info_box_contents[] = array('align' => 'center',
'text' => $text);
new infoBox($info_box_contents);
Any help would be appreciated.
Thanks!





LinkBack URL
About LinkBacks






Bookmarks