Comments Number

Developer

Laisvunas

3rd Party (Commercial)
Current Version: 1.3

License Agreement

Buy Now!

$10.00
Qty:

EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

This plugin will allow you to find the number of comments of entries posted into certain weblogs and/or into certain categories and/or having certain url_title and/or having certain entry_id. Use the number found in conditionals.

PARAMETERS:

1) weblog - Optional. For EE1.x only. Allows you to specify weblog name.
You can use the pipe character to get entries from any of those
weblogs, e.g. weblog=“weblog1|weblog2|weblog3”.
Or you can add the word “not” (with a space after it) to exclude weblogs,
e.g. weblog=“not weblog1|weblog2|weblog3”.

2) channel - Optional. For EE2.0+ only. Allows you to specify channel name.
You can use the pipe character to get entries from any of those
weblogs, e.g. channel=“channel1|channel2|channel3”.
Or you can add the word “not” (with a space after it) to exclude weblogs,
e.g. weblog=“not channel1|channel2|channel3”.

3) category - Optional. Allows you to specify category id number
(the id number of each category is displayed in the Control Panel).
You can stack categories using pipe character to get entries
with any of those categories, e.g. category=“3|6|8”. Or use “not”
(with a space after it) to exclude categories, e.g. category=“not 4|5|7”.

4) entry_id - Optional. Allows you to specify single entry_id or pipe delimited series of
entry ids, e.g. entry_series=“78|95|54|22|156”. Or use “not”
(with a space after it) to exclude entry_ids, e.g. category=“not 78|95|54”.

5) author_id - Optional. Allows you to specify author id number.
You can use the pipe character to get entries posted by any of those
authors, e.g. author_id=“5|11|18”.
Or you can add the word “not” (with a space after it) to exclude authors,
e.g. author_id=“not 1|9”. If you need to specify logged in member id as author_id,
use the string “logged_in_member_id”, e.g. author_id=“logged_in_member_id”.

Notice: at least one of the parameters “channel”, “category”, “entry_id”, and “author_id” of the exp:comments_number tag must be defined!

6) entries_status - Optional. Allows you to specify status of entries. You can choose multiple
statuses using a pipe status=“draft|reviewed|published” or exclude statuses using “not”
status=“not submitted|processing|closed”. By default comments posted into closed entries will not be counted.

7) status - Optional. Allows you to specify status of comments. You can choose multiple
statuses using a pipe status=“closed|open” or exclude statuses using “not”
status=“not open”. By default closed comments will not be counted.

8) site - Optional. Allows you to specify site id number.
You can stack site id numbers using pipe character to get entries
from any of those sites, e.g. site=“1|3”. Or use “not”
(with a space after it) to exclude sites, e.g. site=“not 1|2”.

9) url_title - Optional. Allows you to specify single url_title of an entry or pipe delimited series of
url_titles, e.g. url_title=“blog_started|i_m_blogging|my_browser_extension”.

10) show_expired_entries - Optional. Allows you to specify if comments posted in expired entries
should be counted. Accepts values “yes” and “no”. Default value is “no”.

11) show_expired_comments - Optional. Allows you to specify if expired comments
should be counted. Accepts values “yes” and “no”. Default value is “no”.

12) start_on - Optional. Allows you to specify the date starting from which the plugin
should look for entries having comments. The date/time must be specified in the following format:
YYYY-MM-DD HH:MM . Here, YYYY is the four-digit year, MM is the two-digit month,
DD is the two-digit day of the month, HH is the two-digit hour of the day,
and MM is the two-digit minute of the hour. If the month, day, hour or minute has only one digit,
precede that digit with a zero. (E.g. “March 9, 2004” would become “2004-03-09”.)
All date/times are given in local time, according to your ExpressionEngine configuration.

13) stop_before - Optional. Allows you to specify the date before which the plugin
should stop looking for weblog entries having comments. The date/time must be specified in the following format:
YYYY-MM-DD HH:MM . Here, YYYY is the four-digit year, MM is the two-digit month,
DD is the two-digit day of the month, HH is the two-digit hour of the day,
and MM is the two-digit minute of the hour. If the month, day, hour or minute has only one digit,
precede that digit with a zero. (E.g. “March 9, 2004” would become “2004-03-09”.)
All date/times are given in local time, according to your ExpressionEngine configuration.

14) invalid_input - Optional. Accepts two values: ��alert�� and ��silence��.
Default value is ��silence��. If the value is ��alert��, then in cases when some
parameter��s value is invalid plugin exits and PHP alert is being shown;
if the value is ��silence��, then in cases when some parameter��s value
is invalid plugin finishes its work without any alert being shown.
Set this parameter to ��alert�� for development, and to ��silence�� - for deployment.

VARIABLES:

1) comments_number - outputs number of comments.

2) comments_number_entries_total - outputs total number of commented pages.

EXAMPLE OF USAGE:

{exp:comments_number channel="website_news|events" category="4|9"}
<p>{comments_number} comments on {comments_number_entries_total} pages.</p>
{/exp:comments_number}

Comments Number Links

This entry was created March 25, 2010, 7:38 am.
This entry was last updated August 27, 2013, 3:14 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!