User Profile

<< Click to Display Table of Contents >>

Navigation:  Templates >

User Profile

Display of this form is configured in userinfo.tpl. Templates are customized in this section which are used to display the user profile. 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:

 

{usertitle}

Username.

{info}

Brief information about the user.

{editmail}

E-mail address.

{comm-num}

Number of comments.

{news-num}

Number of news.

{status}

User status (his/her user group).

{rate}

Current rating of user's articles (formed automatically on the basis of the articles rating).

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

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

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

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

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

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

[comments-rating-type-1]

text [/comments-rating-typepe-1]

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

[comments-rating-type-2]

text [/comments-rating-type-2]

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

[comments-rating-type-3]

text [/comments-rating-typepe-3]

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

{commentsrate}

Displays the total rating of all comments of this user.

{ratingscore}

Displays the number of the average rating of all the user's publications, from one to five, while maintaining a fractional value. For example, depending on the rating, it can be 1.6 or 4.2, etc.

{commentsratingscore}

Displays the number of the average rating of all user comments, from one to five, while maintaining a fractional value. For example, depending on the rating, it can be 1.6 or 4.2, etc.

{registration}

User's date of registration.

{editinfo}

Displays existing summary information in the field when editing the profile.

{hidemail}

Displays checkbox to hide an e-mail address.

{foto}

Link to the uploaded photo.

{fullname}

Full name of the user.

{land}

User's place of residence.

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

Displays the enclosed code if user views his own profile. It is used to allow visitors edit their own profiles.

[signature] and [/signature]

Displays the enclosed text if user has set the signature.

{signature}

Displays the user's signature.

{editsignature}

Displays the user's signature formatted for editing.

{lastdate}

Displays the date of the last visit.

{comments}

Link to all the user's comments.

{allowed-ip}

IP from which the registration is allowed.

{xfields}

Displays extra fields of the profile when edited.

[xfinput_X]

Displays your extra fields of the form in the desired location, where X is the name of the extra field

[xfvalue_x]

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

[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 user profile extra field.

{group-icon}

The user's group icon.

[time_limit]  [/time_limit]

Displays the enclosed text if user is in the temporary group.

{time_limit}

Displays the date before which the user is in the temporary group.

{news}

Link to all the news published by the user.

[rss] text [/rss]

Link in the profile to the RSS feed of all the news of the user.

{ignore-list}

List of users from the ignore list.

[fullname]

text [/fullname]

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

[not-fullname]

text [/not-fullname]

Displays the enclosed text if user's full name has not been set.

[land] text [/land]

Displays the enclosed text if user's place of residence has been set.

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

Displays the enclosed text if user's place of residence has not been set.

[news-num]

text

[/news-num]

Displays the enclosed text if user published news on the website.

[not-news-num]

text

[/not-news-num]

Displays the enclosed text if user did not publish news on the website.

[comm-num]

text [/comm-num]

Displays the enclosed text if user left comments on the website.

[not-comm-num]

text [/not-comm-num]

Displays the enclosed text if user did not leave comments on the website.

[online] text [/online]

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

[offline] text [/offline]

Displays the enclosed text if user is offline.

[profile-user-group=X] Text [/profile-user-group]

The enclosed text is displayed if the group of the user, whose profile is viewed, belongs to the group X, where X is the group number. Groups can also be listed by comma.

[not-profile-user-group=X] Text [/not-profile-user-group]

The enclosed text is displayed if the group of the user, whose profile is viewed, does not belong to the group X, where X is the group number.

{timezones}

It shows list of available time zones, and allows user to choose time zone for his/her profile on the website.

{news-subscribe}

Displays a checkbox for unsubscribing from comments and the number of signed publications.

{unsubscribe}

Displays a checkbox for a subscription to receive notifications of new comments that are added to the news authored by the user.

{comments-reply-subscribe}

Displays a checkbox for a subscription to receive notifications of new comments that are replies to comments of the user.

{pm}

Link to writing a personal message to the user

{email}

Link to writing E-mail messages to the user

{twofactor-auth}

Displays the check box where user can enable or disable Two-Factor Authentication

[banned] text [/banned]

display the text enclosed in them if the user is currently banned from the site

[not-banned] text [not-banned]

display the text enclosed in them if the user is not banned from the site

{ban-description}

displays the reason why the user is banned

{ban-date}

displays the date before which the user was banned from the site

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

Displays the URL link to log in to 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.

{social-list}

Displays a list of linked social networks and links to disconnect them from this account

[attached-vk] text [/attached-vk]

Displays the enclosed text if the user's account is linked to the network VK

[attached-odnoklassniki] text [/attached-odnoklassniki]

Displays the enclosed text if the user's account is linked to the network Odnoklassniki

[attached-facebook] text [/attached-facebook]

Displays the enclosed text if the user's account is linked to the network Facebook

[attached-google] text [/attached-google]

Displays the enclosed text if the user's account is linked to the network Google

[attached-mailru] text [/attached-mailru]

Displays the enclosed text if the user's account is linked to the network Mail.ru

[attached-yandex] text [/attached-yandex]

Displays the enclosed text if the user's account is linked to the network Yandex

[detach-vk] text [/detach-vk]

Displays the text enclosed in them as a link to unlink the account from the VK social network, if the user's account is linked to it.

[detach-odnoklassniki] text [/detach-odnoklassniki]

Displays the text enclosed in them as a link to unlink the account from the Odnoklassniki social network, if the user's account is linked to it.

[detach-facebook] text [/detach-facebook]

Displays the text enclosed in them as a link to unlink the account from the Facebook social network, if the user's account is linked to it.

[detach-google] text [/detach-google]

Displays the text enclosed in them as a link to unlink the account from the Google social network, if the user's account is linked to it.

[detach-mailru] text [/detach-mailru]

Displays the text enclosed in them as a link to unlink the account from the Mail.ru social network, if the user's account is linked to it.

[detach-yandex] text [/detach-yandex]

Displays the text enclosed in them as a link to unlink the account from the Yandex social network, if the user's account is linked to it.

[ignore] text [/ignore]

Show the text enclosed in them as a link to add the user to the ignored list

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

[delete] Text [/delete]

Display the text enclosed in them as a link to delete the user's own profile on the site, if he is allowed to do so by the settings of user groups

[if field = "value"] text [/if]

display the text enclosed in it if the field value is equal to the specified value

 

[if field = "value"] text [/if] - shows the text if the field is equal to 'value’ parameter

[if field != "value"]text[/if] - shows the text if the field is not equal to 'value’ parameter

[if field > "1"] text [/if] - shows the text if the field is greater than 'value’ parameter

[if field >= "2"] text [/if] - shows the text if the field is greater than or equal to 'value’ parameter

[if field < "3"] text [/if] - shows the text if the field is less than 'value’ parameter

[if field <= "4"] text [/if] - shows the text if the field is less than or equal to 'value’ parameter

[if field ~ "value"] text [/if] - shows the text if there is word 'value’ in the field

[if field !~ "value"] text [/if] - shows the text if the word 'value’ is NOT in the field

 

Combined use:

 

[if field > "3" AND field2 < "5"] text [/if] shows the text if “field” field is greater than three, and field2 is less than 5

[if field > "3" OR field2 < "5"] text [/if] shows the text if “field” field is greater than three or field2 is less than 5, that is, if any of the conditions match

 

Names for field:

 

name - User login. (text)

email - User's e-mail (text)

user_id - Unique User ID (number)

news_num - Number of user publications (number)

comm_num - Number of user comments (number)

user_group - User group (number)

lastdate - Date of the user's last visit (date in English format, for example "2020-09-01" or "10 September 2020" or "next Thursday" or "+1 day" or "next Thursday" or in unix format, if an equal sign is used, the date is rounded to the minute)

reg_date - User registration date (date in English format, for example "2020-09-01" or "10 September 2020" or "next Thursday" or "+1 day" or "next Thursday" or in unix format, if an equal sign is used, the date is rounded to the minute)

allow_mail - Has the user allowed to receive emails from the site (number 1 or 0)

info - User's information about himself (text)

signature - User signature (text)

fullname - Full user name (text)

land - User's place of residence (text)

foto - Link to the user's avatar (text)

pm_all - Number of personal messages of the user (number)

pm_unread - The number of unread personal messages of the user (number)

restricted - are there restrictions on the user (number 0 - there are no restrictions, 1 - a ban on adding publications 2 - a ban on adding comments 3 - a ban on publications and comments)

restricted_days - The number of days for which the restrictions is imposed (number)

restricted_date - The date before which the user is banned (date in English format, for example "2020-09-01" or "10 September 2020" or "next Thursday" or "+1 day" or "next Thursday" or in unix format, if an equal sign is used, the date is rounded to the minute)

logged_ip - The IP with which the user visited the site (text)

timezone - User's time zone in time zone format, for example Europe/Moscow (text)

news_subscribe - Is the user subscribed to notifications about new publications (number 1 or 0)

comments_reply_subscribe - Is the user subscribed to notifications about responses to their comments (number 1 or 0)

twofactor_auth - Has the user enabled two-factor authorization (number 1 or 0)

cat_allow_addnews - Categories to which the user is allowed to add publications (array of category IDs)

cat_add - Categories that are trusted by the user when adding publications (array of category IDs)

xfield_x - The value of the user's additional field, where x is the name of the additional field. For example xfield_test is the value of the additional field test