SMFciyiz.Biz | Smf | Tema |  Mod | Seo
Kullanıcı Adı
Şifre
Sürekli bağlı kal
Şifremi Unuttum
Kayıt Ol




Gönderen Konu: MemberColorLink Kurulum  (Okunma sayısı 1510 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.
  • Smf Uzmanı
  • *****
  • Cinsiyet: Bay
  • Toplam İleti: 264
    • MSN Messenger - suat@toksoz.com
    • Yahoo Instant Messenger  - delici97@yahoo.com.tr
    • Profili Görüntüle
    • WWW
    • E-Posta
MemberColorLink Kurulum
« : Nisan 18, 2007, 06:15:27 ÖÖ »
MemberColorLink 'i Tam 62 Aşama   kurulumu yapmadan önce iyice bir düşünün, kuran pek çok kişi hayır görmedi :D

yedeğinizi muhakakk alın sonra demed demeyin

sources/ModSettings.php'Yi Açıyoruz
Bul

Kod:
Kod: [Seç]
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),

Değiştir

Kod:
      
Kod: [Seç]
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl . '?action=featuresettings;sa=MemberColorLinks;sesc=' . $context['session_id'],
),
Bul

Kod:
      
Kod: [Seç]
'layout' => 'ModifyLayoutSettings',
değiştir
Kod:
      
Kod: [Seç]
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',

Bul

Kod:
   
Kod: [Seç]
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}

Altına Ekle

Kod:
Kod: [Seç]
function ModifyMemberColorLinksSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Standard Membercolor?
array('check', 'MemberColorLink'),
'',
//Some Stat Settings
array('check', 'MemberColorLatestMember'),
array('check', 'MemberColorStats'),
array('check', 'MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check', 'MemberColorThreadOwner'),
array('check', 'MemberColorThreadLastPost'),
array('check', 'MemberColorThreadChild'),
'',
//Birthday and Calendar
array('check', 'MemberColorBoardindex'),
array('check', 'MemberColorBirthday'),
'',
//Some Recent Things
array('check', 'MemberColorRecentOwner'),
array('check', 'MemberColorRecentLastPost'),
'',
// PM Colors
array('check', 'MemberColorInbox'),
array('check', 'MemberColorOutbox'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];

prepareDBSettingContext($config_vars);
}

sources/Load.php'Yi Açıyoruz
BUl

Kod:
   
Kod: [Seç]
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
Değiştir

Kod:
      
Kod: [Seç]
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . (!empty($modSettings['MemberColorLink']) ? ( !empty($profile['member_group_color']) || !empty($profile['post_group_color']) ? '<font color="'. ( !empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color'] ) .'">' : '' ) : '' ) . $profile['realName'] . (!empty($modSettings['MemberColorLink']) && (!empty($profile['member_group_color']) || !empty($profile['post_group_color'])) ? '</font>' : '' ).'</a>',
sources/MessageIndex.php'Yi Açıyoruz
Bul

Kod:
   
Kod: [Seç]
// Aren't children wonderful things?
$result = db_query("

Üstüne Ekle

Kod:
   
Kod: [Seç]
//Set some standard Variables for the MemberColorLink
$MemberSetColor = FALSE;
if (!empty($modSettings['MemberColorThreadOwner']) || !empty($modSettings['MemberColorThreadLastPost']) || !empty($modSettings['MemberColorChild']) || (!empty($modSettings['MemberColorWhoIsOnline']) && !empty($settings['display_who_viewing'])))
$MemberColor_ID_MEMBER = array();
Bul

Kod:
            
Kod: [Seç]
$theboards[] = $row_board['ID_BOARD'];
Altına Ekle

Kod:
            
Kod: [Seç]
//The Last Posts of the Children MemberColor.
if (!empty($modSettings['MemberColorThreadChild']) && !empty($row_board['ID_MEMBER'])) {
$MemberColor_ID_MEMBER[$row_board['ID_MEMBER']] = $row_board['ID_MEMBER'];
$MemberSetColor = TRUE;
}
Bul

Kod:
Kod: [Seç]
if (empty($row['showOnline']))
$context['view_num_hidden']++;
}
$context['view_num_guests'] = mysql_num_rows($request) - count($context['view_members']);
mysql_free_result($request);
         
Değiştir

Kod:
         
Kod: [Seç]
if (!empty($modSettings['MemberColorWhoIsOnline'])) {
$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
$MemberSetColor = TRUE;
}

if (empty($row['showOnline']))
$context['view_num_hidden']++;
}
$context['view_num_guests'] = mysql_num_rows($request) - count($context['view_members']);
mysql_free_result($request);

Bul

Kod:
         
Kod: [Seç]
if (!$pre_query)
$topic_ids[] = $row['ID_TOPIC'];

Altına Ekle

Kod:
      
Kod: [Seç]
//I need to collect some IDs for the MemberColor :).
if (!empty($modSettings['MemberColorThreadOwner']) && !empty($row['firstID_MEMBER'])) {
$MemberColor_ID_MEMBER[$row['firstID_MEMBER']] = $row['firstID_MEMBER'];
$MemberSetColor = TRUE;
}
//Oh i need the Last Post ID, too ;)
if (!empty($modSettings['MemberColorThreadLastPost']) && !empty($row['lastID_MEMBER'])) {
$MemberColor_ID_MEMBER[$row['lastID_MEMBER']] = $row['lastID_MEMBER'];
$MemberSetColor = TRUE;
}
Bul

Kod:
         
Kod: [Seç]
determineTopicClass($context['topics'][$row['ID_TOPIC']]);
}
mysql_free_result($result);

Altına Ekle

Kod:
      
Kod: [Seç]
//Now let's replace the orginal link to the Color Link ;)
if ($MemberSetColor && !empty($MemberColor_ID_MEMBER)) {
//Now Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;

//Need the Childs some Colors XD
if (!empty($modSettings['MemberColorThreadChild']))
if(!empty($theboards))
foreach($theboards as $boardid_memcolor) {
//My Childs need a Member Color ;)
$cmemcolid = $context['boards'][$boardid_memcolor]['last_post']['member']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['boards'][$boardid_memcolor]['last_post']['member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
//The Owner or the Last Post of the thread
if (!empty($modSettings['MemberColorThreadOwner']) || $modSettings['MemberColorThreadLastPost'])
foreach($topic_ids as $topicid_memcolor) {
//First the Thread Owner Link
if (!empty($modSettings['MemberColorThreadOwner'])) {
$cmemcolid = $context['topics'][$topicid_memcolor]['first_post']['member']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['topics'][$topicid_memcolor]['first_post']['member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
//Or the Last Post Link ;)
if (!empty($modSettings['MemberColorThreadLastPost'])) {
$cmemcolid = $context['topics'][$topicid_memcolor]['last_post']['member']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['topics'][$topicid_memcolor]['last_post']['member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}
if (!empty($settings['display_who_viewing']) && !empty($modSettings['MemberColorWhoIsOnline']) && !empty($context['view_members'])) {
//I need the new not numeric keys :)
$klist = array_keys($context['view_members']);
foreach($klist as $value) {
$id = $context['view_members'][$value]['id'];
$profile = &$user_profile[$id];
//Let's replace Who is online colors...
$hidden_user = $context['view_members'][$value]['hidden'];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color'])) {
$context['view_members'][$value]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
//Somehow the 'view_members_list' must be the same as before *g*, i don't like the hidden users...
if (!$hidden_user || allowedTo('moderate_forum'))
$context['view_members_list'][$value] = ($hidden_user ? '<i>' : '').'<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>'.($hidden_user ? '</i>' : '');
}
}
}
}


sources/BoardIndex.php'Yi Açıyoruz
Bul

Kod:
         
Kod: [Seç]
'start' => 'msg' . $row_board['new_from'],
'topic' => $row_board['ID_TOPIC']
);

Altına Ekle

Kod:
      
Kod: [Seç]
if (!empty($modSettings['MemberColorBoardindex']) && !empty($row_board['ID_MEMBER'])) {
$MemberColor_ID_MEMBER[$row_board['ID_MEMBER']] = $row_board['ID_MEMBER'];
$MemberColor_board[$isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']] = array(
'bid' => ($isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']),
'cat' => $row_board['ID_CAT']);
}
Bul

Kod:
      
Kod: [Seç]
// Determine a global most recent topic.
if (!empty($row_board['posterTime']) && forum_time(true, $row_board['posterTime']) > $most_recent_topic['timestamp'])
$most_recent_topic = array(
'timestamp' => forum_time(true, $row_board['posterTime']),
'ref' => &$this_category[$isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']]['last_post'],
);
}
mysql_free_result($result_boards);

Altına Ekle

Kod:
   
Kod: [Seç]
//The latest member?
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember']))
$MemberColor_ID_MEMBER[$modSettings['latestMember']] = $modSettings['latestMember'];

// Know set the colors for the last post...
if (!empty($MemberColor_ID_MEMBER)) {
//Now i can Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;

//So the BoardIndex need colored links
if (!empty($modSettings['MemberColorBoardindex']) && !empty($MemberColor_board))
foreach($MemberColor_board as $boardid_memcolor) {
$cmemcolid = $context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['last_post']['member']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['last_post']['member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}


sources/Calendar.php'Yi Açıyoruz
Bul

Kod:
   
Kod: [Seç]
$bday = array();

Altına Ekle

Kod:
   
Kod: [Seç]
//Set some standard Variables for the MemberColorLink
$MemberSetColor = FALSE;
if (!empty($modSettings['MemberColorBirthday'])) {
$MemberColor_ID_MEMBER = array();
}
Bul

Kod:
      
Kod: [Seç]
$bday[$age_year . substr($row['birthdate'], 4)][] = array(
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'age' => $row['birthYear'] > 4 && $row['birthYear'] <= $age_year ? $age_year - $row['birthYear'] : null,
'is_last' => false
);
}
mysql_free_result($result);

Değiştir

Kod:
      
Kod: [Seç]
$bday[$age_year . substr($row['birthdate'], 4)][] = array(
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'age' => $row['birthYear'] > 4 && $row['birthYear'] <= $age_year ? $age_year - $row['birthYear'] : null,
'is_last' => false
);

//I need to collect some IDs for the MemberColor :).
if (!empty($modSettings['MemberColorBirthday']) && !empty($row['ID_MEMBER'])) {
$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
$MemberSetColor = TRUE;
}
}
mysql_free_result($result);

if ($MemberSetColor && !empty($MemberColor_ID_MEMBER)) {
//No compatible Problems ;) (I hope it).
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;

//So i need only the colors... hmmm why schould i not use only the $user_profiles for this... (The Calenderlink is diffrent)
if (!empty($modSettings['MemberColorBirthday']))
if (is_array($bday))
foreach ($bday as $memcalkv => $memcalva)
foreach ($memcalva as $memcalidkv => $memcalid) {
$cmemcolid = $memcalid['id'];
$bday[$memcalkv][$memcalidkv]['color'] = (!empty($user_profile[$cmemcolid]['member_group_color']) ? $user_profile[$cmemcolid]['member_group_color'] : (!empty($user_profile[$cmemcolid]['post_group_color']) ? $user_profile[$cmemcolid]['post_group_color'] : NULL));
}
}


sources/Display.php'Yi Açıyoruz
Bul

Kod:
         
Kod: [Seç]
if (empty($row['showOnline']))
$context['view_num_hidden']++;
}

// The number of guests is equal to the rows minus the ones we actually used ;).
$context['view_num_guests'] = mysql_num_rows($request) - count($context['view_members']);
mysql_free_result($request);

Değiştir

Kod:
            
Kod: [Seç]
if (!empty($modSettings['MemberColorWhoIsOnline'])) {
$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
}

if (empty($row['showOnline']))
$context['view_num_hidden']++;
}

// The number of guests is equal to the rows minus the ones we actually used ;).
$context['view_num_guests'] = mysql_num_rows($request) - count($context['view_members']);
mysql_free_result($request);


Bul

Kod:
      
Kod: [Seç]
// Sort the list.
krsort($context['view_members']);
krsort($context['view_members_list']);
}

Altına Ekle

Kod:
   
Kod: [Seç]
// Somehow i can do the colors for this in two steps... because the split between first part and the messages...
if (!empty($MemberColor_ID_MEMBER)) {
//Now Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);

//Color for the who is online ;)
if (!empty($settings['display_who_viewing']) && !empty($modSettings['MemberColorWhoIsOnline']) && !empty($context['view_members'])) {
//I need the new not numeric keys :)
$klist = array_keys($context['view_members']);
foreach($klist as $value) {
$id = $context['view_members'][$value]['id'];
$profile = &$user_profile[$id];
//Let's replace Who is online colors...
$hidden_user = $context['view_members'][$value]['hidden'];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color'])) {
$context['view_members'][$value]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
//Somehow the 'view_members_list' must be the same as before *g*, i don't like the hidden users...
if (!$hidden_user || allowedTo('moderate_forum'))
$context['view_members_list'][$value] = ($hidden_user ? '<i>' : '').'<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>'.($hidden_user ? '</i>' : '');
}
}
}
}

sources/Recent.php'YiAçıyoruz
Bul

Kod:
   
Kod: [Seç]
$posts = array();
Altına Ekle

Kod:
   
Kod: [Seç]
if (!empty($modSettings['MemberColorRecentLastPost']))
$MemberColor_ID_MEMBER = array();

Bul

Kod:
   
Kod: [Seç]
);
}
mysql_free_result($request);

return $posts;
}

Değiştir

Kod:
      
Kod: [Seç]
);

//The Last Posters id for the MemberColor.
if (!empty($modSettings['MemberColorRecentLastPost']) && !empty($row['ID_MEMBER']))
$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
}
mysql_free_result($request);


// Know set the colors for the Recent posts...
if (!empty($MemberColor_ID_MEMBER)) {
//Now i can Load the Missing globals :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;

//So Let's Color The Recent Posts ;)
if (!empty($modSettings['MemberColorRecentLastPost']))
if (is_array($posts))
foreach($posts as $postkey => $postid_memcolor) {
$cmemcolid = $postid_memcolor['poster']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$posts[$postkey]['poster']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}

return $posts;
}


Bul

Kod:
   
Kod: [Seç]
$counter = $_REQUEST['start'] + 1;
$context['posts'] = array();

Altına Ekle

Kod:
   
Kod: [Seç]
if (!empty($modSettings['MemberColorRecentOwner']) || !empty($modSettings['MemberColorRecentLastPost']))
$MemberColor_ID_MEMBER = array();
Bul

Kod:
      
Kod: [Seç]
if ($ID_MEMBER == $row['ID_FIRST_MEMBER'])
$board_ids['own'][$row['ID_BOARD']][] = $row['ID_MSG'];
$board_ids['any'][$row['ID_BOARD']][] = $row['ID_MSG'];
}
mysql_free_result($request);

Değiştir

Kod:
      
Kod: [Seç]
if ($ID_MEMBER == $row['ID_FIRST_MEMBER'])
$board_ids['own'][$row['ID_BOARD']][] = $row['ID_MSG'];
$board_ids['any'][$row['ID_BOARD']][] = $row['ID_MSG'];

//The Thread Owners id for the MemberColor.
if (!empty($modSettings['MemberColorRecentOwner']) && !empty($row['ID_FIRST_MEMBER']))
$MemberColor_ID_MEMBER[$row['ID_FIRST_MEMBER']] = $row['ID_FIRST_MEMBER'];
//The Last Posters id for the MemberColor.
if (!empty($modSettings['MemberColorRecentLastPost']) && !empty($row['ID_MEMBER']))
$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
}
mysql_free_result($request);

// Know set the colors for the Recent posts...
if (!empty($MemberColor_ID_MEMBER)) {
//Now i can Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;

//So Let's Color The Recent Posts ;)
if (is_array($context['posts']))
foreach($context['posts'] as $postkey => $postid_memcolor) {
if (!empty($modSettings['MemberColorRecentLastPost'])) {
$cmemcolid = $postid_memcolor['poster']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['posts'][$postkey]['poster']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
if (!empty($modSettings['MemberColorRecentOwner'])) {
$cmemcolid = $postid_memcolor['first_poster']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['posts'][$postkey]['first_poster']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}
}
Bul

Kod:
   
Kod: [Seç]
$context['topics'] = array();
$topic_ids = array();

Altına Ekle

Kod:
   
Kod: [Seç]
if (!empty($modSettings['MemberColorRecentOwner']) || !empty($modSettings['MemberColorRecentLastPost']))
$MemberColor_ID_MEMBER = array();

Bul

Kod:
      
Kod: [Seç]
);

determineTopicClass($context['topics'][$row['ID_TOPIC']]);
}
mysql_free_result($request);

if ($is_topics && !empty($modSettings['enableParticipation']) && !empty($topic_ids))

Değiştir

Kod:
      
Kod: [Seç]
);

//The Thread Owners id for the MemberColor.
if (!empty($modSettings['MemberColorRecentOwner']) && !empty($row['ID_FIRST_MEMBER']))
$MemberColor_ID_MEMBER[$row['ID_FIRST_MEMBER']] = $row['ID_FIRST_MEMBER'];
//The Last Posters id for the MemberColor.
if (!empty($modSettings['MemberColorRecentLastPost']) && !empty($row['ID_LAST_MEMBER']))
$MemberColor_ID_MEMBER[$row['ID_LAST_MEMBER']] = $row['ID_LAST_MEMBER'];

determineTopicClass($context['topics'][$row['ID_TOPIC']]);
}
mysql_free_result($request);

// Know set the colors for the Recent posts...
if (!empty($settings['display_who_viewing']) && !empty($MemberColor_ID_MEMBER)) {
//Now i can Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;

//So Let's Color The Recent Posts ;)
if (is_array($context['topics']))
foreach($context['topics'] as $postkey => $postid_memcolor) {
if (!empty($modSettings['MemberColorRecentLastPost'])) {
$cmemcolid = $postid_memcolor['last_post']['member']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['topics'][$postkey]['last_post']['member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
if (!empty($modSettings['MemberColorRecentOwner'])) {
$cmemcolid = $postid_memcolor['first_post']['member']['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['topics'][$postkey]['first_post']['member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}
}

if ($is_topics && !empty($modSettings['enableParticipation']) && !empty($topic_ids))


sources/PersonalMessage.php'Yi Açıyoruz
Bul

Kod:
   
Kod: [Seç]
$context['allow_hide_email'] = !empty($modSettings['allow_hideEmail']);
$context['from_or_to'] = $context['folder'] != 'outbox' ? 'from' : 'to';
$context['get_pmessage'] = 'prepareMessageContext';

$labelQuery = $context['folder'] != 'outbox' ? "
AND FIND_IN_SET('$context[current_label_id]', pmr.labels)" : '';

Altına Ekle

Kod:
   
Kod: [Seç]
//Correct a Modsettings sometime there is a problem, and load variables if i need them ;).
$colormodcheck = 'MemberColorInbox';
if ($context['folder'] == 'outbox') $colormodcheck = 'MemberColorOutbox';
$MemberSetColor = FALSE;
if (empty($modSettings[$colormodcheck]) && !empty($modSettings['MemberColorLink']))
$modSettings['MemberColorLink'] = NULL;
if (!empty($modSettings[$colormodcheck])) {
$MemberColor_ID_MEMBER = array();
$MemberColor_IM_ID = array();
}
Bul

Kod:
      
Kod: [Seç]
}
mysql_free_result($request);

// Load any users....
$posters = array_unique($posters);
if (!empty($posters))
loadMemberData($posters);
Değiştir

Kod:
      
Kod: [Seç]
if (!empty($row['ID_MEMBER_TO']) && !empty($modSettings[$colormodcheck])) {
$MemberSetColor = TRUE;
$posters[] = $row['ID_MEMBER_TO'];
// Hmmm somehow i must know what i should replace... i hope i do it right...
$MemberColor_IM_ID[$row['ID_PM']][empty($row['bcc']) ? 'to' : 'bcc'][] = $row['ID_MEMBER_TO'];
}
elseif (empty($row['ID_MEMBER_TO']) && (!empty($modSettings['MemberColorOutbox']) || !empty($modSettings['MemberColorInbox'])))
$MemberColor_IM_ID[$row['ID_PM']][empty($row['bcc']) ? 'to' : 'bcc'][] = NULL;
}

// Load any users....
$posters = array_unique($posters);
if (!empty($posters))
loadMemberData($posters);

//So i must correct the link ;) i need only the membercontext for this (a little bit faster)
if ($MemberSetColor && !empty($MemberColor_IM_ID)) {
//Now i can Load the Missing global :)
global $user_profile;

//So let's replace the links...
foreach($MemberColor_IM_ID as $pmid => $pmidarray) {
if (!empty($pmidarray['to']))
foreach($pmidarray['to'] as $pm_meber_key => $pm_member_id) {
if(!empty($recipients[$pmid]['to'][$pm_meber_key]) && (!empty($user_profile[$pm_member_id]['member_group_color']) || !empty($user_profile[$pm_member_id]['post_group_color']))) {
$profile = $user_profile[$pm_member_id];
$recipients[$pmid]['to'][$pm_meber_key] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}
if (!empty($pmidarray['bcc']))
foreach($pmidarray['bcc']  as $pm_meber_key => $pm_member_id) {
if(!empty($recipients[$pmid]['bcc'][$pm_meber_key]) && (!empty($user_profile[$pm_member_id]['member_group_color']) || !empty($user_profile[$pm_member_id]['post_group_color']))) {
$profile = $user_profile[$pm_member_id];
$recipients[$pmid]['bcc'][$pm_meber_key] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}
}
}


sources/Stats.php'Yi Açıyoruz Daha Bitmedimi Yaws   

Bul

Kod:
      
Kod: [Seç]
$context['top_posters'][] = array(
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'num_posts' => $row_members['posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);


Altına Ekle

Kod:
      
Kod: [Seç]
if (!empty($modSettings['MemberColorStats']))
$MemberColor_ID_MEMBER[$row_members['ID_MEMBER']] = $row_members['ID_MEMBER'];


Bul

Kod:
      
Kod: [Seç]
$context['top_boards'][] = array(
'id' => $row_board['ID_BOARD'],
'name' => $row_board['name'],
'num_posts' => $row_board['numPosts'],
'href' => $scripturl . '?board=' . $row_board['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_board['ID_BOARD'] . '.0">' . $row_board['name'] . '</a>'
);

Altına Ekle

Kod:
      
Kod: [Seç]
if (!empty($modSettings['MemberColorStats']))
$MemberColor_ID_MEMBER[$row_members['ID_MEMBER_STARTED']] = $row_members['ID_MEMBER_STARTED'];


Bul

Kod:
      
Kod: [Seç]
$context['top_time_online'][] = array(
'id' => $row_members['ID_MEMBER'],
'name' => $row_members['realName'],
'time_online' => $timelogged,
'seconds_online' => $row_members['totalTimeLoggedIn'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

Altına Ekle

Kod:
      
Kod: [Seç]
if (!empty($modSettings['MemberColorStats']))
$MemberColor_ID_MEMBER[$row_members['ID_MEMBER']] = $row_members['ID_MEMBER'];

Bul

Kod:
   
Kod: [Seç]
foreach ($context['top_time_online'] as $i => $member)
$context['top_time_online'][$i]['time_percent'] = round(($member['seconds_online'] * 100) / $max_time_online);

Altına Ekle

Kod:
   
   
Kod: [Seç]
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember']))
$MemberColor_ID_MEMBER[$modSettings['latestMember']] = $modSettings['latestMember'];

//Yeah baby give me some colors =).
if (!empty($MemberColor_ID_MEMBER)) {
//Now Load the Missing global :)
global $user_profile;
loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;
if (!empty($modSettings['MemberColorStats'])) {
// First the Top Posters =)
foreach($context['top_posters'] as $key => $value) {
$cmemcolid = $context['top_posters'][$key]['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['top_posters'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
// First the Top Starter =)
foreach($context['top_starters'] as $key => $value) {
$cmemcolid = $context['top_starters'][$key]['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['top_starters'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
// First the Top Onliner =)
foreach($context['top_time_online'] as $key => $value) {
$cmemcolid = $context['top_time_online'][$key]['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['top_time_online'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {
$profile = &$user_profile[$modSettings['latestMember']];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['latest_member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}


sources/Subs.php'Yi Açıyoruz Haydaaa Bitmeyecek Galıba

Bul

Kod:
   
Kod: [Seç]
// This looks weird, but it's because BoardIndex.php references the variable.
$context['common_stats']['latest_member'] = array(
'id' => $modSettings['latestMember'],
'name' => $modSettings['latestRealName'],
'href' => $scripturl . '?action=profile;u=' . $modSettings['latestMember'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . $modSettings['latestRealName'] . '</a>',
);

Altına Ekle

Kod:
   
Kod: [Seç]
//Latest user need some colors... How could you put this into this file... i hate you... i hope no one read this :P
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {
global $user_profile;
loadMemberData($modSettings['latestMember']);
$profile = &$user_profile[$modSettings['latestMember']];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['common_stats']['latest_member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}


Themes/default/Calendar.template.php'Yi Açıyoruz
Bul

Kod:
Kod: [Seç]
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '' : ', ';
Değiştir

Kod:
                  
Kod: [Seç]
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', (!empty($member['color']) ? '<font color="'.$member['color'].'">' : ''), $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', (!empty($member['color']) ? '</font>' : ''), '</a>', $member['is_last'] ? '' : ', ';
Themes/Kullandığınız Tema/BoardIndex.template.php'Yi Açıyoruz
Bul

Kod:
         
Kod: [Seç]
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
Değiştir

Kod:
            
Kod: [Seç]
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', (!empty($member['color']) ? '<font color="'.$member['color'].'">' : ''), $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', (!empty($member['color']) ? '</font>' : ''), '</a>', $member['is_last'] ? '' : ', ';

languages/Modifications.turkish.php'Yi Açıyoruz
Bul

Kod:
Kod: [Seç]
?>
Üstüne Ekle

Kod:
Kod: [Seç]
$txt['MemberColorLinkHeadline'] = 'Member Color Link - Ayarlar';
$txt['MemberColorLink'] = 'Mesaj listesinde üyeleri renklendir';
$txt['MemberColorThreadOwner'] = 'Anasayfada konu sahibini renklendir';
$txt['MemberColorThreadLastPost'] = 'Mesaj litesinde son mesajcıyı renklendir';
$txt['MemberColorThreadChild'] = 'Alt bölümde son mesajcıyı renklendir';
$txt['MemberColorBoardindex'] = 'Anasayfada son mesajcıyı renklendir';
$txt['MemberColorBirthday'] = 'Doğumgünü listesinde üyeleri renklendir';
$txt['MemberColorRecentOwner'] = 'Son konularda konu sahibini renklendir';
$txt['MemberColorRecentLastPost'] = 'Son konularda son mesajcıyı renklendir';
$txt['MemberColorInbox'] = 'Özel mesajlarda üyeleri renklendir (Gelen kutusu)';
$txt['MemberColorOutbox'] = 'Özel mesajlarda üyeleri renklendir (Giden kutusu)';
$txt['MemberColorLatestMember'] = 'Son üyeyi renklendir';
$txt['MemberColorStats'] = 'İstatistiklerde üyeleri renklendir';
$txt['MemberColorWhoIsOnline'] = 'Kimler online listesinde üyeleri renklendir';

RuHSuZ'dan Alıntıdır
  • Canberk
  • Profesyonel Smfci
  • ******
  • Cinsiyet: Bay
  • Toplam İleti: 511
  • Aşksız olsun, kalbim neşe dolsun.
    • MSN Messenger - bycanberk@gmail.com
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: MemberColorLink Kurulum
« Yanıtla #1 : Mayıs 29, 2007, 05:37:06 ÖÖ »
saol kardeş kurdumda tıklayınca açılmıo :S
Kayıtlı
Blackpanter - ///SaGo///  Kaf KeF  P€Simi$t Hip-Hop
WwW.BiLgİBaNkAsI.OrG
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: MemberColorLink Kurulum
« Yanıtla #2 : Mayıs 29, 2007, 05:47:49 ÖÖ »
Bekle!!!
ModSettings.php'de Bul
Kod: [Seç]
'layout' => 'ModifyLayoutSettings',Degistir:
Kod: [Seç]
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
Kayıtlı

SimplePortal Beta Tester
Download | Demo
  • Canberk
  • Profesyonel Smfci
  • ******
  • Cinsiyet: Bay
  • Toplam İleti: 511
  • Aşksız olsun, kalbim neşe dolsun.
    • MSN Messenger - bycanberk@gmail.com
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: MemberColorLink Kurulum
« Yanıtla #3 : Mayıs 29, 2007, 06:03:09 ÖÖ »
şey kardeş

Kod: [Seç]
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',

krdeş bu kod üsttede verildi :) tıklayınca açmıo ama herşeyi tam yaptım neden böle acaba Temadan kaynaklanıyor olanbilirmi sence :)
Kayıtlı
Blackpanter - ///SaGo///  Kaf KeF  P€Simi$t Hip-Hop
WwW.BiLgİBaNkAsI.OrG
  • Canberk
  • Profesyonel Smfci
  • ******
  • Cinsiyet: Bay
  • Toplam İleti: 511
  • Aşksız olsun, kalbim neşe dolsun.
    • MSN Messenger - bycanberk@gmail.com
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: MemberColorLink Kurulum
« Yanıtla #4 : Mayıs 29, 2007, 06:20:04 ÖÖ »
püh bea cvp gelmemiş :(
Kayıtlı
Blackpanter - ///SaGo///  Kaf KeF  P€Simi$t Hip-Hop
WwW.BiLgİBaNkAsI.OrG
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: MemberColorLink Kurulum
« Yanıtla #5 : Mayıs 29, 2007, 06:21:26 ÖÖ »
Bir Daha Yapman Gerekiyor!!!
Kayıtlı

SimplePortal Beta Tester
Download | Demo
  • Canberk
  • Profesyonel Smfci
  • ******
  • Cinsiyet: Bay
  • Toplam İleti: 511
  • Aşksız olsun, kalbim neşe dolsun.
    • MSN Messenger - bycanberk@gmail.com
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: MemberColorLink Kurulum
« Yanıtla #6 : Mayıs 29, 2007, 06:28:21 ÖÖ »
Bir Daha Yapman Gerekiyor!!!

Çok Saol Kardeş Allah Razı Olsun :)



arklar bu arada ilk kez 62 aşamalık modifikasyon kurudm (manuel) ;D way be ne güzel işmiş ;D
Kayıtlı
Blackpanter - ///SaGo///  Kaf KeF  P€Simi$t Hip-Hop
WwW.BiLgİBaNkAsI.OrG
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: MemberColorLink Kurulum
« Yanıtla #7 : Mayıs 29, 2007, 06:29:04 ÖÖ »
Cesaret Verince Ise Yariyormus Demekki :P
Sende Sagol ;)
Kayıtlı

SimplePortal Beta Tester
Download | Demo
Çevrimdışı  Shéwky
  • Yeni Smfci
  • *
  • Toplam İleti: 4
    • Profili Görüntüle
Ynt: MemberColorLink Kurulum
« Yanıtla #8 : Eylül 05, 2007, 12:46:19 ÖS »
fos cıktı o kadar ugrastık :@
Kayıtlı
 

Desteğinden dolayı seo hosting ve hosting firmalarına teşekkür ederiz.