the tag {total_comments} is not reseting when I delete a comment from within the admin panel. Where is this being pulled from in the database? I am running v2.1.3… any ideas as to why this is happening?
Thanks!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
March 01, 2011 12:45pm
Subscribe [2]#1 / Mar 01, 2011 12:45pm
the tag {total_comments} is not reseting when I delete a comment from within the admin panel. Where is this being pulled from in the database? I am running v2.1.3… any ideas as to why this is happening?
Thanks!
#2 / Mar 01, 2011 12:55pm
found it, it seems that {total_comments} displays the total number of comments for the user logged in… how do you show the total number of comments for a particular entry?
#3 / Mar 01, 2011 1:30pm
Nope {total_comments} should show the total number of comments for the comment entries tag on all pages.
That is it will if you place it within the {exp:comment:entries} tag pair. I can see you have the {total_comments} variable at the top of your main code above so what you’re using there is the Global {total_comments} variable.
Place that variable within the comment entries tag though and you should get what you need.
Hope that helps a bit.
Best wishes,
Mark
#4 / Mar 01, 2011 1:33pm
yep, worked like a charm and makes perfect sense.
Thanks for the reply.
#5 / Mar 01, 2011 1:36pm
yep, worked like a charm and makes perfect sense.
Thanks for the reply.
No problem at all. Glad that got it sorted for you.
Best wishes,
Mark
#6 / Mar 01, 2011 3:33pm
Thanks for the assist, Mark. Please post again as needed.