O şimdi Adana'da...
Çevrimdışı - Emektar
İleti: 1184
Teşekkür Sayısı: 100
Çevrimdışı
Cinsiyet: 
|
 |
« : 05 Haziran 2008, 19:48:44 » |
|
Mod Bilgileri
Name:Profile User Action Created By:Rudolf Type:Profile First Created:13 Kasım 2006, 15:26:41 Last Modified:31 Temmuz 2007, 08:31:15 Latest Version:1.1 Compatible With:1.0.7, 1.0.8, 1.0.9, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 2.0 Beta 3.x
Açıklama: Mod güncellenmemiş.Mod sayfasında uyumluluk SMF 1.1.3'e kadar gösteriliyor,ancak mod sayfasında Manual Install Instructions for SMF seçeneği altında bakıldığında SMF 1.1.4, 1.1.5, 2.0 Beta 3.x versiyonları için de aynı manuel kurulum gösteriliyor. Dosyalarınızı yedekleyerek uygulayın.SMF 1.1.4, 1.1.5, 2.0 Beta 3.x versiyonları olumlu sonuç alırsanız buraya yazınız.
$sourcedir/Profile.php Dosyasında Bul:
// They haven't even been registered for a full day!? Sonrasına 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 $themedir/Profile.template.php Dosyasında Bul:
<tr> <td><b>', $txt['lastLoggedIn'], ': </b></td> <td>', $context['member']['last_login'], '</td> </tr>'; Öncesine 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
|