AccueilDernières imagesRechercherS'enregistrerConnexion

Forum de graphisme, codage et game design proposant des tutoriels, astuces, libres services et commandes dans les domaines de l'infographie amateur, de l'intégration web (HTML et CSS essentiellement) ainsi que dans la conception de RPG sur forum.

Le Deal du moment :
Cdiscount : -30€ dès 300€ ...
Voir le deal

    Problème personnalisation catégories

    SamLine
    SamLine
    FémininAge : 23Messages : 31

    Dim 14 Juin 2015 - 18:07

    Bonjour,

    J'essaye de personnaliser ces catégories: https://www.never-utopia.com/t37077-les-forum-sur-deux-colonnes-html-css en les mettant en onglets grâce à ce tuto: https://www.never-utopia.com/t26304p60-affichage-des-categories-grace-a-un-jeu-d-onglets-maj-18-02-12

    Donc, je rencontre un problème sur la templates où l'on me dit que "La balise a été fermée avant d'avoir été ouverte ou la balise n'a pas été ouverte." Après plusieurs relectures du code, impossible de trouver l'erreur.

    Je tiens aussi à préciser que les codes marchent séparément.

    Merci d'avance.
    Onyx
    Onyx
    FémininAge : 30Messages : 3350

    Dim 14 Juin 2015 - 20:16

    Hellow hellow, tu pourrais nous donner le code qui a une balise mal fermée pour qu'on essaie de trouver le problème? Merci ^^



    SamLine
    SamLine
    FémininAge : 23Messages : 31

    Lun 15 Juin 2015 - 19:55

    Voilà le code:


    Code:
          <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
        <tr>
        <td valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall">{LAST_VISIT_DATE}<br />
        {CURRENT_TIME}<br />
        </span>
        <!-- END switch_user_logged_in -->
        <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
        </td>
        <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
        <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
        <!-- END switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
        </td>
        </tr>
        </table>
        <div id="conteneur_onglets">
          <table><tr>
            <td class="onglet"><div>Bienvenue !  ~</div></td>
            <td class="onglet"><div>  Flood  ~</div></td>
            <td class="onglet"><div>  Salval  ~</div></td>
            <td class="onglet"><div>  Aiguerousse  ~</div></td>
            <td class="onglet"><div>  Terre du Centre</div></td>
          </tr></table>
      </div>

              <div id="conteneur_categories"><!-- BEGIN catrow -->    <!-- BEGIN tablehead --><div class="categorie">

        <div class="cate_titre"><span class="catetitre_bloc"></span>
          <span class="catetitre_content">{catrow.tablehead.L_FORUM}</span></div>

            <!-- BEGIN tablehead --><div class="categorie">
        <!-- BEGIN cathead -->


        <!-- END cathead -->
        <!-- BEGIN forumrow -->
       

        <div class="forum_bloc">
        <div class="forum">
         
          <span class="forumlink">
          <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
          </span>
         
          <div class="forum_contenu">
            {catrow.forumrow.FORUM_DESC}<br />
           
            <div class="icone_stats"><table><tr><td><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" class="icone" /></td>
              <td><span class="stats_lastpost">
                <span class="stats">{catrow.forumrow.TOPICS} sujets ; {catrow.forumrow.POSTS} messages</span>
                <span class="lastpost">{catrow.forumrow.LAST_POST}</span>
                </span></td>
              </tr></table></div>
           
          </div>
         
          <div class="sous_forum">
            <span class="sforum">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
            <span class="ouverture_sousforum">Voir les sous-forum</span>
          </div>
         
        </div>
        </div>


        <!-- END forumrow -->
        <!-- BEGIN catfoot -->

        <!-- END catfoot -->
        <!-- BEGIN tablefoot -->

            <!-- END tablefoot --></div>    </div><!-- END catrow -->
    Onyx
    Onyx
    FémininAge : 30Messages : 3350

    Mar 16 Juin 2015 - 1:30

    Alors il y avais deux fois la div "cateforie" qui était ouverte, mais elle n'était refermée qu'une seule fois. De plus, il y avait deux fois la séparation "BEGIN tablehead" et aucun "END tablehead". Il y avait aussi les divs du code par onglet qui étaient au mauvais endroit, mais c'est dû à une erreur dans le tuto qui sera bientôt corrigé Wink

    J'ai modifié le tout et cela donne ceci :
    Code:
    <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
       <tr>
          <td valign="bottom">
             <!-- BEGIN switch_user_logged_in -->
             <span class="gensmall">{LAST_VISIT_DATE}<br />
             {CURRENT_TIME}<br />
             </span>
             <!-- END switch_user_logged_in -->
             <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
          </td>
          <td class="gensmall" align="right" valign="bottom">
             <!-- BEGIN switch_user_logged_in -->
             <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
             <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
             <!-- END switch_user_logged_in -->
             <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
          </td>
       </tr>
    </table>
    <div id="conteneur_onglets">
      <table>
        <tr>
          <td class="onglet"><div>Bienvenue !  ~</div></td>
          <td class="onglet"><div>  Flood  ~</div></td>
          <td class="onglet"><div>  Salval  ~</div></td>
          <td class="onglet"><div>  Aiguerousse  ~</div></td>
          <td class="onglet"><div>  Terre du Centre</div></td>
        </tr>
      </table>
    </div>

    <div id="conteneur_categories">
      <!-- BEGIN catrow -->
      <!-- BEGIN tablehead -->
      <div class="categorie">
        <div class="cate_titre">
          <span class="catetitre_bloc"></span>
          <span class="catetitre_content">
            {catrow.tablehead.L_FORUM}
          </span>
        </div>
      <!-- END tablehead -->
      <!-- BEGIN cathead -->
      <!-- END cathead -->
      <!-- BEGIN forumrow -->
       

        <div class="forum_bloc">
        <div class="forum">
         
          <span class="forumlink">
          <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
          </span>
         
          <div class="forum_contenu">
            {catrow.forumrow.FORUM_DESC}<br />
           
            <div class="icone_stats"><table><tr><td><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" class="icone" /></td>
              <td><span class="stats_lastpost">
                <span class="stats">{catrow.forumrow.TOPICS} sujets ; {catrow.forumrow.POSTS} messages</span>
                <span class="lastpost">{catrow.forumrow.LAST_POST}</span>
                </span></td>
              </tr></table></div>
           
          </div>
         
          <div class="sous_forum">
            <span class="sforum">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
            <span class="ouverture_sousforum">Voir les sous-forum</span>
          </div>
         
        </div>
        </div>


        <!-- END forumrow -->
        <!-- BEGIN catfoot -->

        <!-- END catfoot -->
        <!-- BEGIN tablefoot -->
                </div>
            <!-- END tablefoot --></div>    <!-- END catrow --></div>

    Tu me dis si c'est bon Wink



    SamLine
    SamLine
    FémininAge : 23Messages : 31

    Mar 16 Juin 2015 - 18:21

    Mes catégories ne marchent toujours pas. Cependant, les balises sont bonnes maintenant.

    https://2img.net/r/hpimg11/pics/620576Sanstitre.png

    Il ne devrait rien y avoir au dessus de "Flood" et tout ce qui est à côté de "Coin jeu" ne devrait pas être là...
    Onyx
    Onyx
    FémininAge : 30Messages : 3350

    Mar 16 Juin 2015 - 23:58

    Juste comme ça, tu n,aurais pas fait une erreur dans le lien de l'image? Ça me donne erreur 404 O_o Ou tu peux juste donner le lien du forum, ce serait encore mieux ^^



    SamLine
    SamLine
    FémininAge : 23Messages : 31

    Mer 17 Juin 2015 - 7:00

    Je ne sais pas... Peut-être, c'est possible.

    Le voici: http://af-rpg.forumactif.org/
    Nihil Scar Winspeare
    Nihil Scar Winspeare
    Messages : 5244

    Mer 24 Juin 2015 - 2:13

    Hello Sam :)

    A la dernière ligne de ton template, je crois qu'il y a une div en trop (^-^)
    On remplace :
    Code:
            <!-- END tablefoot --></div>    <!-- END catrow --></div>

    Par
    Code:
            <!-- END tablefoot --><!-- END catrow --></div>

    Normalement cela devrait régler ton soucis ♥

    Onyx
    Onyx
    FémininAge : 30Messages : 3350

    Sam 4 Juil 2015 - 6:48

    Salut SamLine, tu as vu la réponse de Nihil? Merci de répondre dans les 10 prochains jours Wink



    SamLine
    SamLine
    FémininAge : 23Messages : 31

    Ven 10 Juil 2015 - 23:23

    Merci, ça marche parfaitement cette fois.
    Contenu sponsorisé


      La date/heure actuelle est Sam 11 Mai 2024 - 12:24