../Sources/Display.php
Bul:
Kod: [Seç]
fatal_lang_error('no_board', false);
De?istir:
Kod: [Seç]
fatal_lang_error('no_board', false);
if(!empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'log') {
DisplayLog();
}
Bul:
Kod: [Seç]
?>
De?istir:
Kod: [Seç]
function DisplayLog()
{
global $context, $scripturl, $topic, $smcFunc;
$request = $smcFunc['db_query']('', "
SELECT
lt.id_member, lt.id_topic, mem.real_name
FROM {db_prefix}log_topics AS lt
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = lt.id_member)
WHERE id_topic = {int:topic}",
array(
'topic' => $topic,
)
);
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// Build the array.
$context['logs'][] = array(
'member' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
),
);
}
$smcFunc['db_free_result']($request);
$context['sub_template'] = 'displaylog';
}
?>
../Themes/default/Display.template.php
Bul:
Kod: [Seç]
?>
De?istir:
Kod: [Seç]
function template_displaylog()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 1ex;" align="center" width="90%">
<tr class="titlebg">
<td><center>Bu Konuyu Okuyan Kisilerin ?simleri Gösterilmektedir</center></td>
</tr><tr class="windowbg"><td>';
foreach($context['logs'] as $log) {
echo '
', $log['member']['link'], ' , ';
}
echo '
</td></tr></table>';
}
?>
Bul:
Kod: [Seç]
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>
De?istir:
Kod: [Seç]
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>';
echo '
<a href="' . $scripturl . '?topic='. $context['current_topic'] . '.0;sa=log">Konuyu Okumus Olanlar</a>';
echo '
yazdir butonunun hemen arkasina eklemek icin
Kod: [Seç]
'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),sonrasina eklesin
Kod: [Seç]
'log' => array('text' => 'log', 'image' => 'log.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?topic='. $context['current_topic'] . '.0;sa=log'),
log.gif atiniz
index.turkish.php dosyasinda
Bul:
$txt['print'] = 'Yazdir';
De?istir:
$txt['print'] = 'Yazdir';
$txt['log'] = 'Kim Bakmis?';