Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-06-05 21:01:22

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

comment.saved

Callback for comments that are saved complete with commentid.

Offline

#2 2012-06-06 04:00:32

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: comment.saved

I’m considering a core-file edit to get around this limitation for a current plugin, or a tricksy get-hash-value-of-comment pre-save (comment.save) and compare if commented != Null. Make my life easier, add a call back and a mechanism to get the $rs value.

Offline

#3 2012-06-06 08:28:42

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: comment.saved

Please try r3805.

Offline

#4 2012-06-06 12:46:53

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: comment.saved

wet wrote:

Please try r3805.

Awesome :)

Offline

#5 2012-06-06 13:58:17

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: comment.saved

Yes. That’s absolutely awesome. THANKS!

Offline

#6 2012-06-07 03:44:32

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: comment.saved

Errr… Maybe I’m daft, but how am I supposed to get that array?

Offline

#7 2012-06-07 04:39:55

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: comment.saved

nm… I’m stuck on stupid

$argv = func_get_args();

Offline

#8 2012-06-07 06:23:11

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: comment.saved

Eric, fork this!

Offline

Board footer

Powered by FluxBB