Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Integrate EZComments into any kind of content

hvorragend edited this page Aug 5, 2011 · 1 revision

If you want to make a module commentable (as module developer for example) integrate these codelines into your template at the place where you want to have your comment function.

  1. Step: Generate the return url. EZComments has to know from which page the comment was sent from. This is an example of the MyProfile profile module
  1. Step. Call the hook: This is also an example from the MyProfile module. module has to be the commentable module, returnurl is the url we constructed one line above this text and owneruid should be the owner of the displayed content. This (owneruid) is very importan because it allows the content owner (weblog owner, gallery owner, profile owner) to moderate the comments other users submitted for his content. Otherwise the admin (you?) have to moderate everything by hand!
Clone this wiki locally