Üyenin Aylık İstatistiki Verileri
(1/1)
MuratbanK:
Üyenin Aylık İstatistiki Verileri

Üye Profilinden Kimlik Bilgisi --- İstatistikleri Göster butonu aracılığı ile aylık istatistiikleri kontrol edebilirsiniz

Örnek Görüntü:



Modun Adı :Monthly Statistics on Profile
Mod Sahibi :Daniel115
Türkçeleştiren:Husmen73


Profil.php dosyasında

Bul
Kod:

// Put it in the right order.
ksort($context['posts_by_time']);

Sonrasına Ekle
Kod:

// ---- Begin modification - Posts per month ----
$context['posts_per_month'] = array();

// The number of posts per month
$result = db_query("
SELECT
COUNT(*) AS count,
MONTH(FROM_UNIXTIME(posterTime + " . (($user_info['time_offset'] + $modSettings['time_offset']) * 3600) . ")) AS month,
YEAR(FROM_UNIXTIME(posterTime + " . (($user_info['time_offset'] + $modSettings['time_offset']) * 3600) . ")) AS year
FROM {$db_prefix}messages
WHERE ID_MEMBER = $memID
GROUP BY year, month
ORDER BY year DESC, month DESC", __FILE__, __LINE__);
// Loop through all results
while ($row = mysql_fetch_assoc($result))
// Add this to the array
$context['posts_per_month'][$row['year']][$row['month']]['posts'] = $row['count'];

// The number of topics per month
$result = db_query("
SELECT
COUNT(*) AS count,
MONTH(FROM_UNIXTIME(m.posterTime + " . (($user_info['time_offset'] + $modSettings['time_offset']) * 3600) . ")) AS month,
YEAR(FROM_UNIXTIME(m.posterTime + " . (($user_info['time_offset'] + $modSettings['time_offset']) * 3600) . ")) AS year
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
WHERE
t.ID_MEMBER_STARTED = $memID
AND t.ID_FIRST_MSG = m.ID_MSG
GROUP BY year, month
ORDER BY year DESC, month DESC", __FILE__, __LINE__);
// Loop through all results
while ($row = mysql_fetch_assoc($result))
// Add this to the array
$context['posts_per_month'][$row['year']][$row['month']]['topics'] = $row['count'];
// ---- End modification ----


Profile.template.php

Bul
Kod:

// The final section is two columns with the most popular boards by posts and activity (activity = users posts / total posts).

Öncesine Ekle
Kod:

// ---- Begin modification - Posts per month ----
echo '
<tr class="titlebg">
<td colspan="4" width="100%">', $txt['statPanel_activityMonth'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
<td colspan="3" class="windowbg2" width="100%" valign="top">
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="bordercolor">';

// If there's no data, don't show anything
if (empty($context['posts_per_month']))
echo '
<tr>
<td width="100%" valign="top" align="center">', $txt['statPanel_noPosts'], '</td>
</tr>';
// Otherwise, show it! :-)
else
{
echo '

<tr class="catbg3">
<td>', $txt['statPanel_month'], '</td>
<td>', $txt[64], '</td>
<td>', $txt[95], '</td>
</tr>';
$alternating = 'windowbg';

// Loop through each year
foreach ($context['posts_per_month'] as $year => $months)
{
// Loop through each month
foreach ($months as $month => $data)
{
// Output this month
echo '
<tr class="', $alternating, '">
<td>', $txt['months'][$month], ' ', $year, '</td>
<td>', isset($data['topics']) ? $data['topics'] : 0, '</td>
<td>', isset($data['posts']) ? $data['posts'] : 0, '</td>
</tr>';
$alternating = ($alternating == 'windowbg') ? 'windowbg2' : 'windowbg';
}
}
}
echo '
</table>
</td>
</tr>';

// ---- End modification ----


Profile.turkish.php

Bul
Kod:

?>

Öncesine Ekle
Kod:

// ---- Begin modification - Posts per month ----
$txt['statPanel_activityMonth'] = 'Kullanıcının Aylık Mesaj Gönderimi';
$txt['statPanel_month'] = 'Aylar';
// ---- End modification ----

1.1.9 da manuel olarak henüz kurdum ve sorunsuz çalıştı peeh Ayın üyesini belirlemek ve üyelerin-yetkililerin performanslarını görebilmek, takip edebilmek için oldukça güzel kullanışlı bir modifikasyon peeh

örnek için tıklayınız:
         
Navigasyon
Mesajlar