[Tuto] Rendre plus convivial le système de surveillance des sujets et forums
-
- Messages : 2850
- Enregistré depuis : 3 ans 5 mois
- Identité : Fred Rimbert
- Site internet : https://caforum.fr
- Localisation : Le Lude - Pays de la Loire
- Intérêt : GitHub
Rendre plus convivial le système de surveillance des sujets et forums
MessageÀ 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.
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 -->
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.
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 -->
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
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',
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',


Mettre à jour son forum | Mettre à jour son style perso | Sauvegarde des fichiers du forum
"Les logiciels propriétaires n'ont aucune éthique"
- Richard Stallman
Inscrivez-vous pour participer au forum ou Connecter-vous à votre compte.