Thank you so very much V@no!!!! You truly are a life saver!
At least a saver of my sanity! LOL
But I also have the same problems that everyone else posted about having trouble with the search results. If I click on the Category name, that category does show. But if I click on the number it brings up all new pictures. I double checked and even triple checked with the help of my husband and still nothing. I'll post my 2 bits of code that was told to be changed in the search.php with a few lines before and after to see if there was something like "whitespace" or something going on.
if (isset($HTTP_POST_VARS['search_fields'])) {
$search_fields = trim($HTTP_POST_VARS['search_fields']);
}
else {
$search_fields = "all";
}
//-----------------------------------------------------
//---Show New Image count in category Mod -------------
//-----------------------------------------------------
if (isset($HTTP_GET_VARS['sub_cat'])) {
$sub_cat = trim($HTTP_GET_VARS['sub_cat']);
}
if (isset($HTTP_GET_VARS['cat_id'])) {
$search_cat = intval($HTTP_GET_VARS['cat_id']);
}
else {
$search_cat = (isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;
}
//----------------------------------------------------------------------------
//---End of Show New Image count in category Mod -----
//----------------------------------------------------------------------------
$search_cat = (isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;
if (!empty($search_id['search_cat']) && $search_id['search_cat'] != 0) {
$cat_id_sql = 0;
$sub_cat_ids = get_subcat_ids($search_id['search_cat'], $search_id['search_cat'], $cat_parent_cache);
if (check_permission("auth_viewcat", $search_id['search_cat'])) {
$cat_id_sql .= ", ".$search_id['search_cat'];
if ($sub_cat != "no") { // Show New Image count in category Mod
if (!empty($sub_cat_ids[$search_id['search_cat']])) {
foreach ($sub_cat_ids[$search_id['search_cat']] as $val) {
if (check_permission("auth_viewcat", $val)) {
$cat_id_sql .= ", ".$val;
}
}
}
} // Show New Image count in category Mod
}
}
else {
$cat_id_sql = get_auth_cat_sql("auth_viewcat");
}
Also, (sorry
), how to I go about adding the Title (New Images Added, etc.) to the top like it is for Random Images (screen shot attached). And how do I make it so that the number of the new images stays where they are, but move back the category names so they are more to the left?
Thank you so much!!