The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Error in templates?

    avatar
    Julija
    Forumember


    Female Posts : 48
    Reputation : 0
    Language : english

    Solved Error in templates?

    Post by Julija December 25th 2014, 1:07 pm

    Hey guys, I'm having some sort of a problem which I can't fix myself. I want to put the "members connected in the last 24 hours" part in the box on the right.

    Here is the picture of how it looks right now:
    Error in templates? BZKQShw
    The content on the left side is right where I want it to be - in the box, but I can't put the "members connected during last 24 hours" part in the box on the right.

    Template code:
    Code:
     <!-- BEGIN disable_viewonline -->
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
     <tr>
     <th colspan="2"><div class="grupes"><a style="color:#692424" href="http://ile-de-france.forumlt.com/g3-royaute">Royauté</a> <a style="color:#663D3D" href="http://ile-de-france.forumlt.com/g4-noblesse">Noblesse</a> <a style="color:#526982" href="http://ile-de-france.forumlt.com/g5-villageois">Villageois</a> <a style="color:#40522B" href="http://ile-de-france.forumlt.com/g6-soldats">Soldats</a> <a style="color:#6F6680" href="http://ile-de-france.forumlt.com/g7-domestiques">Domestiques</a> <a style="color:#334D52" href="http://ile-de-france.forumlt.com/g9-pretre">Prêtre</a> <a style="color:#525252" href="http://ile-de-france.forumlt.com/g8-reprouve">Réprouvé</a></div></th>
     </tr>
     <tr>
     <td><center><div class="reg">{TOTAL_POSTS}. {TOTAL_USERS}. {NEWEST_USER}. {LOGGED_IN_USER_LIST}</div></center></td>
     <td><center><div class="reg">{L_CONNECTED_MEMBERS}</div></center></td>
     </tr>
     <!-- BEGIN switch_chatbox_activate -->
     <tr>
     <td class="row1">
     <span class="gensmall">{TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp; {CHATTERS_LIST}<br />
     <!-- BEGIN switch_chatbox_popup -->
     <div id="chatbox_popup"></div>
     <script type="text/javascript">
     //<![CDATA[
     insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
     //]]>
     </script>
     <!-- END switch_chatbox_popup -->
     </span>
     </td>
     </tr>
     <!-- END switch_chatbox_activate -->
    </table>
    <!-- END disable_viewonline -->

    CSS:
    Code:
    .reg {  
      width:280px; 
      border: solid 15px #000; 
      padding: 10px; 
      background-color:#050505; 
      color:#3d3d3d; 
      font-family:arial; 
      line-height:130%; 
      font-size:9px; 
      text-align:justify;
    }
    Address of the forum:
    http://ile-de-france.forumlt.com/

    I don't understand what I should do in order to put the content right where I want it.

    Thanks, sorry for my english. Merry Christmas.  santa


    Last edited by Julija on December 25th 2014, 10:13 pm; edited 1 time in total
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Solved Re: Error in templates?

    Post by _Twisted_Mods_ December 25th 2014, 1:28 pm

    replace
    Code:

    <td><center><div class="reg">{L_CONNECTED_MEMBERS}</div></center></td>

    with


    Code:
    <td><center><div class="reg">{TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp; {CHATTERS_LIST}</div></center></td>



    avatar
    Julija
    Forumember


    Female Posts : 48
    Reputation : 0
    Language : english

    Solved Re: Error in templates?

    Post by Julija December 25th 2014, 5:54 pm

    Hmm it doesn't work. The chatbox is disabled, but I didn't delete the code from the template. 
    Any more ideas? :/
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Solved Re: Error in templates?

    Post by _Twisted_Mods_ December 25th 2014, 9:23 pm

    ok the element create its own tr element so we have to use script to move it

    template

    Code:

    <!-- BEGIN disable_viewonline -->
        <table class="onlinestuff" width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
        <th colspan="2"><div class="grupes"><a style="color:#692424" href="http://ile-de-france.forumlt.com/g3-royaute">Royauté</a> <a style="color:#663D3D" href="http://ile-de-france.forumlt.com/g4-noblesse">Noblesse</a> <a style="color:#526982" href="http://ile-de-france.forumlt.com/g5-villageois">Villageois</a> <a style="color:#40522B" href="http://ile-de-france.forumlt.com/g6-soldats">Soldats</a> <a style="color:#6F6680" href="http://ile-de-france.forumlt.com/g7-domestiques">Domestiques</a> <a style="color:#334D52" href="http://ile-de-france.forumlt.com/g9-pretre">Prêtre</a> <a style="color:#525252" href="http://ile-de-france.forumlt.com/g8-reprouve">Réprouvé</a></div></th>
        </tr>
        <tr>
        <td><center><div class="reg">{TOTAL_POSTS}. {TOTAL_USERS}. {NEWEST_USER}. {LOGGED_IN_USER_LIST}</div></center></td>
        <td><center><div class="reg2">{L_CONNECTED_MEMBERS}</div></center></td>
        </tr>
        <!-- BEGIN switch_chatbox_activate -->
        <tr>
        <td class="row1">
        <span class="gensmall">{TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp; {CHATTERS_LIST}<br />
        <!-- BEGIN switch_chatbox_popup -->
        <div id="chatbox_popup"></div>
        <script type="text/javascript">
        //<![CDATA[
        insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
        //]]>
        </script>
        <!-- END switch_chatbox_popup -->
        </span>
        </td>
        </tr>
        <!-- END switch_chatbox_activate -->
        </table>
        <!-- END disable_viewonline -->

    css

    Code:

      .reg{ 
          width:280px;
          border: solid 15px #000;
          padding: 10px;
          background-color:#050505;
          color:#3d3d3d;
          font-family:arial;
          line-height:130%;
          font-size:9px;
          text-align:justify;
        }
    .reg2 { 
          width:280px;
          border: solid 15px #000;
          padding: 10px;
          background-color:#050505;
          color:#3d3d3d;
          font-family:arial;
          line-height:130%;
          font-size:9px;
        }

    javascript

    acp>modules>javascript managment>
    turn on javascript if you havent already
    create a new script
    title:whatever
    placement: homepage

    code


    Code:

    $(function(){
    $('.onlinestuff tr:nth-child(3) span').detach().appendTo('.onlinestuff .reg2');
    });
    avatar
    Julija
    Forumember


    Female Posts : 48
    Reputation : 0
    Language : english

    Solved Re: Error in templates?

    Post by Julija December 25th 2014, 9:39 pm

    Thank you so much!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Error in templates?

    Post by Ange Tuteur January 4th 2015, 7:31 am

    Topic archived

      Current date/time is November 14th 2024, 9:25 pm