Personal messages

<< Click to Display Table of Contents >>

Navigation:  Templates >

Personal messages

Displaying of this section can be configured in pm.tpl. Personal messages templates can be configured in this section. 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:

 

[inbox] and [/inbox]

Link to inbox.

[new_pm] and [/new_pm]

Link to unread personal messages.

[pmlist] and [/pmlist]

Displays the enclosed text if personal message list is viewed.

{pmlist}

Personal message list.

[newpm] and [/newpm]

Displays the enclosed text when writing new personal message.

[readpm] and [/readpm]

Displays text in the tags if the message is viewed.

[messages] и [/messages]

Displays the text enclosed in them when displaying messages in a conversation. This tag must be inside the [readpm] and [/readpm] tags.

{pm-limit}

Maximum number of messages that user can store.

{proc-pm-limit}

Used space in the inbox of the user as a percentage.

{pm-progress-bar}

Bar of fullness of personal messages.

{author}

Recipient of the message.

{subj}

Subject of the message.

{editor}

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

{text}

Text of message.

[pm-edit] and [/pm-edit]

Displays a link to edit the message.

[reply] and [/reply]

Link to quote to a message.

[del] and [/del]

Link to delete a message.

{sec_code}

Displays CAPTCHA code.

[sec_code] and [/sec_code]

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

{foto}

Link to a photo.

{group-icon}

User's group icon.

{group-name}

User's group name.

{news-num}

Number of user's news.

{comm-num}

Number of user's comments.

[signature]{signature}[/signature]

Displays the enclosed text and user's signature if user has set it in his profile.

{date}

Comments publication date. The date format can be configured in system settings.

{registration}

Date of the registration.

[recaptcha]

text

[/recaptcha]

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

{recaptcha}

Displays reCAPTCHA widget if it was enabled in settings.

[complaint]

text

[/complaint]

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

[ignore]text[/ignore]

Displays inks to add user to ignore list.

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

 

[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: "1 comment", "10 comments"

{login}

Displays the login of the author of the personal message, without any additional registration

{date=date format}

Outputs the date in the format specified in the tag. For example the tag {date=d} displays the day of the month of publication of the news or comment, and the tag {date=F} displays the name of the month, and the tag {date=d-m-Y H:i} displays the full date and time.

{lastdate=date format}

Displays the last site visit by the user in the format specified in the tag. For example the tag {lastdate=d} displays the day of the month, and the tag {lastdate=F} displays the name of the month, and the tag {lastdate=d-m-Y H:i} displays the full date and time.

{registration=date format}

Displays the user's registration date in the format specified in the tag. For example the tag {registration=d} displays the day of the month, and the tag {registration=F} displays the name of the month, and the tag {registration=d-m-Y H:i} displays the full date and time.

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

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

[xfvalue_X format="Format"]

It is intended for displaying additional fields with the type “Date and time” where X is the name of the additional field, and “Format” this is the output format of the date and time specified in the field. You can output this additional field in different date and time formats, and not only in the format specified for the default field in the field settings. For example, the tag [xfvalue_test format="j F Y H:i"] displays the date and time specified in the field in time format j F Y H:i.

[ifxfset fields="X"] text [/ifxfset]

The text enclosed in them is output if the field with the name X has been set and filled in for the news. At the same time, you can list several field names separated by commas. For example [if xf set fields="test1,test2"]both fields named test1 and test2 are filled in[/ifxfset] will output text if both fields were filled in the news. The main difference from the existing tags [xfgiven_x] and [xfnotgiven_x] is that you can list several fields at the same time and the fullness of all listed fields is checked at the same time, as well as the fullness of fields without values is checked, for example, if the field is set to “0” or the value “no”, this is also a filled field in publications.

[ifxfnotset fields="X"] text [/ifxfnotset]

The text enclosed in them is output if the field with the name X has not been specified and filled in for the news. However, you can also list several field names separated by commas. For example [ifxfnotset fields="test1,test2"]both fields named test1 and test2 were not filled in[/ifxfnotset] will output text if both fields were not filled in the news. The main difference from the existing tags [xfgiven_x] and [xfnotgiven_x] is that you can list several fields at the same time and the fullness of all listed fields is checked at the same time, as well as the fullness of fields without values is checked, for example, if the field is set to “0” or the value “no”, this is also a filled field in publications.

[pm-author] text [/pm-author]

Display the text contained in them if the user viewing the correspondence is the author of this message

[not-pm-author] text [/not-pm-author]

Display the text if the user is not the author of this message.