actualise_give_rating_points
actualise_post_comment
actualise_post_trackback
actualise_rating
actualise_specific_rating
already_rated
display_rating
embed_feedback_systems
extract_topic_identifier
feedback_fields
find_overridden_comment_forum
get_comments
get_details_behind_feedback_code
get_rating_box
get_rating_simple_array
get_trackbacks
post_comment_script
process_overridden_comment_forum
send_trackbacks
set_comment_forum_for
trackback_script
update_spacer_post
MAX_LIKES_TO_SHOW
RATING_TYPE_like_dislike
RATING_TYPE_star_choice
actualise_post_trackback(boolean $allow_trackbacks, \ID_TEXT $content_type, \ID_TEXT $content_id) : boolean
| package | core_feedback_features |
|---|
booleanWhether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXTThe type (download, etc) that this trackback is for
\ID_TEXTThe ID of the type that this trackback is for
booleanWhether trackbacks are onalready_rated(array $rating_for_types, \ID_TEXT $content_id) : boolean
| package | core_feedback_features |
|---|
arrayList of types (download, etc) that this rating is for. All need to be rated for it to return true.
\ID_TEXTThe ID of the type that this rating is for
booleanWhether the resource has already been ratedextract_topic_identifier(string $full_text) : string
| package | core_feedback_features |
|---|
stringPotentially complex topic title
stringSimplified topic titlefeedback_fields(boolean $allow_rating, boolean $allow_comments, \?boolean $allow_trackbacks, boolean $send_trackbacks, \LONG_TEXT $notes, \?boolean $allow_reviews= null, boolean $default_off= false, boolean $has_notes= true, boolean $show_header= true, string $field_name_prefix= '') : \Tempcode
| package | core_feedback_features |
|---|
booleanWhether rating is currently/by-default allowed for this resource
booleanWhether comments are currently/by-default allowed for this resource
\?booleanWhether trackbacks are currently/by-default allowed for this resource (null: this resource does not support trackbacks regardless)
booleanWhether we're allowed to send trackbacks for this resource
\LONG_TEXTThe current/by-default notes for this content
\?booleanWhether reviews are currently/by-default allowed for this resource (null: no reviews allowed here)
booleanWhether the default values for the allow options is actually off (this determines how the tray auto-hides itself)
booleanIf there's to be a notes field
booleanWhether to show a header
stringField name prefix
\TempcodeThe feedback editing fieldsfind_overridden_comment_forum(\ID_TEXT $feedback_code, \?ID_TEXT $category_id = null) : \ID_TEXT
| package | core_feedback_features |
|---|
\ID_TEXTThe feedback code, which we may have overridden the comment forum against
\?ID_TEXTThe category ID, which we may have overridden the comment forum against (null: no category ID to override against)
\ID_TEXTThe comment topic forum (may be integer as string, or string forum name - so use forum_id_from_name on the result)get_comments(\ID_TEXT $content_type, boolean $allow_comments, \ID_TEXT $content_id, boolean $invisible_if_no_comments= false, \?string $forum= null, \?string $post_warning= null, \?mixed $_comments= null, boolean $explicit_allow= false, \?boolean $reverse= null, \?MEMBER $highlight_by_user= null, boolean $allow_reviews= false, \?integer $num_to_show_limit= null) : \Tempcode
| package | core_feedback_features |
|---|
\ID_TEXTThe type (download, etc) that this commenting is for
booleanWhether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXTThe ID of the type that this commenting is for
booleanWhether the comment box will be invisible if there are not yet any comments (and you're not staff)
\?stringThe name of the forum to use (null: default comment forum)
\?stringThe default post to use (null: standard courtesy warning)
\?mixedThe raw comment array (null: lookup). This is useful if we want to pass it through a filter
booleanWhether to skip permission checks
\?booleanWhether to show in reverse date order (affects default search order only) (null: read config)
\?MEMBERUser to highlight the posts of (null: none)
booleanWhether to allow ratings along with the comment (like reviews)
\?integerMaximum to load (null: default)
\TempcodeThe Tempcode for the comment topicget_details_behind_feedback_code(\ID_TEXT $content_type, \ID_TEXT $content_id) : array
| package | core_feedback_features |
|---|
\ID_TEXTContent type
\ID_TEXTContent ID
arrayA tuple: Content title (null: unknown), Submitter (null: unknown), URL (for use within current browser session), URL (for use in emails / sharing), Content meta aware info arrayget_trackbacks(\ID_TEXT $content_type, \ID_TEXT $content_id, boolean $allow_trackback, \ID_TEXT $type = '') : \Tempcode
| package | core_feedback_features |
|---|
\ID_TEXTThe type (download, etc) that this trackback is for
\ID_TEXTThe ID of the type that this trackback is for
booleanWhether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXTThe type of details being fetched (currently: blank or XML)
\TempcodeTempcode for complete trackback boxprocess_overridden_comment_forum(\ID_TEXT $feedback_code, \ID_TEXT $id, \ID_TEXT $category_id, \ID_TEXT $old_category_id) : \ID_TEXT
| package | core_feedback_features |
|---|
\ID_TEXTThe feedback code, which we may have overridden the comment forum against
\ID_TEXTThe resource ID whose comment topic may need moving
\ID_TEXTThe new/current category ID, which we may have overridden the comment forum against
\ID_TEXTThe old category ID, which we may have overridden the comment forum against
\ID_TEXTThe comment topic forumsend_trackbacks(string $_urls, string $title, string $excerpt) : boolean
| package | core_feedback_features |
|---|
stringA comma-separated list of URLs to which we should trackback
stringThe article title
stringThe excerpt to send
booleanSuccess?set_comment_forum_for(\ID_TEXT $feedback_code, \?ID_TEXT $category_id, \ID_TEXT $forum_id)
| package | core_feedback_features |
|---|
\ID_TEXTThe feedback code to override the comment topic forum for
\?ID_TEXTThe category ID to override the comment topic forum for (null: none)
\ID_TEXTThe new comment topic forum
trackback_script()
| package | core_feedback_features |
|---|
update_spacer_post(boolean $allow_comments, \ID_TEXT $content_type, \ID_TEXT $content_id, mixed $content_url, \?string $content_title, \?string $forum= null, \?AUTO_LINK $post_id= null)
| package | core_feedback_features |
|---|
booleanWhether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXTThe type (download, etc) that this commenting is for
\ID_TEXTThe ID of the type that this commenting is for
mixedThe URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
\?stringThe 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)
\?stringThe name of the forum to use (null: default comment forum)
\?AUTO_LINKID of spacer post (null: unknown)
Add comments to the specified resource.
Parameters
$allow_comments
booleanWhether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
$content_type
\ID_TEXTThe type (download, etc) that this commenting is for
$content_id
\ID_TEXTThe ID of the type that this commenting is for
$content_url
mixedThe URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
$content_title
\?stringThe 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
\?stringThe name of the forum to use (null: default comment forum)
$avoid_captcha
booleanWhether to not require a captcha
$validated
\?BINARYWhether the post is validated (null: unknown, find whether it needs to be marked unvalidated initially). This only works with the Conversr driver (hence is the last parameter).
$explicit_allow
booleanWhether to force allowance
$no_success_message
booleanWhether to skip a success message
$private
booleanWhether posts made should not be shared
$post_title
\?stringTitle of the post (null: lookup from POST environment)
$post
\?stringBody of the post (null: lookup from POST environment)
$time
\?TIMETime of comment topic (null: now)
Returns
booleanWhether a hidden post has been made