The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Error in templates?

View previous topic View next topic Go down

Solved Error in templates?

Post by Julija on 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:

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

Julija
Forumember

Female Posts : 48
Reputation : 0
Language : english

Back to top Go down

Solved Re: Error in templates?

Post by _Twisted_Mods_ on 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>




_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Error in templates?

Post by Julija on 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? :/

Julija
Forumember

Female Posts : 48
Reputation : 0
Language : english

Back to top Go down

Solved Re: Error in templates?

Post by _Twisted_Mods_ on 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');
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Error in templates?

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

Thank you so much!

Julija
Forumember

Female Posts : 48
Reputation : 0
Language : english

Back to top Go down

Solved Re: Error in templates?

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

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum