Coding-Spot

You are not connected. Please login or register

 
 
 

IPB Style statistics

Message (Page 1 of 1)

#1

xKillerZone31

xKillerZone31
 
Advance Member

Posted August 13th 2013, 10:14 pm

 
Hello {USERNAMELINK}! I need help... I don't really know where to put this thread but I'm pretty sure it uses javascript?
SO here's the screenshot:
IPB Style statistics Captur13
Source: here





#2

Mark

Mark
 
Administrator
Administrator

Posted August 13th 2013, 10:18 pm

 
Yep. I will provide the code tomorrow since i am using mobile now. Wink 



https://coding-spot.darkbb.com


#3

xKillerZone31

xKillerZone31
 
Advance Member

Posted August 13th 2013, 10:21 pm

 
Ok mark, I'll wait for that ^_^ Thanks in advance.





#4

Mark

Mark
 
Administrator
Administrator

Posted August 14th 2013, 7:57 pm

 
Create a new Javascript, check homepage only:
Code:
$(document).ready(function(){
var rdtOn = $('.rdtOn strong').html();
var lastUser = $('.lastUser strong').html();
var totalUser = $('.totalUser strong').html();
var totalPost = $('.totalPost strong').html();
 
 
$('ul.statsPers').prepend('
<li><span>'+totalPost+'</span> Total Posts</li>
<li><span>'+totalUser+'</span> Total Member</li>
<li><span>'+lastUser+'</span> Newest Member</li>
<li><span>'+rdtOn+'</span> Most Online</li>
');
 
 
});
Now find this on your index_body:
Code:
{BOARD_INDEX}
Then add this below it:
Code:
<div id="statistics">
                  <br />
                  <ul class="statsPers">
                    <li class="statHide totalPost">Total Posts: {TOTAL_POSTS}</li>
                    <li class="statHide totalUser">Total Members: {TOTAL_USERS}</li>
                    <li class="statHide lastUser">Newest Member: {NEWEST_USER}</li>
                    <li class="statHide rdtOn">Most Online: {RECORD_USERS}</li>
                  </ul>
              <br />
</div>
For CSS, add this one:
Code:
#statistics {
padding-left: 0 !important;
}



https://coding-spot.darkbb.com


#5

xKillerZone31

xKillerZone31
 
Advance Member

Posted August 14th 2013, 8:05 pm

 
Thanks mark! Solved :D





#6

Mark

Mark
 
Administrator
Administrator

Posted August 14th 2013, 8:13 pm

 
~ Solved. Locked



https://coding-spot.darkbb.com


#7

Sponsored content


 

Posted

 





Message (Page 1 of 1)

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

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

Users browsing this forum: None