Panneau de Contrôle de Modération

2 participants

Voir le sujet précédent Voir le sujet suivant Aller en bas

Résolu Panneau de Contrôle de Modération

Message par demeter1 Dim 7 Avr 2013 - 13:04

Bonjour à tous,
J'aimerai savoir s'il est possible de faire apparaitre sur le panneau de contrôle de modération la description et l’icône d'un sujet.

Au niveau modération, l’icône et la description me permettent de classer des sujets dans une sections intitulée "sujets résolues" mais dés que je modère , je suis dans l'obligation d'ouvrir deux fenêtres sur mon navigateur pour pouvoir avoir accès aux informations et, modérer correctement.

Pour faire simple voici ce que j'ai dés que je suis dans une section
Panneau de Contrôle de Modération Sans_t42

et ce que j'ai lorsque je modère (comme vous le voyez, les infos de la description et l’icône disparaissent)
Panneau de Contrôle de Modération Sans_t43

Merci par avance pour vos réponses et bon dimanche à tous.


Dernière édition par demeter1 le Jeu 25 Avr 2013 - 18:33, édité 1 fois
demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par demeter1 Mar 9 Avr 2013 - 17:58

réactivation du sujet
demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par demeter1 Jeu 11 Avr 2013 - 20:38

réactivation du sujet
demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.
  • 0

Résolu Re: Panneau de Contrôle de Modération

Message par Arlem Ven 12 Avr 2013 - 10:34

Salut Smile

Tu peux essayer comme ça :
Dans le topic_list_box, cherche :
Code:
<!-- BEGIN switch_description -->
         <span class="genmed">
            <br />
                          {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
         </span>
         <!-- END switch_description -->
Remplace par :
Code:
<span class="desc_mod">
         <!-- BEGIN switch_description -->
         <span class="genmed">
            <br />
                          {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
         </span>
         <!-- END switch_description --></span>
Ensuite dans modcp_body, au tout début ajoute :
Code:
<div id="load_desc" style="display:none;"></div>
Puis cherche :
Code:
<td class="row1"><span class="topictitle">{topicrow.TOPIC_TYPE}<a class="topictitle" href="{topicrow.U_VIEW_TOPIC}">{topicrow.TOPIC_TITLE}</a></span></td>
Et remplace par :
Code:
<td class="row1"><span class="topictitle">{topicrow.TOPIC_TYPE}<a class="topictitle" href="{topicrow.U_VIEW_TOPIC}">{topicrow.TOPIC_TITLE}</a></span><br/>
                    <span class="desc_modcp genmed"></span></td>
Enfin, dans la gestion des JS, créé-en un nouveau, actif sur toutes les pages avec ça dedans :
Code:
if((document.location.pathname) == "/modcp") {
    $(function() {
var id_forum = document.location.href.replace(/^.*\/.*f=([1-9][0-9]*).*$/,'$1');
      $('#load_desc').load('/f'+id_forum+'- .forumline', function() {
         for (var nbdesc = 0; nbdesc <= $(this).find('.desc_mod').length; nbdesc++) {
                $('.desc_modcp').eq(nbdesc).append($(this).find('.desc_mod').eq(nbdesc).text());
         }
      }
      );
   }
   );
}
Et tiens nous au courant, il est possible qu'il y ait un petit laps de temps avant que les descriptions s'affichent. Smile
avatar

Arlem
Membre actif

Messages : 2550
Inscrit(e) le : 30/06/2009

Arlem a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par demeter1 Lun 15 Avr 2013 - 16:18

Arlem milles excuses pour ce retard de correspondance (weeked prolongé oblige). un grand merci pour cette aide. Je vais m'empresser de tester ces modifications.
demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par Arlem Lun 15 Avr 2013 - 17:06

Pas de soucis, essaie ça et tiens nous au courant. Smile
avatar

Arlem
Membre actif

Messages : 2550
Inscrit(e) le : 30/06/2009

Arlem a été remercié(e) par l'auteur de ce sujet.
  • 0

Résolu Re: Panneau de Contrôle de Modération

Message par demeter1 Ven 19 Avr 2013 - 19:20

De retour et encore milles excuses pour l'attente. Avec le temps superbe qu'il a fait ces derniers jours j'ai cédé à ma passion du jardinage. Embarassed (pas trés sérieux vis à vis d'Arlem à qui je présente de nouveau mes excuses).

Alors , j'ai testé et malheureusement pas de changement au niveau de tableau de modération.
Voici mon template Topic_list box avec les modifs

Code:
<!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
   var all_checked = true;
   for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
      }
   }
   document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
   for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
      }
   }
}
</script>
<!-- END multi_selection -->

       
       


<table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap"> {topics_list_box.row.L_TITLE} </th>
      <th align="center" nowrap="nowrap" width="80"> {topics_list_box.row.L_REPLIES} </th>
      <th align="center" nowrap="nowrap" width="100"> {topics_list_box.row.L_AUTHOR} </th>
      <th align="center" nowrap="nowrap" width="50"> {topics_list_box.row.L_VIEWS} </th>
      <th align="center" nowrap="nowrap" width="150"> {topics_list_box.row.L_LASTPOST} </th>
      <!-- BEGIN multi_selection -->
      <th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
   <!-- END multi_selection -->
   </tr>
   <!-- BEGIN pagination -->
   <tr>
      <td class="row1" colspan="7" align="right"><!-- begin modif --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="row1" align="left"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td> <td class="row1" align="right"><span class="gensmall">{PAGINATION}</span></tr></table><!-- end modif --></td>
  </tr>
   <!-- END pagination -->
   <!-- END header_table --><!-- BEGIN header_row -->
   <tr>
      <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
   </tr>
<!-- END header_row -->

<!-- BEGIN topic -->
{topics_list_box.row.END_TABLE_STICKY}
   <tr>
      <!-- BEGIN single_selection -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
      <!-- END single_selection -->
      <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
      <!-- BEGIN icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
      <!-- END icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
         <div class="topictitle">
            {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE}
            <h2 class="topic-title">
               <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
            </h2>
         </div>
         

<span class="desc_mod">
        <!-- BEGIN switch_description -->
        <span class="genmed">
            <br />
                          {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
        </span>
        <!-- END switch_description --></span>

         <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> 
         <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
      </td>

      <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
      <td class="row3" align="center" valign="middle"><span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span></td>
      <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
      <td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
      <td class="row2" align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></td>
   <!-- END multi_selection -->
   </tr>
   <!-- END topic --><!-- BEGIN no_topics -->
   <tr>
      <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
   </tr>
   <!-- END no_topics --><!-- BEGIN bottom -->
   <tr>
      <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td> <span class="gensmall">{PAGINATION}</span></td>
               <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td>
            </tr>
         </table>
      </td>
   </tr>
<!-- END bottom --><!-- BEGIN footer_table -->
</table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->


et mon template modcp_body
Code:
<div id="load_desc" style="display:none;"></div>
<form name="manage" action="{S_MODCP_ACTION}" method="post">
<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="5" align="center" height="28"><span class="cattitle">{L_MOD_CP}</span></td>
   </tr>
   <tr>
      <td class="spaceRow" colspan="5" 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%">{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}">{topicrow.TOPIC_TITLE}</a></span><br/>
                    <span class="desc_modcp genmed"></span></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="right">
      <td class="catBottom" colspan="5" 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">
         <b><span class="gensmall"><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></span></b><br />
         <br />
         <span class="nav">{PAGINATION}</span><br />
         <span class="gensmall">{S_TIMEZONE}</span>
      </td>
   </tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td align="right">{JUMPBOX}</td>
   </tr>
</table>

Le java est coché sur toutes les pages. J'ai tenté en désactivant les autres javascripts présents dans la gestion des javascripts mais, sans résultat.

Arlem, encore merci pour votre aide et, surtout pour votre patience. ok

demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par demeter1 Lun 22 Avr 2013 - 17:05

Un petit up.
demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par Arlem Lun 22 Avr 2013 - 17:10

Salut demeter,

Désolé, je ne m'en suis pas occupé tout de suite et j'ai ensuite oublié.
En copiant/collant tes templates sur mon forum et avec le code JS que j'ai donné plus haut ça fonctionne correctement, tu as essayé de vider le cache ?
avatar

Arlem
Membre actif

Messages : 2550
Inscrit(e) le : 30/06/2009

Arlem a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Panneau de Contrôle de Modération

Message par demeter1 Jeu 25 Avr 2013 - 18:32

Bonjour Arlem, aucun soucis. je pense que c'est plus à moi de m'excuser du temps entre deux éponses;
J'ai fini par trouver le soucis ; il s'agissait d'un script au niveau ddu template overall header qui bloquait je js mis dans la gestion des javascripts.
Tout fonctionne à merveille maintenant.

Un grand merci pour votre aide et pour votre patience.
demeter1

demeter1
Membre actif

Masculin
Messages : 8993
Inscrit(e) le : 23/01/2009

https://altitudetropicale.forums-actifs.com/
demeter1 a été remercié(e) par l'auteur de ce sujet.

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum