Comments

<< Click to Display Table of Contents >>

Navigation:  Templates >

Comments

Displaying of this section can be configured in comments.tpl. Display of comments for the published article is configured in this section.

 

 

{author}

User who left the comment.

{mail}

E-mail of user who left the comment.

{date}

Publication date. The date format can be configured in system settings.

{comment}

Text of comment.

{comment limit="X"}

It displays the text of a comment without HTML formatting, where the text itself is reduced to the specified "x" number of symbols. The text is reduced to the last logical word, not to the middle of it.

{comment-id}

Comment ID.

{ip}

IP address of user who left the comment. Displays only to website Administrators.

[com-edit] and [/com-edit]

Link to the comment edit if it is allowed.

[com-del] and [/com-del]

Link to the comment removal if it is allowed.

{news_title}

Link to the article when viewing the last comments. Tag is removed if comments are displayed in the article.

{news-title}

It displays HTML-safe header of an article where the given comment belongs to. This tag is useful when you display customized comments and last comments.

{news-link}

It displays the URL of an article where the comment belongs to. This tag is useful when you display customized comments and last comments.

{foto}

Link to the photo.

{fullname}

Full name of a user.

{land}

Place of residence.

[signature] and [/signature]

Displays the enclosed text if user has set the signature in his profile.

{signature}

User's signature.

{registration}

Date of registration on the website.

{lastdate}

Date of the last visit.

[fast] [/fast]

Fast comments quotation.

{group-icon}

Icon of the user's group.

{group-name}

Name of the user's group.

{news-num}

Number of user's articles.

{comm-num}

Number of user's comments.

{date=date fromat}

Displays the date in the specified format. It allows you to display both the full date and its separate parts. The date format is set in accordance with the PHP format. For example, {date=d} tag displays the day of the article or comment publication, and {date=F} tag displays the name of the month. {date=d-m-Y H:i} displays the full date and time.

{login}

Login of the author without any links and menus.

[profile] text [/profile]

Displays the enclosed text as a link to the profile of the user who left a comment.

{mass-action}

Establishes the possibility of mass comments marking to perform mass actions on the site.

[complaint]

text

[/complaint]

Displays the enclosed text as a link to writing the complaint about the comment.

[xfgiven_x]

[xfvalue_x]

[/xfgiven_x]

Extra field "x" is displayed if it is not empty.

[xfnotgiven_x]

text

[/xfnotgiven_x]

Displays the enclosed text if user extra field has not been set, where X is the name of extra field of the user profile.

[xfvalue_x]

The value of extra field "x", where "x" is the name of extra field.

[fullname]

text [/fullname]

Displays the enclosed text if the full name has been set by the user.

[not-fullname]

text [/not-fullname]

Displays the enclosed text only if the full name has not been set by the user.

[land] text [/land]

Displays the enclosed text only if user has set the place of residence.

[not-land] text [/not-land]

Displays the enclosed text only if user has not set the place of residence.

[news-num]

text

[/news-num]

Displays the enclosed text only if user has news published by him.

[not-news-num]

text

[/not-news-num]

Displays the enclosed text only if user has no news published by him.

[comm-num]

text [/comm-num]

Displays the enclosed text only if user has comments.

[not-comm-num]

text [/not-comm-num]

Displays the enclosed text only if user has no comments.

[online] text [/online]

Displays the enclosed text only if user is online (20 minutes since the last visit).

[offline] text [/offline]

Displays the enclosed text only if user is offline.

[spam] Spammer [/spam]

Displays the enclosed text as a link to mark this user who left the comment as a spammer.

 

[declination=X] text [/declination]

Changes endings according to the specified number. X is a number and "text" is a word with its endings. Endings are specified separated by "|" symbol. This tag is useful to be used with other tags that display, for example, number of views of the article or number of comments. For example, [declination={comments-num}]commen|t|ts[/declination] displays the following, depending on the number of comments: "comment", "comments".

[commentsgroup=1,2,3]

text

[/commentsgroup]

Displays the enclosed text if the comments was written by the user who belonged to specified groups.

[not-commentsgroup=1,2,3]

text

[/not-commentsgroup]

Displays the enclosed text if the comments was written by the user who did not belong to specified groups.

 

[commentscount=x]

text

[/commentscount]

Displays the enclosed text if comment number X is displayed, where X is the number of comment shown on the page. For example, [commentscount=1] text [/commentscount] will show the text when the first comment will be displayed on the page. This tag is useful if you want to choose the place to display ads between comments. For example, the code [commentscount=1,10] ad code [/commentscount] which is added to the end of the template will display ads after the first and the tenth comment.

[not-commentscount=X]

text

[/not-commentscount]

Displays the enclosed text when any comments are displayed except the comment number X. This tag is useful if you want to show some design elements in all the article annotations except the specified ones, for example, if you do not want something to be displayed in the first article annotation.

[rating-type-1] text [/rating-type-1]

Displays the enclosed text if the first 'Rating' type was enabled in script settings.

[rating-type-2] text [/rating-type-2]

Displays the enclosed text if the second rating type 'Likes only' was enabled in script settings.

[rating-type-3] text [/rating-type-3]

Displays the enclosed text if the third rating type 'Like' or 'Dislike' was enabled in script settings.

[rating-type-4] text [/rating-type-4]

Displays the enclosed text if the fourth rating type 'Like' and 'Dislike' was enabled in script settings.

[rating-minus] text [/rating-minus]

Displays the enclosed text as a link to dislike the article. This link is displayed if the third rating type is used.

[rating-plus] text [/rating-plus]

Displays the enclosed text as a link to like the article. This link is displayed if the third rating type is used.

{rating}

Displays the comment rating.

{likes}

Display number of likes

{dislikes}

Display number of dislikes

{vote-num}

Displays the number of users who rated this comment.

[reply] text [/reply]

Enclosed text is displayed as a link to a pop-up window for replying to a comment if tree-like comments are enabled. If they are disabled it inserts the given commentator's username to the new comment form.

[treecomments]

text

[/treecomments]

Enclosed text is displayed if tree-like comments are enabled in script settings.

[not-treecomments]

text

[/not-treecomments]

Enclosed text is displayed if tree-like comments are disabled in script settings.

[rootcomments] text [/rootcomments]

The enclosed text is displayed if the comment is the parent comment, rather than a response to any other comment

[childrencomments] text [/childrencomments]

Display the enclosed text if the comment is a reply to another comment

{replycount}

It displays the number of replies for this comment.

[comments-author]

text

[/comments-author]

Enclosed text is displayed if user who views the page is the author of the comment.

[not-comments-author]

text

[/not-comments-author]

Enclosed text is displayed if user who views the page is not the author of the comment.

[news-author] text [/news-author]

Enclosed text is displayed if comment belongs to the author of the given article.

[not-news-author]

text

[/not-news-author]

Enclosed text is displayed if comment does not belong to the author of the given article.

[positive-comment]

text

[/positive-comment]

Enclosed text is displayed if the comment has positive rating.

[negative-comment]

text

[/negative-comment]

Enclosed text is displayed if the comment has negative rating.

[neutral-comment]

text

[/neutral-comment]

Enclosed text is displayed if the comment has neutral rating.

[catlist=1,2....] текст [/catlist]

Displays the enclosed text if the article belongs to the specified categories.

[not-catlist=1,2....] text [/not-catlist]

Displays the enclosed text if the article does not belong to the specified categories.