Category Comments

Phoca Gallery - image gallery extension
brown12321
Phoca Member
Phoca Member
Posts: 29
Joined: 16 Dec 2009, 17:06

Category Comments

Post by brown12321 »

I have comments set to category only. The problem is, I only want comment on the final subcategory in the tree.

Cat1
|_ SubCat1_1 (No Comments)
|__SubCat1_2 (Leave Comments)
|_ SubCat2_1 (No Comments)
|__SubCat2_2 (No Comments)
|___SubCat2_3 (Leave Comments)

Can this be done without modifying the code?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category Comments

Post by Jan »

Hi, there is no such option, this needs to be customized in the code :-(

Jan
If you find Phoca extensions useful, please support the project
brown12321
Phoca Member
Phoca Member
Posts: 29
Joined: 16 Dec 2009, 17:06

Re: Category Comments

Post by brown12321 »

Jan wrote:Hi, there is no such option, this needs to be customized in the code :-(

Jan
Could you point me in the direction so I can add which categories I want to exclude?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category Comments

Post by Jan »

Hi, in fact I don't know as I didn't do such modifications. You need to set somewhere that if the category id is not you want, that then the comments will be not displayed. but it is not so easy, you should protect the adding of comments into system too. This protection needs to be created in module...

so displaying the comment - in views (category view components/com_phocagallery/views/category/tmpl/ ... + view.html.php + models ) :idea: :(

Jan
If you find Phoca extensions useful, please support the project
brown12321
Phoca Member
Phoca Member
Posts: 29
Joined: 16 Dec 2009, 17:06

Re: Category Comments

Post by brown12321 »

Jan, can you point me in the direction where Phoca Gallery calls on 3rd party comment systems? The Code!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category Comments

Post by Jan »

see:
components\com_phocagallery\views\category\tmpl\default.php

line 490 +

Jan
If you find Phoca extensions useful, please support the project
brown12321
Phoca Member
Phoca Member
Posts: 29
Joined: 16 Dec 2009, 17:06

Re: Category Comments

Post by brown12321 »

Jan wrote:see:
components\com_phocagallery\views\category\tmpl\default.php

line 490 +

Jan
\
Thanks Jan, I got it working.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category Comments

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
rtc
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 May 2012, 17:31

Re: Category Comments

Post by rtc »

Hi everybody,
Thanks for post, i have the same request, i'm running phoca gallery 3.2 on joomla 2.5, i try to customize the code, but I found some difficulties.
I even try to use the code by RiverRaid but i failed.
Please if someone use it on the new phocagallery can post the code and where it should be placed?
Thanks a lot!
Post Reply