Fork me on GitHub

EZComments example  Bottom

  • Hi all,

    I was wondering if someone would show off an example of the EZComments module. Please link to your site so I can see what it looks like. I didn't see a demo page at:

    http://mods.postnuke.com/Article2672.html

    Thanks,
    Grant
  • An example of EZComments can be seen at my site. Note that this is a example of custom template not one that is provided with EZComments by default.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Thanks Mark. If I've already designed a module (without hooks), can I go back and add the hooks code and add EZComments? Or did I need to add it before I created each object to reserve an ID in the comment database. Sorry for the unclarity, but I'm not real sure how EZComments works.

    Thanks,
    Grant
  • All EZComments needs is a unique id of the item within your module so that the combination module name and item id is unique.

    If that is the case you can just call the pnmodcallhooks (Smarty) function. Check out the file in the Example module /modules/Example/pntemplates/example_user_display.htm

    HTH
  • So technically I can add the hooks code and EZComments to my module at a later date?
  • Sure. You might want to see how it looks though. If you are displaying a lot of items at the same time and you do the hooks call, the result might not be what you wanted (for example 50 select boxes to display comments flat or threaded icon_smile )
  • As has been said already hooks can very easily be added retrospectively to a module. Hooks are implemented (depending on the hook type) in either the templates or the PHP code (a pnmodcallhooks plugin or a pnModCallHooks API).

    Note that there are several other standard hooks calls needed from .76x. A quick (case insensitive) text search for pnmodcallhooks on the example module will show the exact structure.

    -Mark

    --
    Visit My homepage and Zikula themes.

This list is based on users active over the last 60 minutes.