pluing yönetim kısmından [COLOR=#001F30][FONT=tahoma]Ürün : Today's Top Thread Starter(s).Hemen altında [/FONT][/COLOR][FONT=tahoma, verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif][COLOR=#001f30]Todays Top Thread Starter(s) var.düzenle de.[/COLOR][/FONT]

[FONT=tahoma, verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif][COLOR=#001f30](BUNU YAPMADAN ÖNCE O KISMI KOPYALA NOT DEFTERİNE YAPIŞTIR)[/COLOR][/FONT]

[FONT=tahoma, verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif][COLOR=#001f30]bununla değiştir o kısmı[/COLOR][/FONT]
[FONT=tahoma, verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif][COLOR=#001f30]
[/COLOR][/FONT]
[FONT=tahoma, verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif][COLOR=#001f30]if ($show['todays_top_thread_starter'])
{
$todays_top_thread_starters = '';
$limit = $vbulletin->options['todays_top_thread_starters_limit'];
$exclude_usergroups = $vbulletin->options['todays_top_thread_starters_usergroups'];
$exclude_users = $vbulletin->options['todays_top_thread_starters_users'];


if ($vbulletin->options['24_hours_top_thread_starters'])
{
$top_thread_starters_title = $vbphrase['24_hours_top_thread_starters'];
$dateline = TIMENOW - 86400;
}
else
{
$top_thread_starters_title = $vbphrase['todays_top_thread_starters'];
$currenttime = date('YmdHis',TIMENOW - intval($vbulletin->options['hourdiff']));
$dateline = TIMENOW - (substr($currenttime, 8, 2) * 3600 + substr($currenttime, 10, 2) * 60 + substr($currenttime, 12, 2));
}
unset ($todays_top_thread_starters);


$top_thread_starters = $vbulletin->db->query_read_slave("
SELECT COUNT(thread.dateline) AS threadscount, thread.postuserid, thread.dateline,
user.userid, user.usergroupid, user.displaygroupid, user.username,
NOT ISNULL(customprofilepic.userid) AS haspic, customprofilepic.width, customprofilepic.height" .
iif($vbulletin->options['todays_top_thread_starters_photos'] > 0, ', user.avatarrevision, avatar.avatarpath,
NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,
customavatar.width AS avwidth, customavatar.height AS avheight') . "
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (thread.postuserid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "customprofilepic AS customprofilepic ON (customprofilepic.userid = user.userid)
" . iif ($vbulletin->options['todays_top_thread_starters_photos'] > 0, "
LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON (customavatar.userid = user.userid) ") . "
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON (forum.forumid = thread.forumid)
" . iif(!empty($exclude_forums), "AND thread.forumid NOT IN ($exclude_forums)") . "
" . iif(!empty($exclude_usergroups), "AND user.usergroupid NOT IN ($exclude_usergroups)") . "
" . iif(!empty($exclude_users), "AND user.userid NOT IN ($exclude_users)") . "
WHERE thread.dateline > $dateline AND thread.visible='1' AND (forum.options & 4096) AND user.userid > '0'
GROUP BY thread.postuserid
ORDER BY threadscount DESC
LIMIT 0, $limit
");


function HasannimageResizer($width, $height, $target) {
if ($width > $height) {
$percentage = ($target / $width);
} else {
$percentage = ($target / $height);
}
$width = round($width * $percentage);
$height = round($height * $percentage);
return "width=\"$width\" height=\"$height\"";
}




while($top_thread_starter = $db->fetch_array($top_thread_starters)){


$top_thread_starter[musername] = fetch_musername($top_thread_starter);
$show['comma_leader'] = ($todays_top_thread_starters != '');




if ($vbulletin->options['todays_top_thread_starters_photos'] == '1'){
$show['photo'] = true;
$altphrase =& $vbphrase['x_has_no_picture'];
$imagepath = $stylevar['imgdir_misc'] . '/unknown.gif';
$height = 60;
$width = 60;


if ($top_thread_starter['avatarpath'])
{
$show['photo'] = true;
$altphrase =& $vbphrase['xs_avatar'];
$imagepath =& $top_thread_starter['avatarpath'];
} else if ($top_thread_starter['hascustomavatar']){
$show['photo'] = true;
$altphrase =& $vbphrase['xs_avatar'];


if ($vbulletin->options['usefileavatar'])
{


$imagepath = $vbulletin->options['avatarurl'] . "/avatar{$top_thread_starter[userid]}_{$top_thread_starter['avatarrevision']}.gif";
}
else
{
$imagepath = $vbulletin->options['bburl'] . "/image.php?u=$top_thread_starter[userid]&dateline=$top_thread_starter[avdateline]";
}
$height =& $top_thread_starter['avheight'];
$width =& $top_thread_starter['avwidth'];
} else if ($top_thread_starter['haspic']) {
$show['photo'] = true;
$altphrase =& $vbphrase['xs_picture'];
$height =& $top_thread_starter['height'];
$width =& $top_thread_starter['width'];


if ($vbulletin->options['usefileavatar'])
{


$imagepath = $vbulletin->options['profilepicurl'] . '/profilepic' . $top_thread_starter['userid'] . '_' . $top_thread_starter['profilepicrevision'] . '.gif';
} else {


$imagepath = $vbulletin->options['bburl'] . '/image.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $top_thread_starter['userid'] . "&dateline=$top_thread_starter[profilepicdateline]&type=profile";


}}} else { $show['photo'] = false; }


if ($height AND $width) {
$photosize = HasannimageResizer($width, $height, $vbulletin->options['todays_top_thread_starters_photosize']);


} else { $heightwidth = ''; }


$shortusername = $top_thread_starter[musername];


if ($vbulletin->options['todays_top_thread_starters_usernamechars'] != 0 AND strlen($shortusername) > $vbulletin->options['todays_top_thread_starters_usernamechars']) {


$shortusername = substr($shortusername,0,$$vbulletin->options['todays_top_thread_starters_usernamechars']);


$shortusername = $shortusername."…";


}


exec_switch_bg(2);


eval('$todays_top_thread_starters .= "' . fetch_template('todays_top_thread_starter_bit') . '";');


}


switch ($vbulletin->options['todays_top_thread_starters_location'])
{
case 1: eval ('$template_hook[forumhome_wgo_pos1] .= "' . fetch_template ('todays_top_thread_starter') . '";'); break;
case 2: eval ('$template_hook[forumhome_wgo_pos2] .= "' . fetch_template ('todays_top_thread_starter') . '";'); break;
case 3: eval ('$template_hook[forumhome_wgo_pos3] .= "' . fetch_template ('todays_top_thread_starter') . '";'); break;
case 4: eval ('$template_hook[forumhome_wgo_pos4] .= "' . fetch_template ('todays_top_thread_starter') . '";'); break;
case 5: eval ('$template_hook[forumhome_wgo_pos5] .= "' . fetch_template ('todays_top_thread_starter') . '";'); break;
}


$db->free_result($top_thread_starters);


}
[/COLOR][/FONT]