closed comments to show with no comment form underneath

boplive
@boplive
9 years ago
345 posts
In regards to the Ningja Skin activity in index home page.I would like to only show member comments for blog, Events etc..Now I know the function code{Jr function comment form}
Display a form box & submit button.
I don't want to show a comment form box & submit underneath each item in the activity feed..it will look overloaded Is there a different function code of separating a comment / comments from the comment form for each item. What I was hoping of doing this
1- under each item.show only 2 action comments for that item and even if there is 5 or 20 comments all together for the item..i just want to show just 2
**so here is where I need help on which function, code to use just to show only action comments for each item**

2 - above those 2 comments is the comment count of let's say 5 or 20.
{Comment_action_count}
3- Click on the comment count and it drops to display the 5 or 20 comments with the form underneath.
(Here I will be using the hide and show function)
{Jr comment form}

So what do you think guys..is it doable
Ed
updated by @boplive: 11/09/15 06:05:58PM
michael
@michael
9 years ago
7,719 posts
It would be better to do via ajax. The action list is already pretty heavy as there are a lot of items in the datastore if you have a lot of users, so to get the comment count for each item there and some comments for every item listed is more processing so more server intensive.

If on the other hand you just want do it when the user wants it (the click on a link) then it will be much lighter.

You could do that by altering the item_action.tpl file for the modules your interested in.

"altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/development/1051/altering-a-modules-template
boplive
@boplive
9 years ago
345 posts
I get what your saying. .let me work around it and do what you recommend and will get back to you on how it came out. ..thX for your help as always much appreciated :)
updated by @boplive: 10/05/15 09:39:36AM
boplive
@boplive
9 years ago
345 posts
I'll close this out..i just used a drop down ;)

Tags