Profil de l’utilisateur

L'affichage de cette section est configuré dans le fichier userinfo.tpl. Cette section configure les templates utilisés lors de l'affichage du profil utilisateur. La modification de cette section sans connaissance du HTML n'est pas recommandée, car elle utilise des noms de champs transmis au script via des formulaires. En d'autres termes, vous pouvez modifier le texte comme vous le souhaitez, mais ne changez pas les noms de champs, c'est extrêmement important. Les balises suivantes peuvent être utilisées :

{user-id}

Affiche l'ID de l'utilisateur. Cette balise peut être utilisée dans plusieurs cas lors de la conception du template, par exemple pour créer des liens personnalisés vers les derniers commentaires de l'utilisateur, etc.

{usertitle}

Affiche le nom de l'utilisateur

{info}

Brève information sur l'utilisateur

{editmail}

Affiche l'adresse e-mail de l'utilisateur

{comm-num}

Affiche le nombre de commentaires

{news-num}

Affiche le nombre de publications de l'utilisateur

{status}

Statut de l'utilisateur (son groupe sur le site)

{rate}

Note actuelle des publications du visiteur (calculée automatiquement à partir de la note de ses articles)

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

Affiche le texte qu'elles contiennent si the first note type 'Score' is enabled for news in the script paramètres.

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

Affiche le texte qu'elles contiennent si the second note type 'Likes Only' is enabled for news in the script paramètres.

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

Affiche le texte qu'elles contiennent si the third note type 'Like' or 'Dislike' is enabled for news in the script paramètres.

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

Affiche le texte qu'elles contiennent si the first note type 'Score' is enabled for commentaires in the script paramètres.

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

Affiche le texte qu'elles contiennent si the second note type 'Likes Only' is enabled for commentaires in the script paramètres.

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

Affiche le texte qu'elles contiennent si the third note type 'Like' or 'Dislike' is enabled for commentaires in the script paramètres.

{commentsrate}

Affiche le total note of all commentaires by this utilisateur.

{ratingscore}

Affiche le average note valeur of all utilisateur publications, from one to five, preserving the fractional valeur. Par exemple, depending on the assigned note, it may be 1.6 or 4.2, and so on. This balise makes it possible, par exemple, to create your own star note design with partial filling rather than only 2 or 4 fully filled stars.

{commentsratingscore}

Affiche le average note valeur of all utilisateur commentaires, from one to five, preserving the fractional valeur. Par exemple, depending on the assigned note, it may be 1.6 or 4.2, and so on.

{registration}

Affiche le date of the utilisateur's registration on the site

{editinfo}

Affiche le existing short information into the champ lorsque editing the profil

{hidemail}

Affiche le checkbox for hiding the e-mail address.

{foto}

Affiche un lien vers la photo téléchargée

{fullname}

Affiche le nom complet de l'utilisateur

{land}

Affiche le utilisateur's lieu de résidence

[own-profile]
text
[/own-profile]

Affiche le texte qu'elles contiennent si l'utilisateur consulte son propre profil sur le site

[not-own-profile]
text
[/not-own-profile]

Affiche le texte qu'elles contiennent si l'utilisateur consulte le profil d'une autre personne sur le site

[not-logged]
text
[/not-logged]

Affiche le code contenu in the balises if the utilisateur lors de l'affichage the profil is this very utilisateur or the site administrator. It is used so that visitors can edit their own profil.

[signature]
text
[/signature]

Affiche le texte contenu dans les balises si the utilisateur has set a signature in the profil

{signature}

Affiche le utilisateur's signature

{editsignature}

Affiche le utilisateur's signature formatted for editing

{lastdate}

Affiche le date of the utilisateur's dernière visite sur le site

{comments}

Affiche un lien to all commentaires of this utilisateur

{allowed-ip}

Valeur IP à partir de laquelle l'autorisation est permise

{xfields}

Affiche le list of profil champ supplémentaires lorsque editing them

[xfinput_X]

Affiche your sélectionné champ supplémentaire as a form champ in the required place, où X is the name of the champ supplémentaire

[xfvalue_x]

Affiche le valeur of the champ supplémentaire "x", où "x" is the name of the champ supplémentaire

[xfvalue_X format="Format"]

Intended for outputting champ supplémentaires of the “Date and time” type où X is the name of the champ supplémentaire and “Format” is the output format of the date and time set in the champ. You can output this champ supplémentaire in different date and time formats, not only in the default format indiqué in the champ paramètres. Par exemple, la balise [xfvalue_test format="j F Y H:i"] outputs the date and time set in the champ in the j F Y H:i format.

[xfgiven_x]
text
[/xfgiven_x]

Affiche le texte indiqué dans les balises si the champ supplémentaire "x" is not empty.

[xfnotgiven_x]
text
[/xfnotgiven_x]

Affiche le indiqué text if the utilisateur's champ supplémentaire was not set, où X is the name of the utilisateur profil champ supplémentaire

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

Affiche le contenu text if the champ named X was set and filled for the publication. You can also list several champ names separated by commas. Par exemple, [ifxfset fields="test1,test2"]both champs named test1 and test2 are filled[/ifxfset] will output the text if both champs were filled in the publication. The main difference from the existing [xfgiven_x] and [xfnotgiven_x] balises is that you can list several champs at the same time and the filled state of all listed champs is checked simultaneously, and it is the actual champ completion that is checked. Par exemple, if a champ contains “0” or the valeur “no”, it is still considered a filled champ in the publication.

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

Affiche le contenu text if the champ named X was not set and filled for the publication. You can also list several champ names separated by commas. Par exemple, [ifxfnotset fields="test1,test2"]both champs named test1 and test2 are not filled[/ifxfnotset] will output the text if both champs were not filled in the publication. The main difference from the existing [xfgiven_x] and [xfnotgiven_x] balises is that you can list several champs at the same time and the filled state of all listed champs is checked simultaneously, and it is the actual champ completion that is checked. Par exemple, if a champ contains “0” or the valeur “no”, it is still considered a filled champ in the publication.

{group-icon}

Affiche le participant groupe icon

[time_limit]
text
[/time_limit]

Affiche le text between the balises if the utilisateur is in a temporary groupe

{time_limit}

Affiche le date until which the utilisateur remains in the temporary groupe

{news}

Affiche un lien to view all news of this utilisateur

[rss]
text
[/rss]

Affiche un lien in the profil to the RSS feed of all utilisateur news.

{ignore-list}

List of utilisateurs added to ignored utilisateurs.

[fullname]
text
[/fullname]

Affiche le contenu text uniquement si the utilisateur's nom complet is indiqué

[not-fullname]
text
[/not-fullname]

Affiche le text indiqué in the balises uniquement si the utilisateur's nom complet is not indiqué

[land]
text
[/land]

Affiche le contenu text uniquement si the utilisateur's lieu de résidence has been indiqué

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

Affiche le text indiqué in the balises uniquement si the utilisateur's lieu de résidence has not been indiqué

[info]
text
[/info]

Affiche le texte contenu dans les balises si the utilisateur has entered short information about themselves in the profil

[not-info]
text
[/not-info]

Affiche le texte contenu dans les balises si the utilisateur has not entered short information about themselves in the profil

[news-num]
text
[/news-num]

Affiche le contenu text if this utilisateur has published publications on the site

[not-news-num]
text
[/not-news-num]

Affiche le contenu text if this utilisateur has no publications on the site

[comm-num]
text
[/comm-num]

Affiche le contenu text if this utilisateur has published commentaires on the site

[not-comm-num]
text
[/not-comm-num]

Affiche le contenu text if this utilisateur has no commentaires on the site

[online]
text
[/online]

Affiche le text if the utilisateur is online (20 minutes since the utilisateur's dernière visite sur le site)

[offline]
text
[/offline]

Affiche le text if the utilisateur is offline

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

Affiche le contenu text if the groupe of the utilisateur whose profil is being viewed belongs to the indiqué groupe X, où X is the groupe number. Listing several required groupes separated by commas is also allowed.

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

Affiche le contenu text if the groupe of the utilisateur whose profil is being viewed does not belong to the indiqué groupe X, où X is the groupe number.

{timezones}

Affiche le list of time zones available in the system and allows the utilisateur to choose their own time zone for their profil on the site.

{unsubscribe}

Affiche le checkbox for unsubscribing from commentaires and the nombre de subscribed publications.

{news-subscribe}

Affiche le checkbox for subscribing to notifications about new commentaires added to publications whose auteur is the utilisateur.

{comments-reply-subscribe}

Affiche le checkbox for subscribing to notifications about new commentaires that are replies to the utilisateur's own commentaires.

{pm}

Lien vers write a personal message to the utilisateur

{email}

Lien vers write an E-Mail message to the utilisateur

{twofactor-auth}

Affiche le checkbox for enabling or disabling two-factor authentication on the site for the utilisateur

[banned]
text
[/banned]

Affiche le contenu text if the utilisateur is currently banned on the site

[not-banned]
text
[/not-banned]

Affiche le contenu text if the utilisateur is not banned on the site

{ban-description}

Affiche le reason why the utilisateur is banned

{ban-date}

Affiche le date until which the utilisateur was banned on the site

[vk]
text
[/vk]

Affiche le texte qu'elles contiennent si auteurization through the VK réseau social is enabled

{vk_url}

Affiche le URL lien for auteurization through the VK réseau social

[odnoklassniki]
text
[/odnoklassniki]

Affiche le texte qu'elles contiennent si auteurization through the Odnoklassniki réseau social is enabled

{odnoklassniki_url}

Affiche le URL lien for auteurization through the Odnoklassniki réseau social

[facebook]
text
[/facebook]

Affiche le texte qu'elles contiennent si auteurization through the Facebook réseau social is enabled

{facebook_url}

Affiche le URL lien for auteurization through the Facebook réseau social

[google]
text
[/google]

Affiche le texte qu'elles contiennent si auteurization through the Google réseau social is enabled

{google_url}

Affiche le URL lien for auteurization through the Google réseau social

[mailru]
text
[/mailru]

Affiche le texte qu'elles contiennent si auteurization through the Mail.ru réseau social is enabled

{mailru_url}

Affiche le URL lien for auteurization through the Mail.ru réseau social

[yandex]
text
[/yandex]

Affiche le texte qu'elles contiennent si auteurization through the Yandex réseau social is enabled

{yandex_url}

Affiche le URL lien for auteurization through the Yandex réseau social

{social-list}

Affiche le list of liened réseau socials and liens to disconnect them from this account

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

Affiche le contenu text if the utilisateur's account is liened to the VK network

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

Affiche le contenu text if the utilisateur's account is liened to the Odnoklassniki network

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

Affiche le contenu text if the utilisateur's account is liened to the Facebook network

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

Affiche le contenu text if the utilisateur's account is liened to the Google network

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

Affiche le contenu text if the utilisateur's account is liened to the Mail.ru network

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

Affiche le contenu text if the utilisateur's account is liened to the Yandex network

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

Affiche le contenu text as a lien to detach the account from the VK réseau social if the utilisateur's account is liened to it.

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

Affiche le contenu text as a lien to detach the account from the Odnoklassniki réseau social if the utilisateur's account is liened to it.

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

Affiche le contenu text as a lien to detach the account from the Facebook réseau social if the utilisateur's account is liened to it.

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

Affiche le contenu text as a lien to detach the account from the Google réseau social if the utilisateur's account is liened to it.

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

Affiche le contenu text as a lien to detach the account from the Mail.ru réseau social if the utilisateur's account is liened to it.

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

Affiche le contenu text as a lien to detach the account from the Yandex réseau social if the utilisateur's account is liened to it.

[ignore]
text
[/ignore]

Affiche le contenu text as a lien for adding the utilisateur to the ignore list

[delete]
text
[/delete]

Affiche le contenu text as a lien for the utilisateur to delete their own profil on the site if this is allowed by the utilisateur groupe paramètres

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

Affiche le contenu text if the champ valeur is equal to the indiqué valeur.

[if field = "value"] text [/if] - outputs the text if the champ is equal to the parameter 'valeur'

[if field != "value"]text[/if] - outputs the text if the champ is not equal to the parameter 'valeur'

[if field > "1"] text [/if] - outputs the text if the champ is greater than the parameter 'valeur'

[if field >= "2"] text [/if] - outputs the text if the champ is greater than or equal to the parameter 'valeur'

[if field < "3"] text [/if] - outputs the text if the champ is less than the parameter 'valeur'

[if field <= "4"] text [/if] - outputs the text if the champ is less than or equal to the parameter 'valeur'

[if field ~ "value"] text [/if] - outputs the text if the champ contains the text 'valeur'

[if field !~ "value"] text [/if] - outputs the text if the champ does NOT contain the text 'valeur'

Combined usage:

[if field > "3" AND field2 < "5"] text [/if] outputs the text if champ is greater than three and champ2 is less than 5

[if field > "3" OR field2 < "5"] text [/if] outputs the text if champ is greater than three or champ2 is less than 5, that is, if any one of the conditions matches

Field names that champ can take:

name - User login. (text)

email - User E-mail (text)

utilisateur_id - Unique utilisateur ID number (number)

news_num - Number of utilisateur publications (number)

comm_num - Number of utilisateur commentaires (number)

utilisateur_groupe - User groupe (number)

lastdate - Date of the utilisateur's last visit (date in English format, par exemple "2020-09-01" or "10 September 2020" or "next Thursday" or "+1 day" or "next Thursday" or in unix format; if equality is used, the date is rounded to the minute)

reg_date - Date of utilisateur registration (date in English format, par exemple "2020-09-01" or "10 September 2020" or "next Thursday" or "+1 day" or "next Thursday" or in unix format; if equality is used, the date is rounded to the minute)

allow_mail - Whether the utilisateur allowed receiving e-mails from the site (number 1 or 0)

info - User information about themselves (text)

signature - User signature (text)

fullname - User nom complet (text)

land - User lieu de résidence (text)

foto - Lien vers the utilisateur avatar (text)

pm_all - Number of utilisateur personal messages (number)

pm_unread - Number of unread personal messages of the utilisateur (number)

restricted - Whether restrictions are imposed on the utilisateur (number 0 - no restrictions, 1 - prohibition on adding publications, 2 - prohibition on adding commentaires, 3 - prohibition on publications and commentaires)

restricted_days - Number of days for which the restriction is imposed (number)

restricted_date - Date until which restrictions are imposed on the utilisateur (date in English format, par exemple "2020-09-01" or "10 September 2020" or "next Thursday" or "+1 day" or "next Thursday" or in unix format; if equality is used, the date is rounded to the minute)

logged_ip - IP from which the utilisateur logged into the site (text)

timezone - User time zone in time zone format, par exemple Europe/Moscow (text)

news_subscribe - Whether the utilisateur is subscribed to notifications about new publications (number 1 or 0)

commentaires_reply_subscribe - Whether the utilisateur is subscribed to notifications about replies to their commentaires (number 1 or 0)

twofactor_auth - Whether the utilisateur enabled two-factor authentication (number 1 or 0)

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

cat_add - Categories that are trusted for the utilisateur lorsque adding publications (array of category IDs)

xchamp_x - Value of the utilisateur's champ supplémentaire, où x is the name of the champ supplémentaire. Par exemple, xchamp_test is the valeur of the test champ supplémentaire