Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

Estatisticas Bs

3 participantes

Tech-Downloads Tech-Downloads  • Ter 26 Ago 2014 - 16:54

Estatisticas Bs Empty Estatisticas Bs Ter 26 Ago 2014 - 16:54

Minha questão:
Boas pessoal venho aqui pedir o codigo de estatisticas igual a da BS se for possivel.
Estou muito interessado em ter essas estatisticas e acho muito fixe.
Será possivel a equipa da bs desponibilizar esse codigo ? sff
Obrigado
Cumprimentos : Switch

[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]


Endereço do meu fórum:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Versão:
PunBB

iConnect iConnect  • Ter 26 Ago 2014 - 16:57

Estatisticas Bs Empty Re: Estatisticas Bs Ter 26 Ago 2014 - 16:57

Reputação da mensagem: 100% (1 votos)
Olá,
Me passe todo o seu index_body para que possamos fazer as devidas alterações.

Até Mais...

Tech-Downloads Tech-Downloads  • Ter 26 Ago 2014 - 16:59

Estatisticas Bs Empty Re: Estatisticas Bs Ter 26 Ago 2014 - 16:59

Código:
{JAVASCRIPT}
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
   <ul>
         <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
         <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
      <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
      <li><a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a></li>
   </ul>
   <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
   <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->

<!-- BEGIN message_admin_index -->
<div class="main">
   <!-- BEGIN message_admin_titre -->
   <div class="main-head">
      <h1 class="page-title">{message_admin_index.message_admin_titre.MES_TITRE}</h1>
   </div>
   <!-- END message_admin_titre -->

   <!-- BEGIN message_admin_txt -->
   <div id="pun-announcement">
      <p>{message_admin_index.message_admin_txt.MES_TXT}</p>
   </div>
   <!-- END message_admin_txt -->
</div>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<div class="main">
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
   <div class="user_login_form main-box center">
      <label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username" /></label>  
      <label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password" /></label>  
      <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>  
      {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
      <!-- BEGIN switch_fb_connect -->
      <span class="fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
      <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
      <!-- END switch_fb_connect -->
   </div>
</form>
</div>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}

<!-- BEGIN disable_viewonline -->
<script>
  $(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 de posts</li>
<li><span>'+totalUser+'</span> Total de membros</li>
<li><span>'+lastUser+'</span> Membro mais novo</li>
<li><span>'+rdtOn+'</span> Recorde de usuários online</li>
');
 
 
});
</script>
 <div id="statistics">
                  <br />
                  <ul class="statsPers">
                    <li class="statHide rdtOn">Recorde de Usuários Online: {RECORD_USERS}</li>
                    <li class="statHide lastUser">Membro Mais Novo: {NEWEST_USER}</li>
                    <li class="statHide totalUser">Membros: {TOTAL_USERS}</li>
                    <li class="statHide totalPost">Posts: {TOTAL_POSTS}</li>
                  </ul>
              <br />
       
          </div>
<div id="pun-info" class="main">
   <div class="main-content">
          <div class="statistics_head">{TOTAL_USERS_ONLINE}</div>
      <div id="onlinelist">
         <img src="{L_ONLINE_IMG}" alt="{L_WHO_IS_ONLINE}" />
         <p class="right">
            <!-- BEGIN switch_viewonline_link -->
            <a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a>
            <!-- END switch_viewonline_link -->
            <!-- BEGIN switch_viewonline_nolink -->
            {L_WHO_IS_ONLINE}
            <!-- END switch_viewonline_nolink -->
         </p>
         <p>
         {RECORD_USERS}

         <br />
         {LOGGED_IN_USER_LIST}

         {L_ONLINE_USERS}
         {L_CONNECTED_MEMBERS}<br />
         {L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}</p>
         <div class="clear"></div>

         <p>{LEGEND} : {GROUP_LEGEND}</p>

      </div>
      <!-- BEGIN switch_chatbox_activate -->
      <div id="onlinechat">
         <p class="page-bottom">
         {TOTAL_CHATTERS_ONLINE} : 
         {CHATTERS_LIST}<br />
         <!-- BEGIN switch_chatbox_popup -->
            <div id="chatbox_popup"></div>
            <script type="text/javascript">
               insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
            </script>
         <!-- END switch_chatbox_popup -->
         </p>
      </div>
      <!-- END switch_chatbox_activate -->
   </div>
</div>
<!-- END disable_viewonline -->

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
   <div class="user_login_form main-box center">
      <label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username"/></label>  
      <label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password"/></label>  
      <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>  
      {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
      <!-- BEGIN switch_fb_connect -->
      <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
      <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
      <!-- END switch_fb_connect -->
   </div>
</form>
<!-- END switch_user_login_form_footer -->

{CHATBOX_BOTTOM}

<!-- BEGIN switch_legend -->
<ul id="pun-legend">
   <li>
      <img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /> {L_NEW_POSTS}
      <img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /> {L_NO_NEW_POSTS}
      <img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" />&nbsp;{L_FORUM_LOCKED}
   </li>
</ul>
<!-- END switch_legend -->

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
   appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
    status: true,
    cookie: true,
    xfbml: true,
   oauth: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->

Tech-Downloads Tech-Downloads  • Qua 27 Ago 2014 - 9:02

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 9:02

up..................

iConnect iConnect  • Qua 27 Ago 2014 - 9:23

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 9:23

Reputação da mensagem: 100% (1 votos)
Olá,
Onformo que é proibido UPs a menos de 24 horas.
Isto já não é a primeira vez que acontece, tenha cuidado pois a proxima vez pode ser banido do fórum sem aviso prévio.

Até Mais...

Tech-Downloads Tech-Downloads  • Qua 27 Ago 2014 - 9:48

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 9:48

Criei o topic ontem ....
Hoje é novo dia :S lol ?

Target Target  • Qua 27 Ago 2014 - 10:33

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 10:33

Olá,
Sim hoje é novo dia, porém os ups são de 24HRs se você criou o tópico as 8HR da noite, poderá dar um UP somente as 8HR da noite do outro dia. Portanto, seu up não foi dentro estes 24HRs, o que, como não é a primeira vez, já poderia resultar em uma punição.

Tech-Downloads Tech-Downloads  • Qua 27 Ago 2014 - 10:54

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 10:54

Pois nao sabia que os up's era de 24h Peço desculpa

Target Target  • Qua 27 Ago 2014 - 12:05

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 12:05

Olá,
Ponha isto no seu CSS:
Código:

.main .main-content {
-moz-box-shadow: rgba(0,0,0,0.1) 0 0 4px;
-webkit-box-shadow: rgba(0,0,0,0.1) 0 0 4px;
background: #fff;
border: 1px solid #d2d2d2;
box-shadow: rgba(0,0,0,0.1) 0 0 4px;
margin: 5px 0;
padding: 6px;
}

.statistics_head h1 {
color: #727272;
font-family: tahoma,helvetica,arial,sans-serif;
font-size: 14px;
font-style: normal;
font-variant: normal;
font-weight: normal;
margin-left: 10px;
}

#onlinelist {
background: #fff;
border: 0;
border-top: none;
}

#onlinechat, #stats, .statistics_head {
background: #f0f0f0;
border: 1px solid #e0e0e0;
box-shadow: 0 0 3px rgba(109,119,237,0.2);
padding: 5px;
}

E substitua o index_body por este:
Código:

{JAVASCRIPT}
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
   <ul>
         <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
         <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
      <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
      <li><a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a></li>
   </ul>
   <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
   <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->

<!-- BEGIN message_admin_index -->
<div class="main">
   <!-- BEGIN message_admin_titre -->
   <div class="main-head">
      <h1 class="page-title">{message_admin_index.message_admin_titre.MES_TITRE}</h1>
   </div>
   <!-- END message_admin_titre -->

   <!-- BEGIN message_admin_txt -->
   <div id="pun-announcement">
      <p>{message_admin_index.message_admin_txt.MES_TXT}</p>
   </div>
   <!-- END message_admin_txt -->
</div>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<div class="main">
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
   <div class="user_login_form main-box center">
      <label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username" /></label>  
      <label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password" /></label>  
      <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>  
      {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
      <!-- BEGIN switch_fb_connect -->
      <span class="fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
      <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
      <!-- END switch_fb_connect -->
   </div>
</form>
</div>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}

<!-- BEGIN disable_viewonline -->
<div id="pun-info" class="main">
   <div class="main-content">
   <div class="statistics_head">
          <h1>{TOTAL_USERS_ONLINE}</h1>
          </div>
         
        <div class="main-statistics">
      <div id="onlinelist">

{RECORD_USERS} <p class="right">
<a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></p>
<p>
         <br />
         {LOGGED_IN_USER_LIST}

         {L_ONLINE_USERS}
         {L_CONNECTED_MEMBERS}<br style="line-height:5px;" />
{L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}</p>
         <div class="clear"></div>

         <p>{LEGEND} : {GROUP_LEGEND}</p>

      </div>
      <!-- BEGIN switch_chatbox_activate -->
      <div id="onlinechat">
         <p class="page-bottom">
         {TOTAL_CHATTERS_ONLINE} : 
         {CHATTERS_LIST}<br />
         <!-- BEGIN switch_chatbox_popup -->
            <div id="chatbox_popup"></div>
            <script type="text/javascript">
               insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
            </script>
         <!-- END switch_chatbox_popup -->
         </p>
      </div>
      <!-- END switch_chatbox_activate -->
   </div>
  </div>
</div>
<!-- END disable_viewonline -->

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
   <div class="user_login_form main-box center">
      <label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username"/></label>  
      <label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password"/></label>  
      <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>  
      {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
      <!-- BEGIN switch_fb_connect -->
      <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
      <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
      <!-- END switch_fb_connect -->
   </div>
</form>
<!-- END switch_user_login_form_footer -->

{CHATBOX_BOTTOM}

<!-- BEGIN switch_legend -->
<ul id="pun-legend">
   <li>
      <img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /> {L_NEW_POSTS}
      <img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /> {L_NO_NEW_POSTS}
      <img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" />&nbsp;{L_FORUM_LOCKED}
   </li>
</ul>
<!-- END switch_legend -->

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
   appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
    status: true,
    cookie: true,
    xfbml: true,
   oauth: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->

Até +! Wink

Tech-Downloads Tech-Downloads  • Qua 27 Ago 2014 - 12:26

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 12:26

nao ficou igual ao do bs....

Target Target  • Qua 27 Ago 2014 - 12:56

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 12:56

Olá,
O código é o mesmo daqui da BS, verifique no seu CSS se não utilizas display:none.
Como disse no chatbox, você tem ativo os display:none em #onlinelist e #onlinelist p!

Até +!  Wink

iConnect iConnect  • Qua 27 Ago 2014 - 13:20

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 13:20

Olá,
Me passe toda a sua Folha de Estilo CSS.

Até Mais....

iConnect iConnect  • Qua 27 Ago 2014 - 13:34

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 13:34

Olá,
Troque toda a sua CSS por esta:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Até Mais...

Target Target  • Qua 27 Ago 2014 - 13:39

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 13:39

Olá,
Tente este: [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Até +! Wink

Tech-Downloads Tech-Downloads  • Qua 27 Ago 2014 - 13:44

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 13:44

Nao da nao sei porque......... :S

Target Target  • Qua 27 Ago 2014 - 13:48

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 13:48

Olá,
Adicione no seu CSS:

Código:

div#onlinelist, #onlinelist p {
    display: block !important;
}

Até + ! Wink

Tech-Downloads Tech-Downloads  • Qua 27 Ago 2014 - 14:10

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 14:10

Obrigado jQuery e Target ja ta funcionar Smile

iConnect iConnect  • Qua 27 Ago 2014 - 15:09

Estatisticas Bs Empty Re: Estatisticas Bs Qua 27 Ago 2014 - 15:09

[sucesso=Tópico Resolvido; e Bloqueado][/sucesso]Movido para: Arquivo - Pedido de código

Conteúdo patrocinado  • 

Estatisticas Bs Empty Re: Estatisticas Bs

Permissões neste sub-fórum
Não podes responder a tópicos