Function __global->actualise_post_comment

Definitions

sources/feedback.php

  • Add comments to the specified resource.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$allow_comments boolean required parameter N/A N/A Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
$feedback_type ID_TEXT required parameter N/A N/A The feedback type (downloads, etc) that this commenting is for
$content_id ID_TEXT required parameter N/A N/A The ID of the type that this commenting is for
$content_url mixed required parameter N/A N/A The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
$content_title ?string required parameter N/A N/A The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important)
$forum ?string Null N/A N/A The name of the forum to use (null: default comment forum)
$do_captcha boolean True N/A N/A Whether to require a captcha
$validated ?BINARY Null N/A N/A Whether the post is validated (null: unknown, find whether it needs to be marked not validated initially). This only works with the Conversr driver (hence is the last parameter).
$explicit_allow boolean False N/A N/A Whether to force allowance
$show_success_message boolean True N/A N/A Whether to show a success message
$private boolean False N/A N/A Whether posts made should not be shared
$post_title ?string Null N/A N/A Title of the post (null: lookup from POST environment)
$post ?string Null N/A N/A Body of the post (null: lookup from POST environment)
$time ?TIME Null N/A N/A Time of comment topic (null: now)

Return

  • Whether a hidden post has been made
  • Type: boolean
  • Set: N/A
  • Range: N/A