keneso:
includes/languages/english.php
around line 147
thanks you I was able to find that and did make the change but
I cannot my get links to work in this code.
for instance I un-comment this line:
// $more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . 'TESTING' . '</a>';
and then I try to insert my own link that point off site such as :
$more_information = "<a href='www.test.com'>this is a test</a>";
and zencart will not even process the code. why does zencart have the single and double quotes reserved and why will it not accept standard php coding in terms of single and double quotes and finally why does it substitute the url of my website as soon as it sees href in this string above. I need to be able to link to a url offsite in the more information block
I actually need to insert something a lot more advanced along these lines to open up a popup window to display some content.
<a href="#" onclick="javascript:window.open('http://www.mysite.com/forums/rules.html', '_blank', 'top=100, left=100, height=740, width=780, status=no, menubar=no, resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no');"> <B>Click Here</b></a>
Nut I can't even get started down that path until I can stop zencart from monkeying with the href and handling " and ' quotes backwards.
thanks in advance.
<?php
/**
* more_information sidebox - displays list of links to additional pages on the site. Must separately build those pages' content.
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0
* @version $Id: more_information.php 3464 2006-04-19 00:07:26Z ajeh $
*
* BetterCategoriesEzInfo v1.3.5 added 2006-09-19 gilby
*/
$pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . 'bc_moreinfo.gif');
// uncomment next line to add 1 space between image & text
// $pointer .= ' ';
// test if box should display
unset($more_information);
// test if links should display
if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . $pointer . BOX_INFORMATION_PAGE_2 . '</a>';
}
if (DEFINE_PAGE_3_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . $pointer . BOX_INFORMATION_PAGE_3 . '</a>';
}
if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . $pointer . BOX_INFORMATION_PAGE_4 . '</a>';
}
// insert additional links below to add to the more_information box
// Example:
$more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . 'TESTING' . '</a>';
// only show if links are active
if (sizeof($more_information) > 0) {
require($template->get_template_dir('tpl_more_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_more_information.php');
$title = BOX_HEADING_MORE_INFORMATION;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>