SMF Online üyenin Profilinde Yaptığı eylem

Asi Ruh

Kayıtlı Üye
Online üyenin Profilinde Yaptığı eylem


profiliz9.jpg





source/Profile.php yi aç bul

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

öncesine yani üzerine ekle

PHP:
/*** Profile Who 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
            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 = $row['url'];
        }
        if (!empty($url_data))
        {
            require_once($sourcedir.'/Who.php');
            $context['user_action']['action'] = determineActions($url_data);
        }
    }
    /***Profile Who END***/

Profile.template.php yi aç bul

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

sonrasına yani altına ekle

PHP:
/***Profile Who 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 Who END***/
 
bayigram takipçi satın al instagram beğeni satın al instagram takipçi satın al tiktok takipçi satın al Buy Followers bugün haber
vozol
Geri
Üst