Welcome to Geeklog, Anonymous Thursday, June 19 2025 @ 11:59 pm EDT
Geeklog Forums
Enabling Comments Engine for Plugin
Status: offline
Forum User
Full Member
Registered: 03/23/02
Posts: 180
Hey folks,
Well, I'm stuck.
It seems that plugin_commentform_yeastdb is getting called, but the first parameter 'id' is not being set. It comes in blank. For the sake of my testing I'm manually calling the engine right now like this which is correct according to the plugin manual :
http://www.bodensatz.com/comment.php?type=yeastdb&id=6
And in my yeast database there is an item 6.
http://www.bodensatz.com/yeastdb/index.php?YMode=Display&Code=6
I know I'm getting close, but something just aint right.
Oh, I also hacked the DB and stuck a test comment in with sid=6 and type=yeastdb. But it still does not work with or without that.
BTW, I'm using this manual which
http://gplugs.sourceforge.net/pluginman/CommentAPI.php
cheers,
-Alan
13
12
Quote
Status: offline
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Alan,
You want to call comment.php and pass the variable cid not id. This is then used to call your plugin function in comment.php - approx line 347
Your Plugin function may then reference this as $id.
Blaine
11
16
Quote
Status: offline
Forum User
Full Member
Registered: 03/23/02
Posts: 180
That was it - thanks! It works now.
So now how do I get my comments to show up under the 'what's new' block?
cheers,
-Alan
16
15
Quote
Status: offline
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
That requires a custom hack to the COM_whatsNewBlock() function in lib-common. I included and example of my code to add this hack in the FileMgmt Plugin archive.
Blaine
15
11
Quote
Status: offline
Forum User
Full Member
Registered: 03/23/02
Posts: 180
Yeah, I figured it out actually and have it working now.
This should really be another plugin function that gets called by Geeklog for all plugins.
2.0? 1.4?
cheers,
-Alan
14
16
Quote
All times are EDT. The time is now 11:59 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content