CSSActif, le forum, n'est plus maintenu. Il est néanmoins disponible pour consultation. Pour des outils pratiques, rendez-vous sur: Découvrez CSSActif, une collection d'outils et de tutoriels interactifs pour les développeurs Web — HTML, CSS, JavaScript et bien plus! | | Saut à la ligne sous-forums non désiré | |
| Sea, sex and sun
{ Membre }
Messages : 15
| Bonsoir Voila mon soucis, j'ai modifié mes templates à mon goût et je souhaite que mes sous-forums soient sur la même ligne, j'ai beau bidouiller, je ne trouve malheureusement pas la solution. Voila l'adresse : http://sex-sea-and-sun.actifforum.com/
Voila mon template index_box :
- Code:
-
<!-- BEGIN catrow --><!-- BEGIN tablehead --><div class="noms-categories" style="margin-right:0px;padding-left:50px;padding-bottom: 0px;">{catrow.tablehead.L_FORUM}</div>
<div style="padding: 0px;" class="categories" nowrap="nowrap" style="padding-top:0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <!-- 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></tr><tr> <!-- END inc --> <td class="row1 over" colspan="3" valign="middle" width="100%" height="10">
</td></tr> <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle" style="padding-left: 6px; padding-bottom: 3px;">
<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" height="50" style="padding-right: 3px; padding-left: 3px;">
<h{catrow.forumrow.LEVEL} class="hierarchy" style="margin-bottom: 0px;"> <span class="forumlink"> <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</div></a> </span> </h{catrow.forumrow.LEVEL}>
<table class="forumlastpost" border="0" cellspacing="0" cellpadding="0" style="margin-right: 5px;" ><tr> <td>
<span class="genmed"><div class="descriptions-categories">{catrow.forumrow.FORUM_DESC}</div></span> <br /> <center> <span class="gensmall"> <!-- BEGIN switch_moderators_links --> {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS} <!-- END switch_moderators_links -->
<div class="subforumlink" id="subforums"> {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}<script type="text/javascript">jQuery('#subforums').html(jQuery('#subforums').html().replace(/, /g,'')).removeAttr('id');</script></div> </td> </center> </td> <td style="margin-top:4px; vertical-align:top center;margin-right:10px;"> <div class="stats-nombre" style="margin-right:100px;">messages :{catrow.forumrow.POSTS} ▷ topics {catrow.forumrow.TOPICS}</div> <br> <br> <div class="stats-forum"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></div></td></tr></table> <br />
</span> </span> </td> <!-- BEGIN forum_link_no -->
<!-- END forum_link_no --> <!-- BEGIN forum_link --> <td class="row3" colspan="3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td> <!-- END forum_link --> </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></div>
<img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow --> C'est ici que je dois effectuer la modification mais je ne sais pas comment les mettre sur la même ligne. - Code:
-
<div class="subforumlink" id="subforums"> {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}<script type="text/javascript">jQuery('#subforums').html(jQuery('#subforums').html().replace(/, /g,'')).removeAttr('id');</script></div> Merci d'avance de votre aide. | | |
| | | Psycho
Psychopathe
Messages : 3407
| Hello (: Juste pour les messages à venir, lorsque tu postes un code, pense à utiliser les balises code prévues : - Code:
-
[code] [/code] pour éviter que la page soit déformée ou autre Voilà, je laisse la parole à mes collègues (: | | |
| | | Yeul
{ Membre }
Messages : 44
| Bonsoir bonsoir. J'ai vu récemment -coup de chance- que ce code-ci permettait de faire les retours à la ligne en supprimant les virgules. - Code:
-
<script type="text/javascript">jQuery('#subforums').html(jQuery('#subforums').html().replace(/, /g,'')).removeAttr('id');</script> Donc, si je ne me trompe pas, si tu enlèves ce code, les sous-forums ne devraient plus apparaître en retour à la ligne. (; EDIT; je pense avoir dit une bêtise en fait. As-tu mis des "div" ou autre dans les titres de tes sous-forums? | | |
| | | Psycho
Psychopathe
Messages : 3407
| Hello Sea, sex and sun ! Le problème est-il toujours d'actualité ? Si nous n'avons pas de réponse dans 4 jours, le sujet sera considéré comme résolu. Merci de ta compréhension | | |
| | | Psycho
Psychopathe
Messages : 3407
| Hello ! N'ayant toujours pas obtenu de réponse, je considère ce sujet comme résolu ! Merci de ta compréhension | | |
| | | Contenu sponsorisé
| | | | | Saut à la ligne sous-forums non désiré | |
|
Sujets similaires | |
|
| Permission de ce forum: | Vous ne pouvez pas répondre aux sujets dans ce forum
| |
| |
| |
|
| Partenaires Or
|
|