À l'inverse lorsque vous surveillez des sujets ou forums la case n'est plus cochée et ce texte "Arrêter de surveiller ce sujet"
Dans ce tutoriel nous allons voir comment modifier ces icônes Font Awesome, et par la même occasion apporter une modification au fichier de langue.
Surveillance des sujets
Se rendre ici en FTP :
► ./styles/style_perso/template
Ouvrir le fichier viewtopic_topic_tools.html
Si ce fichier est absent de votre dossier template, importez-le depuis prosilver.
Trouver : (peut correspondre à un résultat partiel dans une ligne de code ou à une ligne de code entière.)
Code: Tout sélectionner
<!-- IF U_WATCH_TOPIC -->
<li>
<a href="{U_WATCH_TOPIC}" class="watch-topic-link" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_TOPIC -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}" data-update-all=".watch-topic-link">
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_TOPIC_TITLE}</span>
</a>
</li>
<!-- ENDIF -->
Remplacer par : (remplacer les lignes de code précédemment trouvées par celles ci-dessous. Enregistrez et videz le cache.)
Code: Tout sélectionner
<!-- IF U_WATCH_TOPIC -->
<li>
<a href="{U_WATCH_TOPIC}" class="watch-topic-link" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_TOPIC -->fa-bell-slash<!-- ELSE -->fa-bell-slash<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}" data-update-all=".watch-topic-link">
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-bell-o<!-- ELSE -->fa-bell-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_TOPIC_TITLE}</span>
</a>
</li>
<!-- ENDIF -->
Surveillance des forums
Se rendre ici en FTP :
► ./styles/style_perso/template
Ouvrir le fichier navbar_footer.html
Si ce fichier est absent de votre dossier template, importez-le depuis prosilver.
Trouver : (peut correspondre à un résultat partiel dans une ligne de code ou à une ligne de code entière.)
Code: Tout sélectionner
<!-- IF U_WATCH_FORUM_LINK and not S_IS_BOT -->
<li data-last-responsive="true">
<a href="{U_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_FORUM -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_FORUM_TOGGLE}" data-toggle-url="{U_WATCH_FORUM_TOGGLE}">
<i class="icon <!-- IF S_WATCHING_FORUM -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_FORUM_TITLE}</span>
</a>
</li>
<!-- ENDIF -->
Remplacer par : (remplacer les lignes de code précédemment trouvées par celles ci-dessous. Enregistrez et videz le cache.)
Code: Tout sélectionner
<!-- IF U_WATCH_FORUM_LINK and not S_IS_BOT -->
<li data-last-responsive="true">
<a href="{U_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_FORUM -->fa-bell-o<!-- ELSE -->fa-bell-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_FORUM_TOGGLE}" data-toggle-url="{U_WATCH_FORUM_TOGGLE}">
<i class="icon <!-- IF S_WATCHING_FORUM -->fa-bell-o<!-- ELSE -->fa-bell-slash<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_FORUM_TITLE}</span>
</a>
</li>
<!-- ENDIF -->
Modification du fichier de langue
Se rendre ici en FTP :
► ./language/fr
Ouvrir le fichier common.php
Trouver : (peut correspondre à un résultat partiel dans une ligne de code ou à une ligne de code entière.)
Code: Tout sélectionner
'START_WATCHING_FORUM' => 'Surveiller ce forum',
'START_WATCHING_TOPIC' => 'Surveiller ce sujet',
'STOP_WATCHING_FORUM' => 'Arrêter de surveiller ce forum',
'STOP_WATCHING_TOPIC' => 'Arrêter de surveiller ce sujet',
Remplacer par : (remplacer les lignes de code précédemment trouvées par celles ci-dessous. Enregistrez et videz le cache.)
Code: Tout sélectionner
'START_WATCHING_FORUM' => 'Vous ne surveillez pas ce forum',
'START_WATCHING_TOPIC' => 'Vous ne surveillez pas ce sujet',
'STOP_WATCHING_FORUM' => 'Vous surveillez ce forum',
'STOP_WATCHING_TOPIC' => 'Vous surveillez ce sujet',
Un ticket est ouvert sur le tracker, dans les versions futures de phpBB cela devrait être modifié.