"sujet recent" au milieu

2 participants

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

Résolu "sujet recent" au milieu

Message par jujusilb Mer 19 Déc 2012 - 8:01

salut!

voici mon probleme
j'ai un forum en PHPBB3 (http://www.rue-chapdelaine.com)
j'aimerais vraiment avoir le widget sujet recent en bas au milieu de ma page d'accueil

dans la continuité des categorie et "qui est en ligne"

j'ai essayé d'aller sur le portail pour l'activer et mettre le widget
ensuite j'ai fais un iframe dans "PA/affichage/generalité" mais ca n'apparait qu'en haut, donc, ca ne convient pas

voyant que j'avais pas acces au template, j'ai creer un forum de test en phpbb2 ou j'ai tout recreer histoire d'avoir un resultat egale a celui d'origine
dans les template j'ai modifier le widget "mod_recent topic" pout tout mettre sur une ligne

Code:
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"><font size="2">
      <td class="catHead" height="25"><span class="genmed"><b><center>{L_RECENT_TOPICS}</center></b></span></td>
   </tr>
   <tr>
      <td class="row1" align="left"><span class="gensmall"><font size="2">
      <!-- BEGIN recent_topic_row -->
      » <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE}</a>{BY} 
      <!-- BEGIN switch_poster -->
      <a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>
      <!-- END switch_poster -->
      <!-- BEGIN switch_poster_guest -->
      {classical_row.recent_topic_row.switch_poster_guest.S_POSTER}
      <!-- END switch_poster_guest -->
      {ON} {classical_row.recent_topic_row.S_POSTTIME}<br />
                 
                  <!--
      <a href="{classical_row.recent_topic_row.U_POSTER}">{classical_row.recent_topic_row.S_POSTER}</a> {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />
      -->
      <!-- END recent_topic_row -->
      </span></td>
          </tr></font>
</table>
(j'ai reglé le widget en static)

ensuite j'ai copié le code ci dessus pour l'integré dans le template "index_box" pour qu'il soit en dessous des categorie du forum

sauf que la, je n'ai rien juste un tableau vide... alors que le code du template est bien constitué du widget!
une 20aine de ligne qui passent a la trappe!!

donc voila! comme vous voyez, avant de venir vous questionner, j'ai essayé plusieur solutions de mon coté, sans succes...

pouvez vous m'aider?

jujusilb

PS ; est ce qu'en version PUNBB ou invision ca reglerais mon probleme?
avatar

jujusilb
Nouveau membre

Messages : 9
Inscrit(e) le : 22/11/2011

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

Résolu Re: "sujet recent" au milieu

Message par jujusilb Mer 19 Déc 2012 - 13:22

j'ai essayé avec une iframe quand meme mais a la fin de "index_box"


Code:
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"><tr><td>
 <table align="left" bgcolor="DBDBDB" border="1" bordercolor="333333" width="100%">
  <tr>
    <th colspan="4" nowrap="nowrap" width="100%" align="left"><font color="black">     Derniers sujets en cours</font></th>
  </tr>
  <tr align="center">
  <th align="center"colspan="4" border="7" id="comments_forum" valign="middle" rowspan="4"style=" height: 60px; width: 100%;" >
    <iframe name="ifr" style="visibility: hidden; width: 100%; height: 150px;" src="http://test43cf.forumactif.org/portal" onLoad="document.getElementById("recent");"></iframe>
  </th>
  </tr>
 </table></td></tr></table>
mais sans succes non plus...

je cherche je cherche mais je trouve pas

ce qui m'enerve le plus, c que je suis sur d'etre a un petit detail con d'avoir trouvé!

aidez moi j'vous supplie!!!!
avatar

jujusilb
Nouveau membre

Messages : 9
Inscrit(e) le : 22/11/2011

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

Résolu Re: "sujet recent" au milieu

Message par Ea Ven 21 Déc 2012 - 18:08

Bonjour,


Le code de votre deuxième message se rapproche ( de loin ) d'un code qui fonctionne.

Sur du phpbb3, si vous avez le widget en question sur la page /portal vous pouvez mettre comme script sur la page d'accueil :

  • Code:
    $(function(){
      $.get('/portal',function(c){
        $('ul[class="linklist"]:last').after($('.module',c))
      })
    });
    pour avoir le module avant le qui est en ligne.

  • Code:
    $(function(){
      $.get('/portal',function(c){
        $('ul[class="linklist"]:first').before($('.module',c))
      })
    });
    pour avoir le module après le message d'accueil.

Ea

Ea
Aidactif
Aidactif

Messages : 23583
Inscrit(e) le : 04/04/2008

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

Résolu Re: "sujet recent" au milieu

Message par jujusilb Ven 21 Déc 2012 - 19:09

j'ai reussi a le faire finalement,
d'une autre maniere que j'aurais cru

pour ceux que ca interresse:

j'ai commencé par passer en phpbb2 pour avoir acces au templates

j'ai activer le portail (sans l'afficher) puis j'ai activer le widget sujet que j'ai mis en statique

j'ai modifier le template "mod recent topic"

j'ai creer une div "recent" pour identifier la partie statique du widget
j'ai supprimé tout les <br /> sauf le derniers, pour avoir tout sur une seul ligne a chaque fois
puis j'ai integré un tableau a l'interieur (histoire que les noms des sujet soit a gauche de l'ecran et la date a droite)

voici le code
Code:

<!-- BEGIN scrolling_row -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <td class="catLeft" height="25">
         <span class="genmed module-title">{L_RECENT_TOPICS}</span>
      </td>
   </tr>
   <tr>
      <td class="row1" align="left" id="comments_scroll_div">
         <!-- BEGIN recent_topic_row -->
         » <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a><br />
         <img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY} 

         <!-- BEGIN switch_poster -->
         <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a><br /><br />
         <!-- END switch_poster -->

         <!-- BEGIN switch_poster_guest -->
         {scrolling_row.recent_topic_row.switch_poster_guest.S_POSTER}<br /><br />
         <!-- END switch_poster_guest -->

         <!--
         <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_POSTER}">{scrolling_row.recent_topic_row.S_POSTER}</a><br /><br />
         -->
         <!-- END recent_topic_row -->
      </td>
   </tr>
</table>

<script type="text/javascript">
//<![CDATA[
$(function(){
   div_marquee('comments_scroll_div', 'comments_scroll_container', '{SCROLL_WAY}', '{SCROLL_STEP}', '{SCROLL_DELAY}', '{SCROLL_HEIGHT}', 'genmed');
});
//]]>
</script>
<!-- END scrolling_row -->
<div id="recent">
<!-- BEGIN classical_row -->
<table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0">
         <!-- BEGIN recent_topic_row -->
                  <tr><td class="row1" align="left"><span class="gensmall"><font size="3">
      » <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE} </a>{BY} 

      <!-- BEGIN switch_poster -->
      <a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>
      <!-- END switch_poster -->
      <!-- BEGIN switch_poster_guest -->
                    {classical_row.recent_topic_row.switch_poster_guest.S_POSTER}</font></span></td>
      <!-- END switch_poster_guest -->
      <td class="row1" align="right"><span class="gensmall"><font size="3">{ON} {classical_row.recent_topic_row.S_POSTTIME}
   </font></span></td></tr>
      <!-- END recent_topic_row -->
      
   
</table>
<!-- END classical_row -->
</div>

ensuite, j'ai creer une page html que j'ai nommé "dernier_sjt" via le module

pour mettre une iframe vers ce module

voici le code

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>Dernier sujet</title>

<base target="_parent">
</head>
<body>
    <div id="dernier_sjt" style="width: 100%; height: 100%;" >
<iframe name="frame_sjt" style="visibility: hidden; width: 100%; height: 100px;" src="/portal.forum" onLoad="var frame_sjt=window.frame_sjt.document.getElementById('recent');document.getElementById('dernier_sjt').innerHTML=frame_sjt.innerHTML;"></iframe></div>

</body>

</html>

et enfin, j'ai modifier le template "index box pour y creer un tableau apres les categorie dans lequel j'ai mis une iframe pointant vers la pages html créée

voici le code

Code:

<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <!-- BEGIN message_admin_titre -->
   <tr>
      <td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
   </tr>
   <!-- END message_admin_titre -->
   <!-- BEGIN message_admin_txt -->
   <tr>
      <td class="row1" rowspan="3" align="center" valign="middle">
      <div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
      </td>
   </tr>
   <!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
      <th nowrap="nowrap" width="50">{L_TOPICS}</th>
      <th nowrap="nowrap" width="50">{L_POSTS}</th>
      <th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
   </tr>
   <!-- END tablehead -->
   <!-- BEGIN cathead -->
   <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
         <h{catrow.cathead.LEVEL} class="hierarchy">
            <span class="cattitle">
               <a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
            </span>
         </h{catrow.cathead.LEVEL}>
      </td>
      <td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
   </tr>
   <!-- END cathead -->
   <!-- BEGIN forumrow -->
   <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
      <!-- END inc -->
      <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
         <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
         <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
         </h{catrow.forumrow.LEVEL}>
         <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
         <span class="gensmall">
            <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
         </span>
      </td>
      <td class="row3" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
      </td>
   </tr>
   <!-- END forumrow -->
   <!-- BEGIN catfoot -->
   <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
   </tr>
   <!-- END catfoot -->
   <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" />


<!-- END tablefoot --><!-- END catrow -->

 
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"><tr><td>
 <table align="left" bgcolor="DBDBDB" border="1" bordercolor="333333" width="100%">
  <tr>
    <th colspan="4" nowrap="nowrap" width="100%" align="left"><font color="black">     Derniers sujets en cours</font></th>
  </tr>
  <tr align="center">
  <th align="center"colspan="4" border="7" id="comments_forum" valign="middle" rowspan="4"style=" height: 100px; width: 100%;" >
    <iframe name="Les derniers sujets" src="http://test43cf.forumactif.org/h1-derniers_sjt" scrolling="no" height="185px" width="100%" frameborder="0" ></iframe>
  </th>
  </tr>
 </table></td></tr></table>

et ca marche!


donc voila, pour ceux qui comme moi ont lutté, c'est une solution!
avatar

jujusilb
Nouveau membre

Messages : 9
Inscrit(e) le : 22/11/2011

jujusilb 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