Autor Tópico: informacao do registo  (Lida 8108 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
informacao do registo
« em: 12 de Outubro de 2007, 05:55 »

Boardindex.template.php

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

e colocar o código

Código: [Seleccione]
// 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>
';

Offline silva55

  • Iniciar SmfPt
  • *
  • Mensagens: 51
  • Rank: 3
Re:informacao do registo
« Responder #1 em: 08 de Janeiro de 2010, 02:08 »
e quem nao aparece a mensagem?

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

Offline joakim

  • Traductor
  • *
  • Mensagens: 67
  • Rank: 0
  • Sexo: Masculino
    • Samora O Forum
Re:informacao do registo
« Responder #2 em: 08 de Janeiro de 2010, 02:44 »
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

Offline silva55

  • Iniciar SmfPt
  • *
  • Mensagens: 51
  • Rank: 3
Re:informacao do registo
« Responder #3 em: 08 de Janeiro de 2010, 11:54 »
uso o tema Dilbermc

Offline joakim

  • Traductor
  • *
  • Mensagens: 67
  • Rank: 0
  • Sexo: Masculino
    • Samora O Forum
Re:informacao do registo
« Responder #4 em: 08 de Janeiro de 2010, 15:10 »
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: [Seleccione]
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%">';

colocar antes
Código: [Seleccione]
// 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>
';


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

Um abraço e dispôe sempre
« Última modificação: 08 de Janeiro de 2010, 15:18 por joakim »

Offline joakim

  • Traductor
  • *
  • Mensagens: 67
  • Rank: 0
  • Sexo: Masculino
    • Samora O Forum
Re:informacao do registo
« Responder #5 em: 08 de Janeiro de 2010, 15:38 »
Outra opção e quanto a mim a melhor

procurar por
Código: [Seleccione]
// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">', theme_linktree(), '</td>
<td align="right">';
if (!$settings['show_sp1_info'])
echo '
', $txt[19], ': ', $context['common_stats']['total_members'], ' &nbsp;•&nbsp; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &nbsp;•&nbsp; ', $txt[64], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
echo '
</td>
</tr>
</table>';


substituir por
Código: [Seleccione]
// 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">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 Samorense e!</b> Ribatejana!</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 Mensagens</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>
';

Aqui já alterei umas coisas nas palavras e o candido tem nas duas vezes este mes e o correcto será este mes e esta semana

fica a foto tambem
um abraço
« Última modificação: 08 de Janeiro de 2010, 15:44 por joakim »