Hello les ami(e)s,
Pour que l'astuce fonctionne, il est impératif d'avoir le message le plus ancien en premier :
Général/
Catégories et Forums/
Catégories et Forums/
Le forum en questionPuis cliquez sur l'engrenage :
Classer les messages d'un sujet par :
Date du message (le plus ancien en premier)Actuellement on ne voit pas l'auteur du sujet lorsque l'on clique sur l'outil de modération" Modérer ce forum" en bas de page:
![[PHPBB2]Afficher le Pseudo dans l'outil de modération "Modérer ce forum" 159](https://i.servimg.com/u/f20/20/11/87/27/159.jpg)
L'astuce suivante affichera désormais ceci:
![[PHPBB2]Afficher le Pseudo dans l'outil de modération "Modérer ce forum" 225](https://i.servimg.com/u/f20/20/11/87/27/225.jpg)
Comme on a rajouté une cellule pour l'intitulé et une autre pour recevoir les pseudos,
il faut raccourcir le titre des sujet,pour cela j'ai ajouté un style en haut de page et au survol une infobulle l'affichera dans sa totalité.
La case d'un sujet posté par un invité sera systématiquement cochée,
une balise masquée (de base) fera son apparition le cas échéant mentionnera le nombre de sujet(s) concerné(s) et un bouton
à ces côtés pour désactiver les cases cochées.
Dans le template modcp_body (non modifié):
Affichage/
Templates/
Modération/
modcp_bodyRemplacez tout le contenu par celui-ci:
- Code:
-
<form name="manage" action="{S_MODCP_ACTION}" method="post">
<style>
/*le lien raccourci si besoin*/
a.topictitle
{
max-width:80%;/*on attribut une largeur maximale*/
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
/*L APPARENCE DU PSEUDO*/
td.mod_author.row1
{
color:black;
font-size:10px;
}
/*L APPARENCE SI INVITE*/
tr.M14_invit td.mod_author.row1{color:darkred!important;font-weight:bold;}
</style>
<script>
$(function(){
$('span[class="topictitle"]').each(function(){
var $this=$(this).closest('tr').find('td.mod_author.row1');
var a="/t";
var b=$(this).closest('tr').find('td').last().find('input[type="checkbox"]').val();
var c="-";
var d=$(this).text();
var D= d.replace(/ /gi, '-');
var all=a+b+c+D;
$.get(all , function(data){var h= $(data).find('span.name:first a[href^="/u"]').text();
if(h){$this.text(h);}
else
{
$this.text('Invité');
$this.closest('tr').addClass('M14_invit').find('input[type="checkbox"]').attr('checked','checked');
var p=$('tr.M14_invit').length;
$('tr.number').fadeIn().find('.postdetails span').text(p);
$('a.gensmall.click').click(function(){$(this).closest('tr').fadeOut();});
}
});
});
});
</script>
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</span></td>
</tr>
</table>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td class="catHead" colspan="6" align="center" height="28"><span class="cattitle">{L_MOD_CP}</span></td>
</tr>
<tr>
<td class="spaceRow" colspan="6" align="center"><span class="gensmall">{L_MOD_CP_EXPLAIN}</span></td>
</tr>
<tr>
<th class="thLeft" nowrap="nowrap" width="4%"> </th>
<th nowrap="nowrap">{L_TOPICS}</th>
<th nowrap="nowrap" width="8%">Auteur</th>
<th nowrap="nowrap" width="8%">{L_REPLIES}</th>
<th nowrap="nowrap" width="17%">{L_LASTPOST}</th>
<th class="thRight" nowrap="nowrap" width="5%">{L_SELECT}</th>
</tr>
<!-- BEGIN topicrow -->
<tr>
<td class="row1" align="center" valign="middle">
<img title="{topicrow.L_TOPIC_FOLDER_ALT}" src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" />
</td>
<td class="row1"><span class="topictitle">{topicrow.TOPIC_TYPE}<a class="topictitle" href="{topicrow.U_VIEW_TOPIC}" title="{topicrow.TOPIC_TITLE}">{topicrow.TOPIC_TITLE}</a></span></td>
<td class="mod_author row1" align="center"valign="middle"><img src="https://i.servimg.com/u/f20/20/11/87/27/loadin10.gif"/></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row1" align="center" valign="middle"><span class="postdetails">{topicrow.LAST_POST_TIME}</span></td>
<td class="row2" align="center" valign="middle"><input type="checkbox" name="topic_id_list[]" value="{topicrow.TOPIC_ID}" /></td>
</tr>
<!-- END topicrow -->
<tr align="center" class="number"style="display:none;"><td colspan="6" class="catBottom"><span class="postdetails">Nombre de sujet(s) posté par un invité: <span></span> </span><a href="#" class="gensmall click" onclick="this.value=check('unselect','manage');return false;">Décocher</a></td></tr>
<tr align="right">
<td class="catBottom" colspan="6" height="29">
{S_HIDDEN_FIELDS}
<input class="liteoption" type="submit" name="delete" value="{L_DELETE}" />
<input class="liteoption" type="submit" name="move" value="{L_MOVE}" />
<input class="liteoption" type="submit" name="lock" value="{L_LOCK}" />
<input class="liteoption" type="submit" name="unlock" value="{L_UNLOCK}" />
<!-- BEGIN switch_sticky --><input class="liteoption" type="submit" name="sticky" value="{L_STICKY}" /><!-- END switch_sticky -->
<!-- BEGIN switch_announce --><input class="liteoption" type="submit" name="announce" value="{L_ANNOUNCE}" /><!-- END switch_announce -->
<!-- BEGIN switch_normal --><input class="liteoption" type="submit" name="normal" value="{L_NORMAL}" /><!-- END switch_normal -->
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td>
<td align="right" valign="top" nowrap="nowrap">
<span class="gensmall">
<b>
<a href="#" class="gensmall" onclick="this.value=check('select','manage');return false;">{L_SELECT_ALL}</a>
::
<a href="#" class="gensmall" onclick="this.value=check('unselect','manage');return false;">{L_USELECT_ALL}</a>
</b>
</span>
<br /><br />
<span class="nav">{PAGINATION}</span>
</td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">{JUMPBOX}</td>
</tr>
</table>
Pensez a enregistrer puis à valider en cliquant respectivement sur
puis
En attente de recevoir les pseudos la cellule a par défaut une image gif présente dans la cellule:
- Code:
-
<td class="mod_author row1" align="center"valign="middle"><img src="https://i.servimg.com/u/f20/20/11/87/27/loadin10.gif"/></td>
![[PHPBB2]Afficher le Pseudo dans l'outil de modération "Modérer ce forum" Loadin10](https://i.servimg.com/u/f20/20/11/87/27/loadin10.gif)
Vous pouvez supprimer l'image si vous le souhaitez et remplacer cette dernière par du texte:
- Code:
-
<td class="mod_author row1" align="center"valign="middle">Patienter..</td>
Et voilou

.