1
Mods & Plugins (Requests & Discussions) / danke
« on: March 12, 2003, 02:50:04 PM »
hat bestens funktioniert. jetzt läuft es für mich rund.
TB
TB
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
DB Error: Bad SQL Query: SELECT c.cat_id, c.cat_name, c.cat_description, c.cat_parent_id, c.cat_hits, c.cat_order, c.auth_viewcat, c.auth_viewimage, c.auth_download, c.auth_upload, c.auth_directupload, c.auth_vote, c.auth_sendpostcard, c.auth_readcomment, c.auth_postcomment, COUNT(i.image_id) AS new_images FROM 4images_categories c LEFT JOIN 4images_images i ON (i.cat_id = c.cat_id AND i.image_date >= 1033818885 AND i.image_active = 1) GROUP BY c.cat_id ORDER BY c.cat_order, c.cat_name ASC
[b]Got error 28 from table handler[/b]
if (!defined('ROOT_PATH')) {
die("Security violation");
}
this code: function get_cat_template($tpl_name, $cat_id = 0) {
global $cat_cache;
if (!$cat_id) {
$new_tpl_name = $tpl_name;
}
elseif (file_exists(TEMPLATE_PATH."/".$tpl_name."_".$cat_id.".html")) {
$new_tpl_name = $tpl_name."_".$cat_id;
}
else {
$new_tpl_name = get_cat_template($tpl_name, $cat_cache[$cat_id]['cat_parent_id']);
}
return $new_tpl_name;
}
$main_template = 'categories';
and insert below:$thumb_art= 'thumbnail_bit';
$thumbnails .= $site_template->parse_template("thumbnail_bit");
$thumbnails_neu= get_cat_template($thumb_art, $cat_id);
$thumbnails .= $site_template->parse_template($thumbnails_neu);
thumbnail_bit_<cat_id>.html