SMF 1.1.x (Móbulos Manual) > SMF 1.1.x Módulos Manual

informacao do registo

(1/2) > >>

candidosa2:

Boardindex.template.php

Pesquisar por // Show the "Board name      Topics  Posts    Last Post" header.

e colocar o código


--- Código: ---// Forum estatiticas
global $db_prefix,$modSettings;
$today = strtotime("24 hours ago");
date('j') == 1 ? $thismonth = $today : $thismonth = strtotime(date('F') . ' 1');
date('l') == 'Sunday' ? $thisweek = $today : $thisweek = strtotime('last Sunday');
date('M') == 'January' ? $thisyear = $thismonth : $thisyear = strtotime('January 1');
$query = db_query("SELECT
COUNT(dateRegistered > $thisyear OR NULL) as year,
COUNT(dateRegistered > $thismonth OR NULL) as month,
COUNT(dateRegistered > $thisweek OR NULL) as week,
COUNT(dateRegistered > $today OR NULL) as today
FROM {$db_prefix}members
WHERE is_activated = 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($query);
settype($row['today'], "integer");
settype($row['week'], "integer");
settype($row['month'], "integer");

// Istatistik bilgiler online üyelere by KardesTurk translate por Candidosa2
if ($context['user']['is_logged'])
echo'
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="100%" background="', $settings['images_url'], '/catbg.jpg" align="center">
<table style="filter:glow (color=#ff3333 strength=2)">
  <td align="center">
<p align="center"><img border="0" src="http://img106.imageshack.us/img106/5030/star34qs3.gif" width="11" height="10">
<font face="Comic Sans MS"> <b><font color="#ff0066"> Minha Estatiticas!</font> <img border="0" src="http://img106.imageshack.us/img106/5030/star34qs3.gif" width="11" height="10"></table></td>
  </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="30%"> <font size="2"><b>
<font color="#000033">
Data/Hora</font> </b> : ' , $context['current_time'], '
<br>
<b><font color="#000033">
  Este Mes</font> </b>: ' , $row['month'] , ' Membro Registado<br>
<b><font color="#000033">
Este Mes</font> </b>: ' , $row['week'], ' Membro Registado</font><br>
</td>
<td width="40%">
<p align="center">
<font size="2">
<b><font color="#800000">Ultimo membro</font></b> : ' , $context['common_stats']['latest_member']['link'], '
Bem Vindo!<br>
<b>
A Tua Comunidade Moçambicana!</b> Joomla!</font></td>
<td width="30%">
<p align="right"><font size="2"><font color="#000033"><b>Total membros registados</b></font> : ', $context['common_stats']['total_members'],'<br>
<font color="#000033"><b>
Total Topicos</b></font> : ', $context['common_stats']['total_topics'], '<br>
<font color="#000033"><b>
Total Poste</b></font> : ' ,$context['common_stats']['total_posts'], '</font></td>
  </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="100%">
<table border="0" width="100%" background="', $settings['images_url'], '/catbg.jpg">
  <tr>
<td width="77%"><script language="JavaScript">
function setcountup(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURE THE countup SCRIPT HERE//////////////////
//STEP 1: Configure the date to count up from, in the format year, month, day:
//This date should be less than today
setcountup(2007,03,30)
//STEP 2: Configure text to be attached to count up
var displaymessage=" [Her saniye büyümekteyiz] "
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
var countupwidth=\'95%\'
var countupheight=\'20px\' //applicable only in NS4
var countupbgcolor=\'alt1\'
var opentags=\'<span class="smallfont">\'
var closetags=\'</span>\'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=\'\'
function start_countup(){
if (document.layers)
document.countupnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
countup()
}
if (document.all||document.getElementById)
document.write(\'<span id="countupie" style="width:\'+countupwidth+\'; background-color:\'+countupbgcolor+\'"></span>\')
window.onload=start_countup
</script></td>
<td width="23%">
<p align="right"><a href="index.php?action=pm;sa=send;u=1"><i>Enviar Mensagem</i></a></td>
  </tr>
</table>
</td>
  </tr>
</table>
<br>
';
--- Fim de Código ---

silva55:
e quem nao aparece a mensagem?

Pesquisar por // Show the "Board name      Topics  Posts    Last Post" header.

joakim:
tens que indicar qual o tema que usas,ou colocar aqui o teu board.index

não se consegue saber como fazer sem dar mais informação  tongue  biggrin

silva55:
uso o tema Dilbermc

joakim:
ok assim é mais façil loool.Tal como diz o Margueret salvo erro de que vale dizer que está mal se não diz onde  wink

Bom o teu problema ficou assim como na foto se gostar faz como a seguir:

procurar por

--- Código: ---// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%">';

--- Fim de Código ---

colocar antes

--- Código: ---// Forum estatiticas
global $db_prefix,$modSettings;
$today = strtotime("24 hours ago");
date('j') == 1 ? $thismonth = $today : $thismonth = strtotime(date('F') . ' 1');
date('l') == 'Sunday' ? $thisweek = $today : $thisweek = strtotime('last Sunday');
date('M') == 'January' ? $thisyear = $thismonth : $thisyear = strtotime('January 1');
$query = db_query("SELECT
COUNT(dateRegistered > $thisyear OR NULL) as year,
COUNT(dateRegistered > $thismonth OR NULL) as month,
COUNT(dateRegistered > $thisweek OR NULL) as week,
COUNT(dateRegistered > $today OR NULL) as today
FROM {$db_prefix}members
WHERE is_activated = 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($query);
settype($row['today'], "integer");
settype($row['week'], "integer");
settype($row['month'], "integer");

// Istatistik bilgiler online üyelere by KardesTurk translate por Candidosa2
if ($context['user']['is_logged'])
echo'
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="100%" background="', $settings['images_url'], '/catbg.jpg" align="center">
<table style="filter:glow (color=#ff3333 strength=2)">
  <td align="center">
<p align="center"><img border="0" src="http://img106.imageshack.us/img106/5030/star34qs3.gif" width="11" height="10">
<font face="Comic Sans MS"> <b><font color="#ff0066"> Minha Estatiticas!</font> <img border="0" src="http://img106.imageshack.us/img106/5030/star34qs3.gif" width="11" height="10"></table></td>
  </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="30%"> <font size="2"><b>
<font color="#000033">
Data/Hora</font> </b> : ' , $context['current_time'], '
<br>
<b><font color="#000033">
  Este Mes</font> </b>: ' , $row['month'] , ' Membro Registado<br>
<b><font color="#000033">
Esta Semana</font> </b>: ' , $row['week'], ' Membro Registado</font><br>
</td>
<td width="40%">
<p align="center">
<font size="2">
<b><font color="#800000">Ultimo membro</font></b> : ' , $context['common_stats']['latest_member']['link'], '
Bem Vindo!<br>
<b>
A Tua Comunidade Moçambicana!</b> Joomla!</font></td>
<td width="30%">
<p align="right"><font size="2"><font color="#000033"><b>Total membros registados</b></font> : ', $context['common_stats']['total_members'],'<br>
<font color="#000033"><b>
Total Topicos</b></font> : ', $context['common_stats']['total_topics'], '<br>
<font color="#000033"><b>
Total Poste</b></font> : ' ,$context['common_stats']['total_posts'], '</font></td>
  </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td width="100%">
<table border="0" width="100%" background="', $settings['images_url'], '/catbg.jpg">
  <tr>
<td width="77%"><script language="JavaScript">
function setcountup(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURE THE countup SCRIPT HERE//////////////////
//STEP 1: Configure the date to count up from, in the format year, month, day:
//This date should be less than today
setcountup(2007,03,30)
//STEP 2: Configure text to be attached to count up
var displaymessage=" [Her saniye büyümekteyiz] "
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
var countupwidth=\'95%\'
var countupheight=\'20px\' //applicable only in NS4
var countupbgcolor=\'alt1\'
var opentags=\'<span class="smallfont">\'
var closetags=\'</span>\'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=\'\'
function start_countup(){
if (document.layers)
document.countupnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
countup()
}
if (document.all||document.getElementById)
document.write(\'<span id="countupie" style="width:\'+countupwidth+\'; background-color:\'+countupbgcolor+\'"></span>\')
window.onload=start_countup
</script></td>
<td width="23%">
<p align="right"><a href="index.php?action=pm;sa=send;u=1"><i>Enviar Mensagem</i></a></td>
  </tr>
</table>
</td>
  </tr>
</table>
<br>
';
--- Fim de Código ---


Claro que vais ter que alterar o codigo na parte dos nomes do forum ,etc

Um abraço e dispôe sempre

Navegação

[0] Índice de mensagens

[#] Página seguinte

Ir para versão completa