Add comment

<< Click to Display Table of Contents >>

Navigation:  Templates >

Add comment

Display of this form is configured in addcomments.tpl. Templates are customized in this section which are used when users adding comments to the database. It is not recommended to edit this section without knowledge of HTML, because it uses the field names that are passed to the script via the form. In other words, you can edit the text as you like, but do not change the names of the fields, it is extremely important. You can use the following tags:

 

{title}

Title that explains if this form is for adding or to editing the comment.

[not-logged] and [/not-logged]

Displays the enclosed code if the user is not registered. For example, you can enclose login and e-mail fields in these tags. If these fields are not filled and the user is logged in, these data will be automatically taken from his/her profile.

{editor}

Displays BBCODE or WYSIWYG editor depending on the settings for adding the comment.

{image-upload}

Display a special field where the user can drag and drop images to upload, or select them from the computer

[sec_code] and [/sec_code]

Displays the enclosed text if it was set to use CAPTCHA when adding the comment.

{sec_code}

Displays the CAPTCHA code.

[recaptcha]

text

[/recaptcha]

Displays the enclosed text if reCAPTCHA type was enabled in settings.

{recaptcha}

Displays reCAPTCHA widget if it was enabled in settings.

[question] and [/question]

Displays the enclosed text if question/answer system was enabled.

{question}

Displays the question from the list of questions that was previously set.

[vk] text [/vk]

Displays the enclosed text if authorization using VK network is enabled.

{vk_url}

Displays the URL link to log in to VK.

[odnoklassniki] text [/odnoklassniki]

Displays the enclosed text if authorization using Odnoklassniki network is enabled.

{odnoklassniki_url}

Displays the URL link to log in to Odnoklassniki.

[facebook] text [/facebook]

Displays the enclosed text if authorization using Facebook is enabled.

{facebook_url}

Выводит ссылку URL на авторизацию в соц. сети Facebook

[google] text [/google]

Displays the enclosed text if authorization using Google is enabled.

{google_url}

Displays the URL link to log in to Google.

[mailru] text [/mailru]

Displays the enclosed text if authorization using Mail.ru is enabled.

{mailru_url}

Displays the URL link to log in to Mail.ru.

[yandex] text [/yandex]

Displays the enclosed text if authorization using Yandex is enabled.

{yandex_url}

Displays the URL link to log in to Yandex.

[comments-subscribe]

text

[/comments-subscribe]

Text between them is displayed as a link to the article comments subscription.

[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.

[allow-comments-subscribe] text [/allow-comments-subscribe]

Show the text enclosed in them, if the user is allowed to subscribe to comments. Thus, you can make a link to subscribe to comments in the block you need and hide it if the subscription is prohibited.

[comments-unsubscribe] text [/comments-unsubscribe]

Show the text enclosed in them as a link to unsubscribe from comments to this publication. Thus, users can unsubscribe from only one specific news on the site, previously they had to unsubscribe from all publications

{comments-subscribe}

Displays a checkbox for subscribing to comments in the form of adding a comment