Listed in topics: Developers, Documentation

Plugin Resources »Plugin API Reference

Actions

  • comment_vote – Runs when a comment is voted on. Action function arguments include: comment_id, vote, comment_rating
  • comment_post – Runs when a comment is posted. Action function arguments include: comment_id, comment_userid, comment_rating, comment_time, comment_threadparentid, comment_parentid, comment_nonuser_name, comment_nonuser_url
  • user_menu_open – Runs when the active user mouses over a commenter’s avatar and the commenter’s user menu is displayed. Action function arguments include: comment_id, comment_userid
  • page_load – Runs when a new page is loaded (including when a sorting option is set). Action function arguments include: page_number, comment_id, sort_method
  • thread_page_load – Runs when a new “thread page” is loaded (ie when the “See more replies” link is clicked on a large thread). Action function arguments include: comment_id, comment_thread_start_index
  • user_login – Runs when a user logs in. Action function arguments include: userid, username
  • tw_login – Runs when a user logs in via Twitter Sign-in. Action function arguments include: username, url
  • fbc_login – Runs when a user logs in via Facebook Connect. Action function arguments include: userid, name, url
  • idcomments_init – Runs when the comment system is first initialized (comments are visible, but not fully functional). Action function arguments include: there are no arguments for this action
  • idcomments_func_load – Runs when the comment system is fully functional (all IntenseDebate JavaScript is loaded). Action function arguments include: userid, is_admin

Filters

  • pre_comment_text – Runs when a comment is posted. The value filtered is the comment text.
  • pre_comment_name – Runs when a comment is posted. The value filtered is the commenter’s name (NOTE: only filters non-user comments).
  • pre_comment_email – Runs when a comment is posted. The value filtered is the commenter’s email address (NOTE: only filters non-user comments).
  • pre_comment_url – Runs when a comment is posted. The value filtered is the commenter’s url (NOTE: only filters non-user comments).
  • comment_text_load – Runs when a body comment is output. Your function should take in an array of two arguments (‘text’ and ‘commentid’). Text is the current comment text and commentid is the id of the comment that is being processed. Your function should only return the text component as this is the only value that is meant to be modified.

Got a suggestion for a new action/filter? Please contact us and let us know – there’s a good chance we’ll add it.

Tags: — Can't find your answer here? Let us know.

Last modified: July 27, 2010 by Michael

Help us improve:

We're always looking to improve our documentation. If this page didn't answer your question or left you wanting more, let us know! We love hearing your feedback. For support, please use the forums or contact support form. Thanks!

You must be logged in to post a comment.