1
Discussion & Troubleshooting / Re: Please help with functions.php...
« on: September 23, 2006, 06:07:17 PM »
After searching through the page I found the missing code. Just in case anyone else has this problem. You have to add this line:
above this section:
Alls working now.
Code: [Select]
$cat_image = get_gallery_image("category".$category_id.".gif");
above this section:
Code: [Select]
$site_template->register_vars(array(
"cat_id" => $category_id,
"cat_image" => (file_exists($cat_image)) ? $cat_image : get_gallery_image("folder.gif"),
"cat_name" => format_text($cat_cache[$category_id]['cat_name'], 2),
"cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1),
"cat_hits" => $cat_cache[$category_id]['cat_hits'],
"cat_is_new" => $is_new,
"lang_new" => $lang['new'],
"sub_cats" => get_subcategories($category_id),
"cat_url" => $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$category_id),
"random_cat_image_file" => $random_cat_image_file,
"num_images" => $num_images
));
Alls working now.
