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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
EZComments example
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 240
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 -
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
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 -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 240
So technically I can add the hooks code and EZComments to my module at a later date? -
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
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
)
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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.
- Moderated by:
- Support
