Pictureframe is shown in an Empty Category
-
ixman2000
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2010, 21:24
Pictureframe is shown in an Empty Category
Hi,
I've updated my gallery from 2.6.2 to 2.7.0.
I've some caterories with more categories in it but no picures. In the older version there was
shown a text "this caterory has no images" now it is shown the Pictureframe.
Here a link to my page: http://www.funnytakes.de/fotoalbum/foto ... ngeln.html
I also found in the view-html default .php the entry in row 482-484
} else {
// Will be not displayed
//echo JText::_('There is no image in this category');
This Frame looks not good - Is the a solution in the further update comming or can
I change something in the code?
Another Idea: Is it possible to hide empty stats?
dears Carsten
I've updated my gallery from 2.6.2 to 2.7.0.
I've some caterories with more categories in it but no picures. In the older version there was
shown a text "this caterory has no images" now it is shown the Pictureframe.
Here a link to my page: http://www.funnytakes.de/fotoalbum/foto ... ngeln.html
I also found in the view-html default .php the entry in row 482-484
} else {
// Will be not displayed
//echo JText::_('There is no image in this category');
This Frame looks not good - Is the a solution in the further update comming or can
I change something in the code?
Another Idea: Is it possible to hide empty stats?
dears Carsten
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Pictureframe is shown in an Empty Category
Do you want to hide empty categories? Or just hide the message?
Last edited by GenkaiNashi on 03 May 2010, 22:15, edited 2 times in total.
-
ixman2000
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2010, 21:24
Re: Pictureframe is shown in an Empty Category
Hi,
I want to hide the empty pictureframe and show the the message.
I've try to delete "//" in the two rows but it dosn't work.
Dears carsten
I want to hide the empty pictureframe and show the the message.
I've try to delete "//" in the two rows but it dosn't work.
Dears carsten
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Pictureframe is shown in an Empty Category
I tested an empty category on my own site and there was no problem displaying "There is no image in this category." Perhaps something went wrong with the installation?
Update: I added subcategories and now I see what you mean, I got the same issue. Let me work it out and I'll let you know.
Apparently you can have an empty category only and it will display the "There is no image in this category." message, but if you have an empty parent category filled with subcategories it displays an empty picture box in the parent category rather than the message... annoying.
Update: I added subcategories and now I see what you mean, I got the same issue. Let me work it out and I'll let you know.
Apparently you can have an empty category only and it will display the "There is no image in this category." message, but if you have an empty parent category filled with subcategories it displays an empty picture box in the parent category rather than the message... annoying.
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Pictureframe is shown in an Empty Category
Hmm, you can try this fix:
*REMOVED TO PREVENT CONFUSION*
*REMOVED TO PREVENT CONFUSION*
Last edited by GenkaiNashi on 04 May 2010, 22:45, edited 1 time in total.
-
ixman2000
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2010, 21:24
Re: Pictureframe is shown in an Empty Category
Hi,
I've replaced the codes like you write the result is.
1. After I replaced "if (!empty($this->items)) {" the pictureframe wasn't shown in
the caterory. Now if I change in one othe the subcategory no image was shown.
2. I've also tryed the idea of the pagination. It works on the category-page.
Here is the same problem after I went into the subcategory with the pictures.
The pagination isn't displayed if there is some needed.
I hope there is another solution?
Dear Carsten
I've replaced the codes like you write the result is.
1. After I replaced "if (!empty($this->items)) {" the pictureframe wasn't shown in
the caterory. Now if I change in one othe the subcategory no image was shown.
2. I've also tryed the idea of the pagination. It works on the category-page.
Here is the same problem after I went into the subcategory with the pictures.
The pagination isn't displayed if there is some needed.
I hope there is another solution?
Dear Carsten
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Pictureframe is shown in an Empty Category
It should work. I'm not at home right now so I can't verify but do you have sub categories in sub categories?
-
ixman2000
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2010, 21:24
Re: Pictureframe is shown in an Empty Category
Hi,
Info to my strukture
Level 1 - 5 Categories with no pictures in it only Subcaterorys
Level 2 - Catergories with the pictures in it
Info to my strukture
Level 1 - 5 Categories with no pictures in it only Subcaterorys
Level 2 - Catergories with the pictures in it
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Pictureframe is shown in an Empty Category
Okay, and you said you replaced that code twice (or maybe in two files?)? Or just once in views/category/tmpl/default.php?
It does work for some reason for me. I just set up my gallery like:
Empty Category --> 1 Empty Category & 1 Category with Pictures
Both Empty category's don't show pictures and only the category with pictures in the empty subcategory shows pictures.
Can I have your email address to send you my default.php file so you can test that? I'll also include a link to my gallery. You can Private Messsage (PM) me your email if you don't want to post it here.
Code: Select all
if (!empty($this->items)) {<-- That makes it seem like you changed the line somewhere else too.Now if I change in one othe the subcategory no image was shown.
It does work for some reason for me. I just set up my gallery like:
Empty Category --> 1 Empty Category & 1 Category with Pictures
Both Empty category's don't show pictures and only the category with pictures in the empty subcategory shows pictures.
Can I have your email address to send you my default.php file so you can test that? I'll also include a link to my gallery. You can Private Messsage (PM) me your email if you don't want to post it here.
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Pictureframe is shown in an Empty Category
Also I just tried your structure too -->
1 Empty category --> Multiple Subcategories with Pictures
The picture frame isn't displayed on the Empty Category page and pagination works on the subcategories.
1 Empty category --> Multiple Subcategories with Pictures
The picture frame isn't displayed on the Empty Category page and pagination works on the subcategories.