Plusieurs news dans le widget news

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

Résolu Plusieurs news dans le widget news

Message par L'ange noir Mar 25 Juil 2017 - 12:13

Détails techniques


Version du forum : phpBB2
Poste occupé : Administrateur
Navigateur(s) concerné(s) : Google Chrome
Personnes concernées par le problème : Moi uniquement
Lien du forum : http://sangsmelesoriginels.forumactif.com

Description du problème

Bonjour

Si quelqu'un peut m'aider à résoudre ce petit souci de code....

J'ai créé un Widget pour les News sur ma PA. Elle fonctionne et est en place. Mais une seule news s'affiche alors que j'aurai voulu que plus d'un post s'affiche dans la fenêtre.

Je vous mets les codes. J'ai volontairement cacher les parties date, posteur, commentaire et lecture complète.

Voici le code template mod_news

Code:
<!-- BEGIN post_row --><!-- BEGIN saut -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td height="2px"></td>
  </tr>
</table><!-- END saut -->
<table class="forumline mod_news" id="news" width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
      <td class="catLeft" height="25">
        <a name="news_{post_row.ID}"></a><span class="genmed">{post_row.TITLE}</span>
      </td>
  </tr>
    <!-- suppression de l'heure et du nom de celui qui poste<tr>
      <td class="row2" height="24"><span class="gensmall"><img src="{ICON_TIME}" alt="" />{post_row.TIME} {BY} <b>{post_row.POSTER}</b></span></td>
  </tr>-->
  <tr>
      <td class="row1">
        <span class="gensmall content" style="line-height:150%">
            <!--suppression du texte {post_row.TEXT}<br /><br />-->

            <!-- BEGIN switch_attachments -->
            <dl class="attachbox">
              <dt>{post_row.switch_attachments.L_ATTACHMENTS}</dt>
              <dd>
                  <!-- BEGIN switch_post_attachments -->
                  <dl class="file">
                    <dt>
                        <img src="{post_row.switch_attachments.switch_post_attachments.U_IMG}" />

                        <!-- BEGIN switch_dl_att -->
                        <a class="postlink" href="{post_row.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{post_row.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {post_row.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
                        <!-- END switch_dl_att -->

                        <!-- BEGIN switch_no_dl_att -->
                        {post_row.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT} {post_row.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT_DEL}
                        <!-- END switch_no_dl_att -->
                    </dt>

                    <!-- BEGIN switch_no_comment -->
                    <dd>
                        <em>{post_row.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
                    </dd>
                    <!-- END switch_no_comment -->

                    <!-- BEGIN switch_no_dl_att -->
                    <dd>
                        <em><strong>{post_row.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></em>
                    </dd>
                    <!-- END switch_no_dl_att -->

                    <dd>({post_row.switch_attachments.switch_post_attachments.FILE_SIZE}) {post_row.switch_attachments.switch_post_attachments.NB_DL}</dd>
                  </dl>
                  <!-- END switch_post_attachments -->
              </dd>
            </dl>
            <!-- END switch_attachments -->

            <!--suppression de Lecture complète {post_row.OPEN}
          <a href="{post_row.U_READ_FULL}" rel="nofollow">{post_row.L_READ_FULL}</a>
            {post_row.CLOSE}-->
        </span>
      </td>
  </tr>
    <!--suppression commentaires <tr>
    <td class="row3" height="24"><span class="gensmall"><a href="{post_row.U_VIEW_COMMENTS}">{L_COMMENTS}</a>: {post_row.REPLIES}</span></td>
  </tr>-->
</table><!-- END post_row -->

<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(resize_images({ 'selector' : '.mod_news .content', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->

Et voici ma page HTML

Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />  <title>News</title> <base target="_parent" /> 
<div id="news" style="overflow: hidden;">
   <iframe name="frame_news" style="visibility: hidden; width: 0px; height: 0px;" src="/portal.forum" onload="var frame_news=window.frame_news.document.getElementById('news');document.getElementById('news').innerHTML=frame_news.innerHTML;" scrolling="no">
   </iframe>
</div>
    <style type="text/css">
  /*** Mise en page du module de news (PA) **/

  #news .genmed,
  #news .gensmall{
      display: inline-block;
  }

  /* Cacher les commentaires */
  #news .gensmall.content + .gensmall{
      display: none;
  }

</style>

Merci pour votre aide
L'ange noir

L'ange noir
****

Messages : 294
Inscrit(e) le : 17/05/2016

https://vampires-kingdom.forumactif.com/
L'ange noir a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Plusieurs news dans le widget news

Message par L'ange noir Ven 28 Juil 2017 - 12:58

Up

Pitié, est ce que quelqu'un a une idée de la raison pour laquelle je ne peux faire publier qu'une seule news dans ce portail ???? ::fleur::
L'ange noir

L'ange noir
****

Messages : 294
Inscrit(e) le : 17/05/2016

https://vampires-kingdom.forumactif.com/
L'ange noir a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Plusieurs news dans le widget news

Message par L'ange noir Ven 28 Juil 2017 - 16:41

j'ai trouvé la réponse sur forumactif qui explique que c'est impossible.

Merci
L'ange noir

L'ange noir
****

Messages : 294
Inscrit(e) le : 17/05/2016

https://vampires-kingdom.forumactif.com/
L'ange noir 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