Page 1 of 1
Category Comments
Posted: 16 Dec 2009, 21:18
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?
Re: Category Comments
Posted: 16 Dec 2009, 22:45
by Jan
Hi, there is no such option, this needs to be customized in the code
Jan
Re: Category Comments
Posted: 16 Dec 2009, 22:48
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?
Re: Category Comments
Posted: 16 Dec 2009, 23:09
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 )
Jan
Re: Category Comments
Posted: 18 Dec 2009, 21:05
by brown12321
Jan, can you point me in the direction where Phoca Gallery calls on 3rd party comment systems? The Code!
Re: Category Comments
Posted: 23 Dec 2009, 01:14
by Jan
see:
components\com_phocagallery\views\category\tmpl\default.php
line 490 +
Jan
Re: Category Comments
Posted: 23 Dec 2009, 20:15
by brown12321
Jan wrote:see:
components\com_phocagallery\views\category\tmpl\default.php
line 490 +
Jan
\
Thanks Jan, I got it working.
Re: Category Comments
Posted: 29 Dec 2009, 00:22
by Jan
Ok
Re: Category Comments
Posted: 01 May 2012, 17:38
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!