Gönderen Konu: Profili Ziyaret Edenler  (Okunma sayısı 1403 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
Profili Ziyaret Edenler
« : Ocak 31, 2009, 23:02:25 ÖS »
Manuel Kurulum

Languages/Modifications.turkish.php dosyasında

Dosyanın sonuna ekle:
 
Kod: [Seç]
$txt['latest_visitors'] = 'Son Ziyaretçiler';
$txt['no_visitors'] = 'Ziyaret edilmemiş.';

Sources/Load.php dosyasında

Bul:

Kod: [Seç]
pg.stars, mg.stars) AS stars, mem.passwordSalt
Değiştir:

Kod: [Seç]
pg.stars, mg.stars) AS stars, mem.passwordSalt, mem.visitors
Bul:       

Kod: [Seç]
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
Değiştir:
      
Kod: [Seç]
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
'visitors' => &$profile['visitors'],

Sources/Profile.php dosyasında

Bul:          

   
Kod: [Seç]
'explanation' => $ban_explanation,
);
}
mysql_free_result($request);
}

Sonrasına ekle:
 
   
Kod: [Seç]
//Prepare data variables.
$visitor_profile = array();
$visitor = explode(",", $context['member']['visitors']);
$count = 4;

while($count >= 0) {
if (!empty($visitor[$count]) && $visitor[$count] != '0') {
 
//Get visitors' profile info.
$request = db_query("
SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename
FROM {$db_prefix}members as m
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER)
WHERE m.ID_MEMBER = $visitor[$count]", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
//Just an avatar check.
if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size']))
{
$sizes = url_image_size($row['avatar']);
 
// Does your avatar still fit the maximum size?
if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external']))))
{
// Fix it permanently!
$row['avatar'] = '';
updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\''));
}
}
 
//Build up the array.
$visitor_profile[] = array (
'id' => $row['ID_MEMBER'],
'username' => $row['realName'],
'posts' => $row['posts'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
),
);
}
mysql_free_result($request);
}
$count = $count - 1;
}

Bul:    

Kod: [Seç]
global $context, $memberContext, $txt, $modSettings, $user_info, $user_profile, $sourcedir, $db_prefix, $scripturl;
Değiştir:

   
Kod: [Seç]
global $context, $memberContext, $txt, $modSettings, $user_info, $user_profile, $sourcedir, $db_prefix, $scripturl, $visitor_profile;
Bul:    

Kod: [Seç]
// Set the page title if it's not already set...
if (!isset($context['page_title']))
$context['page_title'] = $txt[79] . ' - ' . $txt[$_REQUEST['sa']];

Sonrasına ekle:
 
   
Kod: [Seç]
//Guests can't effect...
if(!$user_info['is_guest']) {
 
//Make a new array for updating.
$visitor = explode(",", $context['member']['visitors']);
 
$count = 0;

//If user visited before delete the old one.
//If visitors field blank, fill them with zero.
while ($count < 4) {
if (empty($visitor[$count]) || $visitor[$count] == $ID_MEMBER)
$visitor[$count] = '0';
$count = $count + 1;
}
 
//Do not change if it's same.
if (empty($visitor[4]))
$visitor[4] = '0';
 
$count = 0;
 
//If current user is the last or the owner, no change.
  //Visitors go one back, delete last one.
while ($count < 4) {
if ($visitor[4] != $ID_MEMBER && $memID != $ID_MEMBER)
$visitor[$count] = $visitor[$count + 1];
$count = $count + 1;
}
 
//Last one is id of the member.
if ($visitor[4] != $ID_MEMBER && $memID != $ID_MEMBER)
$visitor[4] = $ID_MEMBER;
 
//Stick them.
$visitors = implode(",", $visitor);
 
//Update visitors field.
updateMemberData($memID, array('visitors' => '\'' . $visitors . '\''));
}
Bul:    

      
Kod: [Seç]
'url' => !isset($user_profile[$memID]['websiteUrl']) ? '' : $user_profile[$memID]['websiteUrl'],
),

Değiştir:

      
Kod: [Seç]
'url' => !isset($user_profile[$memID]['websiteUrl']) ? '' : $user_profile[$memID]['websiteUrl'],
),
'visitors' => $user_profile[$memID]['visitors'],

Kullandığın Tema/Profile.template.php dosyasında

Bul:    

Kod: [Seç]
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>';

Değiştir:
   
Kod: [Seç]
echo '
<td class="windowbg" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td colspan="2" align="center" valign="top"><br />
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>
<tr class="titlebg">
<td height="26" colspan="2">', $txt['latest_visitors'], '</td>
</tr>';
if(!empty($visitor_profile)) {
foreach ($visitor_profile as $visitor)
echo '<tr>
            <td width="15%" class="windowbg" align="center" style="padding:5px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="50" />' : '', '</td>
<td class="windowbg" style="padding:5px;"><b>', $visitor['username'], '</b><br /><span class="smalltext">Posts:', $visitor['posts'], '<br /><a href="', $scripturl, '?action=profile;u=', $visitor['id'], '">Profile</a></span></td>
</tr>';
}
else {
echo '<tr>
<td colspan="2" align="center"><br />', $txt['no_visitors'], '</td>
</tr>';
}
echo'
</table>
</td>
</tr>';

Bul:

Kod: [Seç]
function template_summary()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;

Değiştir:

Kod: [Seç]
function template_summary()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt, $visitor_profile;

Bul:

Kod: [Seç]
<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor">
Değiştir:

Kod: [Seç]
<table border="0" cellpadding="0" cellspacing="1" align="center" class="bordercolor">
database.php ise forum dizinine atılıp bir kez çalıştırılacak. kolay gelsin ;)
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-Profili Ziyaret Edenler
« Yanıtla #1 : Ocak 31, 2009, 23:04:06 ÖS »
paket kurulum icin buyurun URL: http://custom.simplemachines.org/mods/index.php?mod=1150 burdan indirin

Çevrimdışı Tilsimli

  • PortalTema
  • Moderatör
  • *
  • İleti: 416
  • Puan: 18
  • Cinsiyet: Bay
    • PortalTema.Com Mkportal Tema Tasarım
-Profili Ziyaret Edenler
« Yanıtla #2 : Ocak 31, 2009, 23:19:11 ÖS »
Ah be isa kardeşim bütün yazıların cümle hatalarıyla dolu bu hataların imza na bile yansımış..
Mkportal Temaları

http://www.portaltema.com


Çevrimdışı jarni

  • Moderatör
  • *
  • İleti: 864
  • Puan: 122
  • Cinsiyet: Bay
  • Trash Metal
-Profili Ziyaret Edenler
« Yanıtla #3 : Şubat 01, 2009, 00:48:28 ÖÖ »
:D :D biz alıştık hocam sende alış

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-Profili Ziyaret Edenler
« Yanıtla #4 : Şubat 01, 2009, 01:30:10 ÖÖ »
cahilim okuma yazmanda yok

Çevrimdışı romeoo

  • İleti: 508
  • Puan: 31
    • A'dan Z'ye Photoshop Dersleri ve Eklentileri
-Profili Ziyaret Edenler
« Yanıtla #5 : Şubat 01, 2009, 01:34:26 ÖÖ »
Tılsımlı kardeş; eleştiride bulunduğun ya da akıl vermeye çalıştığın insan burada senden daha tecrübeli ve kıdemli - Bu bir. Diyelim ki yazım hatası yaptı, burada bu gibi hatalar yığınla mevcut. Neden özellikle "isabey" arkadaşa bu şekil bir yakarışta bulunuyorsun - Bu iki. Hadi bunları boşver, adam burada faydalı bir konuyu paylaşmış. Önce bi teşekkür et daha sonra varsa bi eleştirin dile getir - Buda üç.
PROFESYONEL LOGO YAPILIR...

Çevrimdışı Tilsimli

  • PortalTema
  • Moderatör
  • *
  • İleti: 416
  • Puan: 18
  • Cinsiyet: Bay
    • PortalTema.Com Mkportal Tema Tasarım
-Profili Ziyaret Edenler
« Yanıtla #6 : Şubat 01, 2009, 01:52:34 ÖÖ »
İsa beyle benim bu sitede üye değilken bile dostluğumuz var o beni tanır bilir bu eleştiri olumlu olmasını düşüncesiyle biraz daha dikkatli yazmasını isdedim kötü maksat yoktur
Mkportal Temaları

http://www.portaltema.com


Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-Profili Ziyaret Edenler
« Yanıtla #7 : Şubat 01, 2009, 15:03:03 ÖS »
DOSTLARA SLM OLSUN :!1

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
2 Yanıt
1815 Gösterim
Son İleti Nisan 19, 2007, 18:42:11 ÖS
Gönderen: bas_kan
0 Yanıt
2454 Gösterim
Son İleti Nisan 27, 2007, 23:37:09 ÖS
Gönderen: GozyaSi
1 Yanıt
1244 Gösterim
Son İleti Ekim 10, 2008, 22:01:55 ÖS
Gönderen: arap2000
6 Yanıt
1431 Gösterim
Son İleti Aralık 26, 2008, 23:48:40 ÖS
Gönderen: isabey
2 Yanıt
847 Gösterim
Son İleti Haziran 09, 2009, 00:15:24 ÖÖ
Gönderen: Tilsimli