News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Kullanıcı şu anda nerede?

Started by canawar, December 17, 2005, 10:52:42 AM

Previous topic - Next topic

canawar

ben kullanıcının profiline girince o anda sitede nerede olduğunu görmek istiyorum..
Bunu nasıl yapabilirim..??

ASi ve MAVi

admin panelinden kim neredeyi aktif et anasayfada şu kadar ziyaretçi şu kadar üye yazan yere tıkla görürsün kardeş :)

canawar

çok saol..
bu smf deryasi çok büyük daha ne özellikleri çikacak bilmediimiz hadi hayirlisi

perkullekul

arkadaşlar bu "kim nerede" seçeneği admin panelinde nerede? bulamıyorum bir türlü.

!!kaos!!

admin > Forum Seçenekleri > Düzen ve seçenekler > Kimler Online'ı etkinleştir

My Mod | My Site | SMF Kurulumu Resimli Anlatım | My Facebook
----------------------------------------------------------------------
SimpleDestek.Com Satışa Çıkmıştır Almak İsteyenler Benimle İletişime Geçsin..

!!kaos!!

Eylemi Profilde Görmek İsteyen Arkadaşlar İçin..

Profile.php`de

Bul:   // They haven't even been registered for a full day!?

Öncesine Ekle:
//-Profile User Action MOD- Start
if (allowedTo('who_view'))
{
// Look for people online, provided they don't mind if you see they are.
$request = db_query("
SELECT (UNIX_TIMESTAMP(lo.logTime) - UNIX_TIMESTAMP() + " . time() . ") AS logTime, lo.url,
IFNULL(mem.showOnline, 1) AS showOnline, lo.session
FROM {$db_prefix}log_online AS lo LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
WHERE lo.ID_MEMBER = $memID " . (!allowedTo('moderate_forum') && $memID != $context['user']['id'] ? " AND IFNULL(mem.showOnline, 1) = 1" : '') . "
LIMIT 1", __FILE__, __LINE__);
$url_data = '';
while ($row = mysql_fetch_assoc($request))
{
$actions = @unserialize($row['url']);
if ($actions === false)
continue;

$context['user_action'] = array(
'showOnline' => $row['showOnline'],
'time' => strtr(timeformat($row['logTime']), array($txt['smf10'] => '', $txt['smf10b'] => '')),
'timestamp' => forum_time(true, $row['logTime']),
'is_hidden' => $row['showOnline'] == 0,
'action' => ''
);
$url_data[0] = array($row['url'],$memID);
}

if (!empty($url_data))
{
require_once($sourcedir.'/Who.php');
      list($context['user_action']['action']) = determineActions($url_data);
}
}
  //-Profile User Action MOD- End


Profile.template.php`de

Bul:<tr>
               <td><b>', $txt['lastLoggedIn'], ': </b></td>
               <td>', $context['member']['last_login'], '</td>
            </tr>';


Sonrasına Ekle:

  //-Profile User Action MOD- Start
   if (!empty($context['user_action']))
      echo    '
            <tr>
               <td><b>', $txt['who_action'], ': </b></td>
               <td><span', $context['user_action']['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $context['user_action']['action'],' <span style="white-space: nowrap">(', $context['user_action']['time'], ')</span></span></td>
            </tr>';
  //-Profile User Action MOD- End

My Mod | My Site | SMF Kurulumu Resimli Anlatım | My Facebook
----------------------------------------------------------------------
SimpleDestek.Com Satışa Çıkmıştır Almak İsteyenler Benimle İletişime Geçsin..

Advertisement: