Saturday, January 25 2003 @ 01:06 PM EST
Contributed by: amckay
Views: 1,327
OK, I am slowly understanding how to enable comments on my plugin, but one key thing that seems to not be documented is : how do I call the comment engine from my code? My plugin has many screens and obviously not all of them should have comments enabled. Only when I get a detailed view of an individual yeast in my yeast db should comments be enabled.
Poking through the lib-common.php I see COM_commentBar(), and my guess would be that I call this where I want to enable comments (in addition of course to implementing the 4 comment APIs). So I downloaded the filemgt plugin just to view it as sample code, and unfortunately there do not appear to be any calls in it to 'commentbar', so maybe I'm wrong.
And even if I'm right, and example would be nice. The in-line code comments in the lib-common do not give me all I need to know about how to call this function.
The following comments are owned by whomever posted them. This site is not responsible for what they say.
More comments questions
Authored by: anonymous on
Saturday, January 25 2003 @ 08:45 PM EST
OK, I think I just found my answer here
http://gplugs.sourceforge.net/pluginman/CommentAPI.php
I\'ll go through it and let you know if I still have problem.
http://gplugs.sourceforge.net/pluginman/CommentAPI.php
I\'ll go through it and let you know if I still have problem.
thanks,
-Alan