Add anonymous comment


Add anonymous comment

/action/v2/addanonymouscomment

Adds a comment without requiring the user to login. Uses captcha to prevent automatic spamming. Must specify the parentId param - the id of the media commented on. Must also specify the comment body in the message param. Comments can be added to a channel, specified by the channel param. Tags can be added to the comment with tag param.

Requires a form token

Supports redirectUrl param of fm:Form component

All optional params can be set as required.

Example

<fm:Form action="/action/v2/addanonymouscomment" method="post" > <input type="hidden" name="parentId" value="555888" /> <fm:Form_TextInput name="name" /> <fm:Form_Email name="email" /> <fm:Form_TextInput name="url" /> <fm:Form_TextArea name="message" /> <fm:Form_Captcha name="captcha" /> <fm:Form_Custom><button type="submit">Add Comment</button></fm:Form_Custom> </fm:Form>

Supported params

Name Required Description
parentId Required Id of the media being commented on. Must be a valid id in the project in Newzulu Platform.
message Required Comment body - text, limited to 65000 chars.
captcha Required Captcha verification. Use fm:Form_Captcha
channel Id of the channel to place the comment into. Must be numeric and be a valid channel id in the project in Newzulu Platform, defaults to channel "Comments", and will create this channel if it doesn't already exist.
tags Tags for the comment. String of comma separated tags, limited to 255 chars
title Title of the comment. String, limited to 80 chars
name Author's name. String, limited to 100 chars
email Author's email. String, limited to 100 chars
url Author's website. Must be a valid url. String, limited to 100 chars

See also