Empty picture frame after upgrade to 2.7.0

Phoca Gallery - image gallery extension
milan72
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 01 Oct 2009, 09:51

Empty picture frame after upgrade to 2.7.0

Post by milan72 »

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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Empty picture frame after upgrade to 2.7.0

Post by Benno »

Hi,
You can remove this topic, i found sollution
Well done! :twisted:
Which solution do you found?
Kind regards,
Benno
GenkaiNashi
Phoca Enthusiast
Phoca Enthusiast
Posts: 84
Joined: 12 Jul 2009, 22:03

Re: Empty picture frame after upgrade to 2.7.0

Post by GenkaiNashi »

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:

Code: Select all

if (!empty($this->items)) {
With:

Code: Select all

if (count($this->items)>1) {
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.
GenkaiNashi
Phoca Enthusiast
Phoca Enthusiast
Posts: 84
Joined: 12 Jul 2009, 22:03

Re: Empty picture frame after upgrade to 2.7.0

Post by GenkaiNashi »

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') .'&nbsp;'
			.$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";
}
}
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Empty picture frame after upgrade to 2.7.0

Post by Benno »

@Genkai Nashi,
Hello Benno, I wrote a temporary solution to this problem before:

viewtopic.php?f=1&t=9266&p=37688#p37688
Thanks for this info. :twisted:
Kind regards,
Benno
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Empty picture frame after upgrade to 2.7.0

Post by Benno »

Ok.
Kind regards,
Benno
marmox
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Aug 2009, 13:57
Location: Torino, Italy
Contact:

Re: Empty picture frame after upgrade to 2.7.0

Post by marmox »

But will come an official solution?? :)

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Empty picture frame after upgrade to 2.7.0

Post by Jan »

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
If you find Phoca extensions useful, please support the project
sthor
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Mar 2009, 19:23
Location: Iceland

Re: Empty picture frame after upgrade to 2.7.0

Post by sthor »

Here is my two cents, a snapshot of the same problem on my site.

Image

Regards,
Stefan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Empty picture frame after upgrade to 2.7.0

Post by Jan »

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
If you find Phoca extensions useful, please support the project
Post Reply