Coding-Spot

You are not connected. Please login or register

 
 

Statistics Like IPB

Message (Page 1 of 1)


 
Advance Member

Posted on Wed Apr 24, 2013 10:54 am

 
hey, i installed some codes in forum to make the statistics look like IpBoard. The codes i used are here:

CSS:

Code:
    .boxed{
    border: 1px solid #cccacc;
    padding: 3px 7px;
    background: #ededed;
    color: #000000;
    box-shadow: inset 0 0 5px #cccacc;
    border-radius: 2px;
    }

    .nlgcode{
    padding:12px 0px;
    text-align:center;}

    .newspan{
    padding:0 10px;
    }

JS:

Code:
    $(document).ready(function(){
    var a = $('.new1 strong').text();
    var b = $('.new2 strong').text();
    var c = $('.new3 strong').text();
    var d = $('.new4 strong').text();
    $('.new1').html('<span class="boxed">'+a + '</span>  Συνολικά μηνύματα');
    $('.new2').html('<span class="boxed">'+ b +'</span> Συνολικά μέλη');
    $('.new3').html('<span class="boxed">'+ c + '</span> Νεότερο μέλος');
    $('.new4').html('<span class="boxed">'+ d + '</span> Ρεκόρ ταυτόχρονων συνδέσεων ');
    });

Templates => Index_Box:

Code:
    <div style="margin:auto;text-align:center;width:100%"><tr>
              <td class="gensmall nlgcode">
              <span class="new1 newspan">{TOTAL_POSTS}</span>
              <span class="new2 newspan">{TOTAL_USERS}</span>
              <span class="new3 newspan">{NEWEST_USER}</span>
              <span class="new4 newspan">{TOTAL_USERS_ONLINE}</span>
              </td>
              </tr></div>

the result is good, but the only problem ive got is that the "Newest Member" name is doubled. In the pic it says [Newest Memeber: MasterslyMastersly] Its the same if its [Newest Member: MarkMark]. Can i change that? i didnt find something wrong in the codes :S



Forum URL: www.myplanet.forumgreek.com



View user profile



 
Administrator
Administrator

Posted on Wed Apr 24, 2013 12:35 pm

 
Replace your CSS with this one:
Code:
    .boxed{
    border: 1px solid #cccacc;
    padding: 3px 7px;
    background: #ededed;
    color: #000000;
    box-shadow: inset 0 0 5px #cccacc;
    border-radius: 2px;
    }

    .nlgcode{
    padding:12px 0px;
    text-align:center;}

    .newspan{
    padding:0 10px;
    }

.FORUMLASTUSERLINK{
    padding:0 10px;
    border: 1px solid #cccacc;
    padding: 3px 7px;
    background: #ededed;
    color: #000000;
    box-shadow: inset 0 0 5px #cccacc;
    border-radius: 2px;
    }

And the code you put inside the index_box with this one:
Code:
    <div style="margin:auto;text-align:center;width:100%"><tr>
              <td class="gensmall nlgcode">
              <span class="new1 newspan">{TOTAL_POSTS}</span>
              <span class="new2 newspan">{TOTAL_USERS}</span>
              <span class="FORUMLASTUSERLINK"></span> Νεότερο μέλος
              <span class="new4 newspan">{TOTAL_USERS_ONLINE}</span>
              </td>
              </tr></div>

It should work now. :):



View user profile http://coding-spot.darkbb.com



 
Advance Member

Posted on Wed Apr 24, 2013 12:38 pm

 
perfect. :)
just something more. it doesnt says the number of 'Most Users Online'



View user profile



 
Administrator
Administrator

Posted on Wed Apr 24, 2013 1:05 pm

 
Replace the code you put on index_box with this one:
Code:
    <div style="margin:auto;text-align:center;width:100%"><tr>
              <td class="gensmall nlgcode">
              <span class="new1 newspan">{TOTAL_POSTS}</span>
              <span class="new2 newspan">{TOTAL_USERS}</span>
              <span class="FORUMLASTUSERLINK"></span> Νεότερο μέλος
              <span class="FORUMONLINEUSER"></span> Ρεκόρ ταυτόχρονων συνδέσεων
              </td>
              </tr></div>



View user profile http://coding-spot.darkbb.com



 
Advance Member

Posted on Wed Apr 24, 2013 1:07 pm

 
Solved! :):



View user profile



 
Administrator
Administrator

Posted on Wed Apr 24, 2013 1:10 pm

 
Since the problem is solved, i'll locked this and move to archive section.
~ Locked and Moved



View user profile http://coding-spot.darkbb.com


#7

Sponsored content


 

Posted Today at 2:32 pm

 





Message (Page 1 of 1)

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

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None