Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Solved] Help With IPB Statistics on PHPBB3



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  FrOsTyXi

FrOsTyXi
V.I.P. Member
V.I.P. Member
  • Description:
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

[Solved] 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!

  • Information:
Forum:http://www.team-psn.net/Version:PHPBB3
Type:Request a codeTags:Statistics,PHPBB3




Topic corrected and sorted out.
~ Virus ~

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

2
Offline

  FrOsTyXi

FrOsTyXi
V.I.P. Member
V.I.P. Member
bump

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

3
Offline

  Virus

Virus
★Moderator★
★Moderator★
[aviso="Double Post"]Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead![/aviso]

[infos="Topic"]Please make sure next time you create a topic to use the correctcodes so that the problem will be displayed normally and get solved easily and try not to copy paste a topic. Thanks.[/infos]

Powered by PunBB
Currently 0 users have thanked Virus for this post:

4
Offline

  FrOsTyXi

FrOsTyXi
V.I.P. Member
V.I.P. Member
Virus wrote:[link="/t831-help-with-ipb-statistics-on-phpbb3#5541"][aviso="Double Post"]Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead![/aviso]

[infos="Topic"]Please make sure next time you create a topic to use the correctcodes so that the problem will be displayed normally and get solved easily and try not to copy paste a topic. Thanks.[/infos]
reply quick when it's bumped why not answer the post and problem?

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

5
Offline

  deaneo8

deaneo8
V.I.P. Member
V.I.P. Member
how get psn icon next usernames bro

Powered by PunBB
Currently 0 users have thanked deaneo8 for this post:

6
Offline

  FrOsTyXi

FrOsTyXi
V.I.P. Member
V.I.P. Member
deaneo8 wrote:[link="/t831-help-with-ipb-statistics-on-phpbb3#5554"]how get psn icon next usernames bro

Sent you a message on the matter

Regards

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

7
Offline

  Virus

Virus
★Moderator★
★Moderator★
@FrOsTyXi do not wait for replies 24/7. We are here as volunteers and we help as much as we can. You must follow the rules and so do we. If you do not follow the rules there are consequences. As you saw i corrected the mess that was in your topic so i can read the topic. It is not easy to convert IPB to Phpbb3. So the best thing you can do is wait and bump every 24 hours if needed.

Thank you,
~ Virus ~

Powered by PunBB
Currently 0 users have thanked Virus for this post:

8
Offline

  FrOsTyXi

FrOsTyXi
V.I.P. Member
V.I.P. Member
Here it is converted to phpbb3!
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!

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

9
Offline

  Virus

Virus
★Moderator★
★Moderator★
Is this now solved or the problem still occurs?

Powered by PunBB
Currently 0 users have thanked Virus for this post:

10
Offline

  FrOsTyXi

FrOsTyXi
V.I.P. Member
V.I.P. Member
Solved!

Powered by PunBB
Currently 0 users have thanked FrOsTyXi for this post:

11
Offline

  Virus

Virus
★Moderator★
★Moderator★
Ok then! Have a nice day! sunny

[sucesso="Marked as Solved"]The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been marked as Solved.

If you have further questions, please open a new topic.[/sucesso]

Powered by PunBB
Currently 0 users have thanked Virus for this post:

12
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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