Commentaires

L'affichage de cette section est configuré dans le fichier commentaires.tpl . Cette section configure l'affichage des commentaires pour un article.

{author}

Affiche un lien vers les informations et le profil de l'utilisateur qui a laissé le commentaire

{mail}

Affiche l'e-mail de la personne qui a laissé le commentaire

{date}

Date de publication du commentaire ; le format d'affichage de la date est défini dans les paramètres du système

{comment}

Texte du commentaire

{comment limit="X"}

Affiche le texte du commentaire sans formatage HTML, tout en raccourcissant le texte du commentaire lui-même au nombre indiqué de caractères « x ».

{comment-id}

Numéro d'identification du commentaire

{ip}

Adresse IP de la personne qui a laissé le commentaire ; l'affichage est disponible uniquement pour les administrateurs du site

[com-edit]
text
[/com-edit]

Lien vers la modification du commentaire uniquement si cela est autorisé

[com-del]
text
[/com-del]

Lien vers la suppression du commentaire uniquement si cela est autorisé

{news_title}

Affiche un lien to the publication lorsque lors de l'affichage recent commentaires; lorsque outputting commentaires inside the publication, the balise is removed

{news-title}

Affiche le HTML-safe titre of the publication to which this commentaire belongs lorsque lors de l'affichage recent commentaires. When outputting commentaires in the publication, the balise is removed. This balise is useful lorsque using custom commentaire output and lorsque displaying recent commentaires.

{news-link}

Affiche le URL of the publication to which this commentaire belongs lorsque lors de l'affichage recent commentaires. When outputting commentaires in the publication, the balise is removed. This balise is useful lorsque using custom commentaire output and lorsque displaying recent commentaires.

[images]
text
[/images]

Affiche le texte qu'elles contiennent si images have been uploaded for the commentaire

{images}

Affiche all images uploaded for the commentaire as an galerie d'images

{foto}

Affiche le lien vers la photo

{fullname}

Affiche le nom complet de l'utilisateur

{land}

Affiche le lieu de résidence

[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

{registration}

Affiche le date d'inscription on the site

{lastdate}

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

{lastdate=date format}

Affiche le utilisateur's dernière visite sur le site in the format indiqué in the balise. Par exemple, la balise {lastdate=d} affiche le jour du mois, la balise {lastdate=F} affiche le nom du mois, et la balise {lastdate=d-m-Y H:i} affiche la date et l'heure complètes.

{registration=date format}

Affiche le utilisateur's date d'inscription in the format indiqué in the balise. Par exemple, la balise {registration=d} affiche le jour du mois, la balise {registration=F} affiche le nom du mois, et la balise {registration=d-m-Y H:i} affiche la date et l'heure complètes.

[fast]
text
[/fast]

Citation rapide des commentaires

{group-icon}

Affiche le participant groupe icon

{group-name}

Affiche le participant groupe name

{news-num}

Affiche le participant's nombre de publications

{comm-num}

Affiche le participant's nombre de commentaires

{date=date format}

Affiche le date in the format indiqué in the balise. This allows you to output not only the full date but also its individual parts. The format de date is defined according to the format accepted in PHP. Par exemple, la balise {date=d} outputs the day of the month of publication of the publication or commentaire, the balise {date=F} affiche le nom du mois, et la balise {date=d-m-Y H:i} outputs the full date and time

{login}

Affiche le commentaire auteur's login without any liens or menus

[profile]
text
[/profile]

Affiche le text contenu in the balise as a lien to the profil of the utilisateur who left the commentaire

{mass-action}

Enables mass selection of commentaires for performing bulk actions on the site

[complaint]
text
[/complaint]

Affiche le text indiqué in the balises as a lien for writing a complaint about the commentaire.

[xfgiven_x]
text
[/xfgiven_x]

Affiche le text if 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

[xfvalue_x]

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

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

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

[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

[spam]
Spammer
[/spam]

Affiche le text indiqué in the balises as a lien which, lorsque clicked, marks the visitor who left the commentaire as a "spammer"

[declination=X]
text
[/declination]

Affiche word declensions relative to numbers. Instead of X, a number is passed as the parameter of the balise, and instead of "text" the root of the word with endings is passed. The word endings are listed using the "|" symbol. This balise is useful together with other balises that output, par exemple, the nombre de news views or the nombre de commentaires. Par exemple [declination={comments-num}]commentaire|s||s[/declination] will output depending on the nombre de commentaires: "commentaire", "commentaires", "commentaires"

[commentsgroup=1,2,3]
text
[/commentsgroup]

Affiche le contenu text if the commentaire was written by a utilisateur belonging to the listed groupes

[not-commentsgroup=1,2,3]
text
[/not-commentsgroup]

Affiche le contenu text if the commentaire was written by a utilisateur who does not belong to the indiqué groupes

[commentscount=x]
text
[/commentscount]

Affiche le texte indiqué dans les balises si the Xth commentaire is being shown, où X is the nombre de the commentaire displayed on the page. Par exemple, [commentscount=1] text [/commentscount] will show the text lorsque the first commentaire on the page is displayed. This balise is useful for webmasters who want, par exemple, to control où ads are shown between commentaires on the site. Par exemple, code added at the very end of the template [commentscount=1,10] ad code [/commentscount] will show ads after the first and tenth commentaire.

[not-commentscount=X]
text
[/not-commentscount]

Affiche le text contenu in these balises for all commentaires by position except the commentaires indiqué by X. This balise is useful if you want to display some design elements for all commentaires except the indiqué ones. Par exemple, to hide something in the first commentaire in the list.

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

Affiche le contenu text if the first note type 'Score' is enabled in the script paramètres.

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

Affiche le contenu text if the second note type 'Likes Only' is enabled in the script paramètres.

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

Affiche le contenu text if the third note type 'Like' or 'Dislike' is enabled in the script paramètres.

[rating-type-4]
text
[/rating-type-4]

Affiche le contenu text if the fourth note type 'Like' and 'Dislike' is enabled in the paramètres.

[rating-minus]
text
[/rating-minus]

Affiche le contenu text as a lien for decreasing the commentaire note. This lien is displayed uniquement si the third and fourth note types are used.

[rating-plus]
text
[/rating-plus]

Affiche le contenu text as a lien for increasing the commentaire note. This lien is displayed uniquement si the second, third, and fourth note types are used.

{rating}

Affiche le note assigned to the commentaire.

{likes}

Affiche le nombre de likes

{dislikes}

Affiche le nombre de dislikes

{vote-num}

Affiche le nombre de utilisateurs who rated this commentaire.

{ratingscore}

Affiche le average note valeur 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.

[reply]
text
[/reply]

Affiche le text dans les balises as a lien to open a popup window for replying to a commentaire if threaded commentaires are enabled; if threaded commentaires are disabled, it inserts the login of the sélectionné commentaireer into the commentaire submission form

[replycount]
text
[/replycount]

Affiche le contenu text if the commentaire has replies from other utilisateurs

[not-replycount]
text
[/not-replycount]

Affiche le contenu text if there are no replies to the commentaire

[treecomments]
text
[/treecomments]

Affiche le contenu text if threaded commentaires are enabled in the script paramètres.

[not-treecomments]
text
[/not-treecomments]

Affiche le contenu text if threaded commentaires are disabled.

[rootcomments]
text
[/rootcomments]

Affiche le contenu text if the commentaire is the main parent commentaire for the publication and is not a reply to another commentaire.

[childrencomments]
text
[/childrencomments]

Affiche le contenu text if the commentaire is a reply to another commentaire.

{replycount}

Affiche le nombre de replies to this commentaire

[comments-author]
text
[/comments-author]

Affiche le contenu text if the utilisateur lors de l'affichage the site page is the auteur of this commentaire

[not-comments-author]
text
[/not-comments-author]

Affiche le contenu text if the utilisateur lors de l'affichage the site page is not the auteur of this commentaire

[news-author]
text
[/news-author]

Affiche le contenu text if the commentaire belongs to the auteur of this publication

[not-news-author]
text
[/not-news-author]

Affiche le contenu text if the commentaire does not belong to the auteur of this publication

[positive-comment]
text
[/positive-comment]

Affiche le contenu text if the commentaire has a positive note

[negative-comment]
text
[/negative-comment]

Affiche le contenu text if the commentaire has a negative note

[neutral-comment]
text
[/neutral-comment]

Affiche le contenu text if the commentaire has a neutral note

[catlist=1,2....]
text
[/catlist]

Affiche le text in the balise if the publication belongs to the indiqué categories

[not-catlist=1,2....]
text
[/not-catlist]

Affiche le text in the balise if the publication does not belong to the indiqué categories.

{banner_X}

Affiche advertising from the advertising materials module in the admin panel, où X is the name of the advertising banner

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

id - Unique commentaire ID number (number)

post_id - Unique publication ID number (number)

utilisateur_id - Unique ID of the utilisateur who left the commentaire if they are registered (number)

date - Comment date (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 news date is rounded to the minute)

gast_name - Comment auteur login (text)

gast_email - Comment auteur E-mail (text)

ip - IP of the utilisateur who left the commentaire (text)

is_register - Whether the commentaire auteur is registered on the site (number 1 or 0)

note - Total commentaire note (number)

vote_num - Number of votes in the commentaire note (number)

name - Login of the commentaire auteur if registered. (text)

email - E-mail of the commentaire auteur if registered (text)

news_num - Number of publications by the commentaire auteur if registered (number)

comm_num - Number of commentaires by the commentaire auteur if registered (number)

utilisateur_groupe - Group of the commentaire auteur if registered (number)

lastdate - Date of the last visit of the commentaire auteur if registered (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 news date is rounded to the minute)

reg_date - Registration date of the commentaire auteur if registered (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 news date is rounded to the minute)

signature - Signature of the commentaire auteur if registered (text)

foto - Lien vers the avatar of the commentaire auteur if registered (text)

fullname - Full name of the commentaire auteur if registered (text)

land - Place of residence of the commentaire auteur if registered (text)

xchamp_x - Value of the utilisateur's profil 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