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.

Help With IPB Statistics on PHPBB3

3 posters

Go down

Solved Help With IPB Statistics on PHPBB3

Post by FrOsTyXi Wed Dec 10 2014, 04:06

Hello all wonder if we can fix this, i have it half working lol

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
Help With IPB Statistics on PHPBB3  Captur17

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!
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by SLGray Wed Dec 10 2014, 04:13

You need to understand that each version has different templates.  Because of this, you can not use one version template on a different version.


Help With IPB Statistics on PHPBB3  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by FrOsTyXi Wed Dec 10 2014, 04:18

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?
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by FrOsTyXi Wed Dec 10 2014, 05:45

bump
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by JScript Wed Dec 10 2014, 05:51

Help With IPB Statistics on PHPBB3  Uu6Djq1
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
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by SLGray Wed Dec 10 2014, 05:53

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?

FrOsTyXi wrote:bump
Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!


Help With IPB Statistics on PHPBB3  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by FrOsTyXi Wed Dec 10 2014, 14:19

Thank you for the help Jscript and no problem SLGray.
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by FrOsTyXi Fri Dec 12 2014, 06:35

Here is the fix for any other members interested in IPS statistics!

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;
}
ACP ~ Users & Groups ~> Users options ~> Allow birthday management : NO




Enjoy!
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Help With IPB Statistics on PHPBB3

Post by SLGray Fri Dec 12 2014, 06:43

Thanks for posting the solution.

Topic solved and archived


Help With IPB Statistics on PHPBB3  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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