Welcome to Geeklog, Anonymous Monday, April 15 2024 @ 08:11 am EDT

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
 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
 Quote

Status: offline

amckay

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
 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
 Quote

Status: offline

amckay

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
 Quote

All times are EDT. The time is now 08:11 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