index_body code problem

Go down

index_body code problem

Post by !redlove! on September 13th 2015, 5:52 pm

Dear forumotions team

I edited my forum index_body code for New style statistics
In this type
Replace Code:

!- BEGIN disable_viewonline -->
<!-- END disable_viewonline -->
With the following code:

var rdtOn = $('.rdtOn strong').html();
var lastUser = $('.lastUser strong').html();
var totalUser = $('.totalUser strong').html();
var totalPost = $('.totalPost strong').html();
<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 users ever online</li>
<div id="pun-info" class="main">
  <div class="main-head">
      <h2 class="page-title">
                          <b><a href="/viewonline"><font color="white"><b style="color:#aa0000" class="coloradmin">Statistics</b></font> </a></b>
  <div style="display: block;" class="main-content">
      <div id="forum_statistics">
        <div id="board-stats">
                                        <div id='board_stats'>
        <dt>Total Posts:</dt><dd><div id='board_statistics'> <span class="FORUMCOUNTPOST">{FORUMCOUNTPOST}</span></div>  </dd>   
          <br> <dt>Total Topics:</dt><dd><div id='board_statistics'> <span class="FORUMCOUNTOPIC">{FORUMCOUNTOPIC}</span></div>    </dd> 
      <br> <dt>Total Members: </dt><dd><div id='board_statistics'><span class='FORUMCOUNTUSER'>{FORUMCOUNTUSER}</span></div>          </dd>                                       
    <br> <dt>Newest Member </dt><dd><div id='board_statistics'><span class='FORUMLASTUSERLINK'>{FORUMLASTUSERLINK}</span></div>      </dd>                                           
        <div class="rightStats">
            <div class="starsItem">
                  <p class="starsTitle">
                  <div class="leftStats">
                      <img src="" />
                  <p class="starsTitle">
                    Online Users
              <div class="leftStats">
                  <span class="starsItem_TOTAL_USERS_ONLINE">  {TOTAL_USERS_ONLINE}</span>
<p>  <span class="desc lighter blend_links"><b><i>{RECORD_USERS}</i></b> </span>       
    <br>{L_CONNECTED_MEMBERS}  </p>
  <span class="desc lighter blend_links"><b><i>Legend:</i></b> {GROUP_LEGEND}</span>
 <style>#board-stats {
    border-left: 1px solid rgb(222, 222, 222);
    float: right;
    padding-left: 20px;
    width: 38%;
.rightStats {
    border-left: 1px solid rgb(207, 201, 201);
    margin: 5px 10px 5px 70px;
    min-height: 167px;
    padding-left: 10px;
    width: 90%;
#forum_statistics {
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(233, 233, 233);
    max-height: 500px;
    padding: 10px;
.starsTitle {
    font-family: helvetica,arial,sans-serif;
    font-weight: 700;
    margin-top: -8px !important;
    padding: 4px;
#board-stats h2 {
    clear: both;
    font-weight: bold;
Everything is completedd
But my forum is look like This

Img url :-

Total Posts:

Total Topics:

Total Members:

Newest Member
Is Not showing
How to solve This problem
Please help me
Thank you!
My forum address:-
Version:- punbb
New Member

Male Posts : 13
Reputation : 2
Language : English
Location : India

Back to top Go down

Back to top

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