<< Click to Display Table of Contents >> Navigation: Templates > Profile pop-up window |
Displaying of this section can be configured in profile_popup.tpl. Profile pop-up window templates can be configured in this section:
{user-id} |
Outputs the user ID. This tag can be used in a number of cases when designing a template, as well as, for example, to form user links, such as links to the user's recent comments, etc. |
{usertitle} |
Display the user's name |
{fullname} |
Full name. |
{foto} |
Uploaded photo. |
{status} |
User status. |
{registration} |
Date of registration. |
{lastdate} |
Date of the last visit. |
{comm-num} |
Number of comments. |
{news-num} |
Number of news. |
{land} |
Place of residence. |
{info} |
Brief information about the user. |
{rate} |
Current rating of user's articles (formed automatically on the basis of the articles rating). |
[own-profile] text [/own-profile] |
They display the text enclosed in them, if the user is viewing his own profile on the site |
[not-own-profile] text [/not-own-profile] |
They display the text enclosed in them, if the user is viewing someone else's profile on the site |
[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 [/rating-type-1] |
Displays the enclosed text if the first 'Rating' type was enabled for comments in script settings. |
[comments-rating-type-2] text [/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 [/rating-type-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. |
[signature] and [/signature] |
Displays the enclosed text if user has set the signature. |
{signature} |
Displays the user's signature. |
{group-icon} |
The user's group icon. |
{news} |
Link to all the news published by the user. |
{comments} |
Link to all the user's comments. |
[rss] text [/rss] |
Link in the profile to the RSS feed of all the news of the user. |
[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. |
[icq] text [/icq] |
Displays the enclosed text if user's ICQ number has been set. |
[not-icq] text [/not-icq] |
Displays the enclosed text if user's ICQ number 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. |
[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. |
[xfvalue_x] |
Displays the value of extra field "x", where "x" is the name of extra field. |
[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. |
[ignore] text [/ignore] |
Show the text enclosed in them as a link to add the user to the ignored list |
[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 |
[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 |