Empty picture frame after upgrade to 2.7.0
-
milan72
- Phoca Newbie

- Posts: 3
- Joined: 01 Oct 2009, 09:51
Empty picture frame after upgrade to 2.7.0
Hi,
I just upgraded gallery, and shown up empty picture frame in category view.
I have just subcategories in this category, and i need to hide that frame. How to do that ??
Thanks for any help
You can remove this topic, i found sollution
I just upgraded gallery, and shown up empty picture frame in category view.
I have just subcategories in this category, and i need to hide that frame. How to do that ??
Thanks for any help
You can remove this topic, i found sollution
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Empty picture frame after upgrade to 2.7.0
Hi,
Which solution do you found?
Kind regards,
Benno
Well done!You can remove this topic, i found sollution
Which solution do you found?
Kind regards,
Benno
-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Empty picture frame after upgrade to 2.7.0
Hello Benno, I wrote a temporary solution to this problem before:
viewtopic.php?f=1&t=9266&p=37688#p37688
Replace line 112 in com_phocagallery/views/category/tmpl/default.php:
With:
This will work in regular categories if that category has more than one image. If it has only one image, than it wont work. In an empty category with subcategories, since there is only one item (the empty pictureframe) it won't display.
viewtopic.php?f=1&t=9266&p=37688#p37688
Replace line 112 in com_phocagallery/views/category/tmpl/default.php:
Code: Select all
if (!empty($this->items)) {Code: Select all
if (count($this->items)>1) {-
GenkaiNashi
- Phoca Enthusiast

- Posts: 84
- Joined: 12 Jul 2009, 22:03
Re: Empty picture frame after upgrade to 2.7.0
It is also possible to use this solution to remove pagination for an empty category this way:
Code: Select all
if (count($this->items)>1){
if (count($this->items)) {
echo '<div class="pgcenter">';
if ($this->params->get('show_pagination_limit_category')) {
echo '<div class="pginline">'
.JText::_('Display Num') .' '
.$this->tmpl['pagination']->getLimitBox()
.'</div>';
}
if ($this->params->get('show_pagination_category')) {
echo '<div style="margin:0 10px 0 10px;display:inline;" class="sectiontablefooter'.$this->params->get( 'pageclass_sfx' ).'" >'
.$this->tmpl['pagination']->getPagesLinks()
.'</div>'
.'<div style="margin:0 10px 0 10px;display:inline;" class="pagecounter">'
.$this->tmpl['pagination']->getPagesCounter()
.'</div>';
}
echo '</div>'. "\n";
}
}
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Empty picture frame after upgrade to 2.7.0
@Genkai Nashi,
Kind regards,
Benno
Thanks for this info.Hello Benno, I wrote a temporary solution to this problem before:
viewtopic.php?f=1&t=9266&p=37688#p37688
Kind regards,
Benno
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Empty picture frame after upgrade to 2.7.0
Ok.
Kind regards,
Benno
Kind regards,
Benno
-
marmox
- Phoca Newbie

- Posts: 5
- Joined: 17 Aug 2009, 13:57
- Location: Torino, Italy
- Contact:
Re: Empty picture frame after upgrade to 2.7.0
But will come an official solution??


- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Empty picture frame after upgrade to 2.7.0
Hi, this is known issue and I will take a look at it for new version. ( I still didn't get such problem on my test sites, so need to test it more - with different parameter settings)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
sthor
- Phoca Newbie

- Posts: 7
- Joined: 06 Mar 2009, 19:23
- Location: Iceland
Re: Empty picture frame after upgrade to 2.7.0
Here is my two cents, a snapshot of the same problem on my site.

Regards,
Stefan

Regards,
Stefan
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Empty picture frame after upgrade to 2.7.0
Hi, no idea if this is the same problem, but if yes, I am still testing it and will release new version after I will find the problem.
Maybe will be great, if someone can paste the settings here, so I can simulate the same.
Jan
Maybe will be great, if someone can paste the settings here, so I can simulate the same.
Jan
If you find Phoca extensions useful, please support the project