Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 11:48 am EST
Geeklog Forums
Enabling Comments Engine for Plugin
Status: offline
amckay
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
6
5
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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
Geeklog components by PortalParts -- www.portalparts.com
Geeklog components by PortalParts -- www.portalparts.com
5
7
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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
Geeklog components by PortalParts -- www.portalparts.com
Geeklog components by PortalParts -- www.portalparts.com
6
5
Quote
All times are EST. The time is now 11:48 am.
- 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