Detail View - Tag showing when turned off in options

Phoca Gallery - image gallery extension
hossenpheffer
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 06 Jan 2012, 21:03

Detail View - Tag showing when turned off in options

Post by hossenpheffer »

I recently noticed that when viewing specific photo categories in detail view that at the bottom right, there is a tag showing. I have the Options set to only show the tags in category view. The oddest part is the tag that shows is not the same as the tag that has been selected and that does correctly show in the category view.

What I've tried:
Setting display tags option to Yes (Category and detail view). The category view is correct, the detail view is not.

Setting display tags to No. This correctly removes the tags from both views.

Un-publish the tag that shows in the detail view. This has no effect, it still shows in the detail view.

Deleting the tag. This works and the tag no longer shows in detail view.

Creating a New tag. When applying the new tag to images in one category, the new tag appears in the detail view of a different category that does not have the tag applied.

I reviewed all phocagallery database tables. All appear to have correct tags associated with images and I see nothing to indicate where the detail view is pulling the un-associated tag from.

I created a new folder/category/and upload new images. This all works perfectly, but when viewing the images in the new category detail view, there will be a 'new' tag assigned to each image in the folder that is not applied in the image settings.

Using Joomla 1.7 and phocagallery 3.1.4
Same issues with Joomla 2.5 and phocagallery 3.1.4

This site is on a dedicated server but not yet ready for public viewing. Admin login/password available via email.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Detail View - Tag showing when turned off in options

Post by Jan »

Hi, confirmed, there is a typo error, I will fix it in next release.

For now you can fix it on your server the following way:

components\com_phocagallery\views\detail\view.html.php

line cca 265

FROM:

Code: Select all

if ($this->tmpl['detailwindow'] == 7) {
				$this->tmpl['displaying_tags_output'] = PhocaGalleryTag::displayTags($item->catid);
			} else {
				$this->tmpl['displaying_tags_output'] = PhocaGalleryTag::displayTags($item->catid, 1);
			}
TO:

Code: Select all

if ($this->tmpl['detailwindow'] == 7) {
				$this->tmpl['displaying_tags_output'] = PhocaGalleryTag::displayTags($item->id);
			} else {
				$this->tmpl['displaying_tags_output'] = PhocaGalleryTag::displayTags($item->id, 1);
			}
Thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Detail View - Tag showing when turned off in options

Post by Jan »

Fixed in 3.1.5

Jan
If you find Phoca extensions useful, please support the project
Post Reply