0 Üye ve 1 Ziyaretçi konuyu incelemekte.
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];
// Bugun uye olanlar by Nicholas-Maeglin $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']);
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', ' </span> </td> </tr>'; }
// Bugun uye olanlar by Nicholas-Maeglin 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 ( empty($context['users_reg_today']) && $context['user']['is_guest']) echo '<br />', implode(', ', $context['list_users_reg_today']); echo ' <br />', $context['show_stats'] && $settings['show_sp1_info'] ? ' <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', ' </div> </td> </tr>';
<?php// Version: 1.1; Modifications
$txt['members_registered_today_title'] = 'Bugün Üye Olanlar';$txt['message_has_got'] = 'mesaja sahip';
görüntü yokmu ya:S
demo : smfgrupdemo 2 : popmundotr.com sonucta benim sitem
bende seni seviyom evcil çocuk