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?
Category Comments
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category Comments
Hi, there is no such option, this needs to be customized in the code 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
brown12321
- Phoca Member

- Posts: 29
- Joined: 16 Dec 2009, 17:06
Re: Category Comments
Could you point me in the direction so I can add which categories I want to exclude?Jan wrote:Hi, there is no such option, this needs to be customized in the code
Jan
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category Comments
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 )
Jan
so displaying the comment - in views (category view components/com_phocagallery/views/category/tmpl/ ... + view.html.php + models )
Jan
If you find Phoca extensions useful, please support the project
-
brown12321
- Phoca Member

- Posts: 29
- Joined: 16 Dec 2009, 17:06
Re: Category Comments
Jan, can you point me in the direction where Phoca Gallery calls on 3rd party comment systems? The Code!
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category Comments
see:
components\com_phocagallery\views\category\tmpl\default.php
line 490 +
Jan
components\com_phocagallery\views\category\tmpl\default.php
line 490 +
Jan
If you find Phoca extensions useful, please support the project
-
brown12321
- Phoca Member

- Posts: 29
- Joined: 16 Dec 2009, 17:06
Re: Category Comments
\Jan wrote:see:
components\com_phocagallery\views\category\tmpl\default.php
line 490 +
Jan
Thanks Jan, I got it working.
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
rtc
- Phoca Newbie

- Posts: 2
- Joined: 01 May 2012, 17:31
Re: Category Comments
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!
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!