Voilà, j'ai réussi à faire une modif qui masque qui est en ligne aux invités mais je cherche à étendre cette restriction à un groupe que j'ai nommé "Membres sous restrictions". J'ai bien réglé les permissions de ce groupe mais ils peuvent quand même voir qui est en ligne.
Voici les modifs que j'ai faites :
Pour cacher "Qui est en ligne" aux invités j'ai modifié 3 fichiers :
template/index_body.html
template/viewtopic_body.html
template/viewforum_body.html
Ouvrir : template/index_body.html
Chercher :
Code : Tout sélectionner
<!-- IF S_DISPLAY_ONLINE_LIST -->
<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br />{VISIT_COUNTER} <br /><br />{LOGGED_IN_USER_LIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
Code : Tout sélectionner
<!-- IF S_USER_LOGGED_IN and not S_IS_BOT -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br />{VISIT_COUNTER} <br /><br />{LOGGED_IN_USER_LIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
<!-- ENDIF -->
Chercher :
Code : Tout sélectionner
<!-- IF S_DISPLAY_ONLINE_LIST -->
<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
<p>{LOGGED_IN_USER_LIST}</p>
<!-- ENDIF -->
Code : Tout sélectionner
<!-- IF S_DISPLAY_ONLINE_LIST and S_USER_LOGGED_IN -->
<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
<p>{LOGGED_IN_USER_LIST}</p>
<!-- ENDIF -->