Bugün Üye Olanlar Modülü
Bu Mod Sitenize Son 24 Saat içinde Üye Olan Kullanıcıları Göstermektedir.
Aşağıda Verilen Kodları Sırasıyla Ftp nizde Gerekli Yerlere Ekleyiniz.
Sources/Bordindex.php
Bul:
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];
Alt Satırına Ekle:
// Bugun uye olanlar by Nicholas-Maeglin
//Düzenleme ||Eğitimci||-->> www.egitimpark.net
$today = @getdate(forum_time(false));
$aasam = mktime(0, 0, 0, $today['mon'], $today['mday'], $today['year']) - ($modSettings['time_offset'] * 3600);
$s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
$time_fmt = '%I:%M' . $s . ' %p';
else
$time_fmt = '%H:%M' . $s;
$result = db_query("
SELECT
mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP, mg.groupName
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.dateRegistered >= $aasam", __FILE__, __LINE__);
$context['users_reg_today'] = array();
$context['list_users_reg_today'] = array();
while ($row = mysql_fetch_assoc($result))
{
$userday = strftime('%d', forum_time(true));
$title = ' title="' . $row['realName'] . '"';
// Renk Kodları
if ( empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . ' style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . '>' . $row['realName'] . '</a>';
$is_buddyy = in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddyy)
{
$link = '<b>' . $link . '</b>';
}
$context['users_reg_today'][$row['lastLogin'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddyy,
);
$context['list_users_reg_today'][$row['lastLogin'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
}
mysql_free_result($quer);
krsort($context['users_reg_today']);
krsort($context['list_users_reg_today']);
$context['num_users_reg_today'] = count($context['users_reg_today']);
// Bugun uye olanlar by Nicholas-Maeglin bitiÅŸi
default/BoardIndex.template.php
Bul:
echo '
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
Alt Satırına Ekle:
// Bugun uye olanlar by Nicholas-Maeglin
//Düzenleme ||Eğitimci||www.egitimpark.net
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['members_registered_today_title'] , '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';
echo '
<div class="smalltext">';
echo $txt['uot_total'], ': <b>', $context['num_users_reg_today'], '</b>';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if ($context['user']['is_logged'])
{
echo '<br />', implode(', ', $context['list_users_reg_today']);
}
echo '
</div>
</td>
</tr>';
// Bugun uye olanlar by Nicholas-Maeglin bitiÅŸi
languages/Modifications.turkish.php
Bul:
?>
Üst Satırına Ekle:
$txt['members_registered_today_title'] = 'Bugün Üye Olanlar';