2017 © Pedro Peláez
 

elefant-app app-comments

A reusable, embeddable comments component for the Elefant CMS

image

elefant/app-comments

A reusable, embeddable comments component for the Elefant CMS

  • Tuesday, January 19, 2016
  • by jbroadway
  • Repository
  • 2 Watchers
  • 1 Stars
  • 63 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Comments

A reusable, embeddable comments component for the Elefant CMS., (*1)

To install, copy it into your apps folder and visit Tools > Comments in the Elefant admin toolbar., (*2)

To embed comments into a view template, simply include the following:, (*3)

{! comments/embed !}

To specify a different page identifier, which should be in the form of a link, add the identifier parameter:, (*4)

{! comments/embed?identifier=/unique-page-identifier !}

If no identifier is provided, it will use the current page URL as the identifier for all comments made on that page., (*5)

To configure moderation options, visit Tools > Comments > Settings in Elefant., (*6)

Blog comments

You can also use this app as the comment mechanism for the blog app, simply set the comments setting in the blog app configuration as follows:, (*7)

comments = comments/embed

Custom email notifications

You can implement notifications or any other action when a comment is posted by creating a custom handler and adding it to the [Hooks] section of the global conf/config.php file like this:, (*8)

comments/add[] = myapp/hook/comments

The above line references a handler in the file apps/myapp/handlers/hook/comments.php, which receives a $data array with the following properties:, (*9)

  • id - The comment's unique ID
  • identifier - The comment identifier from the embed code
  • user - The ID of the user who made the comment
  • name - The name of the user who made the comment
  • status - 1 means published, 0 means awaiting moderation
  • ts - The comment date/time in YYYY-MM-DD HH:MM:SS format
  • date - The comment date/time in YYYY-MM-DDTHH:MM:SSZ format
  • comment - The comment itself

For more information on writing hooks, see here., (*10)

The Versions

19/01 2016

dev-master

9999999-dev

A reusable, embeddable comments component for the Elefant CMS

  Sources   Download

MIT

The Requires

 

app cms comments discussion elefant

06/05 2013

1.0.0

1.0.0.0

A reusable, embeddable comments component for the Elefant CMS

  Sources   Download

MIT

The Requires

 

app cms comments discussion elefant

12/09 2012

1.0

1.0.0.0

A reusable, embeddable comments component for the Elefant CMS

  Sources   Download

MIT

The Requires

 

app cms comments discussion elefant