4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Ersen on August 26, 2012, 06:35:17 PM

Title: If category have not any image, category link dont be shown on the main page.
Post by: Ersen on August 26, 2012, 06:35:17 PM
If category have not any image,category link dont be shown on the main page. if is this possible?
Title: Re: If category have not any image, category link dont be shown on the main page.
Post by: Rembrandt on August 27, 2012, 05:27:25 PM
Hi!

search in includes/functions.php three times:

    if (check_permission("auth_viewcat", $val)) {
      $visible_cat_cache[$key] = $val;
    }

and replace:

   if (check_permission("auth_viewcat", $val)) {
      if(($cat_cache[$val]['num_images'])) {
        $visible_cat_cache[$key] = $val;
      }
    }


mfg Andi
Title: Re: If category have not any image, category link dont be shown on the main page.
Post by: Ersen on August 28, 2012, 01:18:03 PM
Hello rembrandt.

Thank you so much!!

i found these codes 3 times in page. and i replaced first and second codes.

Nothing happened.

i replaced 3 codes. and did it.

Thank you. God bless you :)