Page 1 of 2

Empty picture frame after upgrade to 2.7.0

Posted: 11 May 2010, 21:34
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

Re: Empty picture frame after upgrade to 2.7.0

Posted: 11 May 2010, 22:04
by Benno
Hi,
You can remove this topic, i found sollution
Well done! :twisted:
Which solution do you found?
Kind regards,
Benno

Re: Empty picture frame after upgrade to 2.7.0

Posted: 12 May 2010, 03:38
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.

Re: Empty picture frame after upgrade to 2.7.0

Posted: 12 May 2010, 03:39
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";
}
}

Re: Empty picture frame after upgrade to 2.7.0

Posted: 12 May 2010, 15:53
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

Re: Empty picture frame after upgrade to 2.7.0

Posted: 25 Jun 2010, 22:53
by Benno
Ok.
Kind regards,
Benno

Re: Empty picture frame after upgrade to 2.7.0

Posted: 27 Jun 2010, 15:52
by marmox
But will come an official solution?? :)

Image

Re: Empty picture frame after upgrade to 2.7.0

Posted: 28 Jun 2010, 18:34
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

Re: Empty picture frame after upgrade to 2.7.0

Posted: 28 Jun 2010, 21:31
by sthor
Here is my two cents, a snapshot of the same problem on my site.

Image

Regards,
Stefan

Re: Empty picture frame after upgrade to 2.7.0

Posted: 28 Jun 2010, 22:08
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