ok, thank you. that was very helpful., i guess when i quick installed it, the prefix zen_ was added, i edited all 4 files, created the tables first of course.
i think the problem lies in the file concerts.php, in the modules directory, here is my code, im just not sure where to add the prefixes in the file
Code:
$concerts_status = " and r.status = 1 ";
$random_concert_sidebox_select = "select c.concerts_id, c.concerts_rating, p.products_id, p.products_image, pd.products_name
from " . TABLE_ZEN_CONCERTS . " c, " . TABLE_CONCERTS_DESCRIPTION . " cd, "
. TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
where p.products_status = '1'
and p.products_id = c.products_id
and c.concerts_id = cd.concerts_id
and cd.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and p.products_id = pd.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'" .
$concerts_status;
if (isset($_GET['products_id'])) {
$random_concert_sidebox_select .= " and p.products_id = '" . (int)$_GET['products_id'] . "'";
}
$random_concert_sidebox_select .= " limit " . MAX_RANDOM_SELECT_CONCERTS;
$random_concert_sidebox_product = zen_random_select($random_concert_sidebox_select);
if ($random_concert_sidebox_product->RecordCount() > 0) {
// display random review box
$concert_box_text_query = "select substring(concert_text, 1, 60) as concerts_text
from " . TABLE_CONCERTS_DESCRIPTION . "
where concerts_id = '" . (int)$random_concert_sidebox_product->fields['concerts_id'] . "'
and languages_id = '" . (int)$_SESSION['languages_id'] . "'";
$concert_box_text = $db->Execute($concert_box_text_query);
// $review_box_text = zen_break_string(zen_output_string_protected($review_box_text->fields['reviews_text']), 15, '-<br />');
$concert_box_text = zen_break_string(nl2br(zen_output_string_protected(stripslashes($concert_box_text->fields['concerts_text']))), 60, '-<br />');
require($template->get_template_dir('tpl_concerts_random.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_concerts_random.php');
} elseif (isset($_GET['products_id']) and zen_products_id_valid($_GET['products_id'])) {
// display 'write a review' box
require($template->get_template_dir('tpl_concerts_write.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_concerts_write.php');
} else {
// display 'no reviews' box
require($template->get_template_dir('tpl_concerts_none.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_concerts_none.php');
}
$title = BOX_HEADING_CONCERTS;
$title_link = FILENAME_CONCERTS;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>
Bookmarks