Help With IPB Statistics on PHPBB3
3 posters
Page 1 of 1
Help With IPB Statistics on PHPBB3
Hello all wonder if we can fix this, i have it half working lol
here is the code i'm using.
This is where my problem is with this template code
Find this code
Replace by
But when i do i get this
Template code above is for index_body
Can someone help me convert it to PHPBB3 instead of PUN?
like i said i have it on the home page it's just wacked out and after i get it set i'll fix the CCS so it looks good thanks for the help in advance!
here is the code i'm using.
- 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 members</li>
<li><span>'+lastUser+'</span> Newest member</li>
<li><span>'+rdtOn+'</span> Most online</li>
');
});
This is where my problem is with this template code
Find this code
- Code:
<div class="main-content">
<div id="stats">
<p class="right">{TOTAL_POSTS}</p>
<p>{TOTAL_USERS}</p>
<p>{NEWEST_USER}</p>
</div>
Replace by
- Code:
<div id="stats">
<br />
<ul class="statsPers">
<li class="statHide rdtOn">Test1: {RECORD_USERS}</li>
<li class="statHide lastUser">Test2: {NEWEST_USER}</li>
<li class="statHide totalUser">Test3: {TOTAL_USERS}</li>
<li class="statHide totalPost">Teste: {TOTAL_POSTS}</li>
</ul>
<br />
</div>
But when i do i get this
Template code above is for index_body
Can someone help me convert it to PHPBB3 instead of PUN?
like i said i have it on the home page it's just wacked out and after i get it set i'll fix the CCS so it looks good thanks for the help in advance!
Re: Help With IPB Statistics on PHPBB3
You need to understand that each version has different templates. Because of this, you can not use one version template on a different version.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Help With IPB Statistics on PHPBB3
Thank you for the reply, i understand that there is a difference in the version templates was hoping that someone can make my replace by code work for PHPBB3. I found the place in the PHPBB3 template to place the code but as you said templates are different, can a PHPBB3 template code be made for this?
Re: Help With IPB Statistics on PHPBB3
Very fast and I do not think this is allowed!
I've read the PM you sent me, but wait that I will make the code.
JS
Re: Help With IPB Statistics on PHPBB3
FrOsTyXi wrote:Thank you for the reply, i understand that there is a difference in the version templates was hoping that someone can make my replace by code work for PHPBB3. I found the place in the PHPBB3 template to place the code but as you said templates are different, can a PHPBB3 template code be made for this?
Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!FrOsTyXi wrote:bump
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Help With IPB Statistics on PHPBB3
Here is the fix for any other members interested in IPS statistics!
JavaScript Management
Place on the home page
CSS
Enjoy!
JavaScript Management
Place on the home page
- Code:
$(function(e){$('#i_whosonline + p strong:eq(1)').wrap('<p class="page-bottom" />');$('p.page-bottom:last').after($('#i_whosonline + p p.page-bottom'))});$(function(){var on=document.getElementById('i_whosonline');if(!on)return;on=on.nextSibling;on.innerHTML=on.innerHTML.replace(/(<br\s?\/?>).*?\1/,'')});$(function(e){$('#i_whosonline + p').before('<div id="board_stats"><ul class="ipsType_small ipsList_inline"><li class="clear"><span class="value"></span> Total Posts </li><li class="clear"><span class="value"></span> Total Members </li><li class="clear"><span class="value"></span> Newest Member </li><li class="clear" data-tooltip="20 Aug 2011"><span class="value"></span> Most Online </li></ul></div>');$('.h3:contains(Cine este conectat?), .h3:contains(Statistici)').remove();$('#board_stats + p').wrap('<div id="board_statistics" class="statistics clearfix" />');$('p.page-bottom strong:eq(0)').clone().appendTo('#board_stats .value:eq(0)');$('p.page-bottom strong:eq(1)').clone().appendTo('#board_stats .value:eq(1)');$('p.page-bottom strong:eq(2)').clone().appendTo('#board_stats .value:eq(2)');$('p.page-bottom strong:eq(4)').clone().appendTo('#board_stats .value:eq(3)');$('p.page-bottom, em').remove();$('#board_statistics').prepend('<h4 class="statistics_head"><ul id="stat_links" class="ipsList_inline right ipsType_small"><!--//--><li><a href="#" title="View the moderating team">The moderating team</a></li> <li><a href="/memberlist?mode=today_posters" title="View today top 20 posters">Today top 20 posters</a></li> <li><a href="/memberlist?mode=overall_posters" title="View the board overall top posters">Overall top posters</a></li> <li><a href="#">Most Liked Content </a></li></ul></h4>');$('#board_statistics strong:first').append(' users are online (in the past 15 minutes)');$('#board_statistics strong:first').prependTo('.statistics_head');$('#board_statistics p br:eq(1), #board_statistics p br:eq(2), #board_statistics p br:eq(3)').remove()});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/:: 1 Motor de cautare/,' ')}});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/:: 2 Motore de cautare/,' ')}});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/Utilizatori inregistrati:/,'')}});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/In total este/,'')}});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/In total sunt/,'')}});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/utilizator conectat:/,'')}});$(document).ready(function(){var x=$('#board_statistics')[0];if(x){x.innerHTML=x.innerHTML.replace(/utilizatori conectati:/,'')}});$(document).r
CSS
- Code:
#board_stats .value {
display: inline;
background: #1D1D1D;
border: 1px solid #1D1D1D;
box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.13) inset;
padding: 3px 7px;
font-weight: bold;
border-radius: 3px;
margin-right: 3px;
color: white;
}
li.row{
background-color: rgba(0, 0, 0, 0.3);
background-image: none;
border-bottom: 1px solid black!important;
border-left: 1px solid black;
border-right: 1px solid black;
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.41) inset;
}
#board_stats li {
margin-right: 20px;
font-size: 12px;
display: inline;
}
#board_stats ul {
text-align: center;
}
#board_stats {
margin-bottom: 10px;
margin-top: 20px;
color: white;
}
.statistics {
margin: 20px 0 0 0;
padding: 8px;
line-height: 1.3;
overflow: hidden;
color: white;
border: 1px solid #201E1E;
}
.statistics .statistics_head:first-of-type {
border-top: 0;
}
.statistics_head, .statistics_head a {
color: white;
}
.statistics_head {
background: #1D1C1C;
box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.16) inset;
font-size: 11px;
font-weight: bold;
padding: 8px;
margin: -8px -8px 8px -8px;
}
#stat_links {
font-weight: normal;
}
.right {
float: right;
}
#stat_links li {
display: inline;
margin: 0px 4px;
}
Enjoy!
Re: Help With IPB Statistics on PHPBB3
Thanks for posting the solution.
Topic solved and archived
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» To restore a phpbb3 forum from another phpbb3 forum
» Statistics are gone
» statistics
» More Statistics
» Statistics
» Statistics are gone
» statistics
» More Statistics
» Statistics
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum