Carma comments display
From TMM Wiki
Jump to navigationJump to searchcarma_comments_display
Display the comments made by members on a content set.
Aliases: carma_comment_display, carma_display_comment, carma_display_comments
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
galid | Display this gallery's comments | Any valid gallery number | None. You must provide a valid gallery number | galid="123" |
tpl | Display comments using this template | Any valid template name | comments_display (Display comments using the comments_display template) | tpl="my_template" |
count | Show this many comments | Any whole number greater than zero | 5 (Shows 5 comments) | count=20 |
start | Don't show the comments lower than this number | Any whole number, zero or greater | 0 (Shows all comments) | start=20 |
approved | Display only comments approved by an admin | 1 | None. Display all comments | approved=1 |
data_only | Put the comments in an array | 1 | None. Displays comments | data_only=1 |
order | Sort the results by this field of the cms_comments table | Any field of the cms_comments (see Notes below) | added DESC | order="added ASC" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
assign | Name of the Smarty variable that stores the output | Any valid Smarty variable name | None. Output is displayed, not stored | assign="my_var" |
display_on_assign | Display comments even when the assign parameter (above) is used | 1 | None If assign is used, no comments are displayed | display_on_assign=1 |
Output
Displays the comments made by members on a specific gallery. You can view and approve the Comments Feedback Admin.
Notes
You can use the order parameter with any of the following options:
- memberid
- comment
- added
- approved
- section
See Also
- carma_comments_form -- Display a form where members can enter comments