4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Jef on March 14, 2003, 04:59:01 PM
-
Hello, I'm a newbie here. :D
My english is very bad but let me say that I never see a script like this one : it is REALLY REALLY great ! The best I know.
Could you help me please ? I have one main category with no images (I don't want pictures in main category) and two sub-categorys with 10 and 8 pictures. Actually, on the main category page, I can read : "0 images..." and "There is no image in this category".
What can I do to get the total number of images here (10 + 8 = 18 ) or to "erase" this message (only on the main category page of course) ?
I don't know if you could understand my poor english so tell me if not... :wink:
Thank you very much.
Jef
-
Welcome aboard! :wink: :D
first off all, I dont know why it shows 0 and it doesnt count images from subcategories. on my site it counts both: main category and subcategories images.
but, if u'd like not to show 0 at all, u can do this:
Open /includes/functions.php
Find: "num_images" => $num_images
Replace with: "num_images" => ($num_images) ? $num_images : ""
Then, open /templates/<yourtemplate>/category_bit.html
Find:({num_images})
Replace with:{if num_images}({num_images}){endif num_images}
hope this can help.
[EDITED]
did u say on MAIN page?
did u mean number that shows after category name? like: Nature (12) ?
-
Hello and thank you for your answer :) I have try what you said but, unfortunately, I always have the same problem. As you see below, the main category OCEAN INDIEN get 0 images but the 2 sub-category get 8 images.
***************************
OCEAN INDIEN
(Hits: 17)
--------------------------------------------------------------------------------
Sous Catégories
Ile Maurice (5) Nouveau
Rodrigues (3) Nouveau
Résultats: 0 (<<<why 0 ?) image(s) sur un total de 0 page(s). Affiche: image 0 sur 0.
Il n'y a pas d'image dans cette catégorie. (There is no images in this category)
***************************
Is it normal please ?
(no, it's not the number like "Category(12)")