Online üyenin Profilinde Yaptığı eylem

Son güncelleme: 19.07.2010 15:57
  • noimage




    source/Profile.php yi aç bul
    // They haven't even been registered for a full day!?
    öncesine yani üzerine ekle

    /*** 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

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


    sonrasına yani altına ekle



    /***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;"' : '[/swf2][swf3]>', $context['user_action']['action'],' <span style="white-space: nowrap">(', $context['user_action']['time'], ')</span></span></td>
    </tr>';
    /***Profile Who END***/
#12.05.2008 05:22 0 0 0
  • olmuyorrr
#02.04.2010 02:42 0 0 0
  • o dediklerini nereden bulacağız :D
#14.07.2010 17:32 0 0 0
  • ftp'den temanın içine gir bulursun.
#19.07.2010 15:57 0 0 0