Quote
Mod: | Most Popular Topic Today ( " Günün (Son 24 Saatin) En Popüler Konusu " ) |
Yazan: | Grek_Kamchatka (http://www.simplemachines.org/community/index.php?action=profile;u=6867) |
Çeviren: | Kapadokyalı (http://www.simplemachines.org/community/index.php?action=profile;u=33939) |
Açıklama: | Son mesajların bulunduğu bölüme " Günün (son 24 saatin) En Popüler Konusu " başlığıyla bir bölüm açarak, burada belirtilen kritere göre en popüler konuya yer verilmektedir. |
URL: | http://custom.simplemachines.org/mods/index.php?mod=937 |
Uyumluluk: | 1.1.3 |
Download: | Türkçe dil destekli orjinal modu buradan indirin. (http://custom.simplemachines.org/mods/index.php?action=download;mod=937;id=40318)
|
Modun İşlevi;Açıklama kısmında belirtilmiştir.
Ekran Görüntüsü;(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg223.imageshack.us%2Fimg223%2F1884%2F46365109ou0.th.gif&hash=370dc19ea6a8ba2000f480605a70e2c8e2b114f5) (http://img223.imageshack.us/my.php?image=46365109ou0.gif)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg223.imageshack.us%2Fimg223%2F9232%2F54259678kk2.th.gif&hash=654d9d8520e4bbb283add0edd970af5553f59189) (http://img223.imageshack.us/my.php?image=54259678kk2.gif)
Manuel Kurulum;
1. Source/BoardIndex.php'deBul;
$context['page_title'] = $txt[18];
Sonrasına ekle;
//*********************************** Most popular topic today.***************************//
$request = db_query("
SELECT ID_GROUP
FROM {$db_prefix}members
WHERE ID_MEMBER = '$ID_MEMBER'
",__FILE__, __LINE__);
list ($id_group) = mysql_fetch_row($request);
mysql_free_result($request);
if ($user_info['is_guest']) ($id_group='-1');
$result = db_query("
SELECT COUNT(mes.ID_TOPIC) as t, mes.ID_TOPIC, mes.subject, boa.memberGroups
FROM {$db_prefix}messages AS mes
LEFT JOIN {$db_prefix}boards as boa ON (mes.ID_BOARD=boa.ID_BOARD)
WHERE ". 'posterTime <='. time() ."
AND ". 'posterTime >= '. (time()-86400) ."
GROUP BY ID_TOPIC
ORDER BY t DESC
LIMIT 1
", __FILE__, __LINE__);
$context['most_popular_topic_today'] = array();
while ($row = mysql_fetch_assoc($result))
{
$context['most_popular_topic_today'] = array(
'coll' => $row['t'],
'id_topic' => $row['ID_TOPIC'],
'subject' => $row['subject'],
'memberGroups' => $row['memberGroups']);
}
mysql_free_result($result);
if (isset($context['most_popular_topic_today']['memberGroups']))
if ( strpos($context['most_popular_topic_today']['memberGroups'],$id_group)===false)
{
$context['topic_mod']='0';
}
else
{
$context['topic_mod']='1';
}
if (isset($context['most_popular_topic_today']['coll'])=='')
{
$context['topic_mod']='2';
}
if ($id_group == '1') ($context['topic_mod']=1);
//******************************************************************************************//
2. Themes/default (veya sizin temanız)/BoardIndex.template.php'deBul;
// This is the "Recent Posts" bar.
Öncesine Ekle;
//**********************************Most Resent Topic per Day***************************************//
echo'
<tr>
<td class="titlebg" colspan="2">', $txt['most_popular_topic_today'], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';
if ($context['topic_mod']=='0')
echo $txt['cant_read_mpt'];
elseif (!isset($context['most_popular_topic_today']['coll']) || ($context['topic_mod'])=='2')
echo $txt['most_pop_top_abs'];
else
echo '
<b><a href="', $scripturl, '?topic=', $context['most_popular_topic_today']['id_topic'],'">', $context['most_popular_topic_today']['subject'], '</a></b>
<div class="smalltext">
', $txt['most_pop_top'], ' "', $context['most_popular_topic_today']['coll'], '" <br />
</div>';
//**************************************************************************************************//
3. Themes/default/languages/index.turkish.php'deBul;
?>
Öncesine ekle;
// Turkish translation by Kapadokyali
$txt['most_popular_topic_today'] = 'Günün (son 24 saatin) en popüler konusu :';
$txt['most_pop_top'] = 'Gün başına yazılan cevap sayısı:';
$txt['most_pop_top_abs'] = 'Üzgünüz, bugün cevap yazılmış hiç konu yok.';
$txt['cant_read_mpt'] = 'Üzgünüz, kilitlendiği için bu konuyu okuyamazsınız.';
Mod yazarı henüz güncelleme yapmamış ancak, 1.1.4 üzerinde kendi forumumda kullanmaktayım ve sorunsuz olarak çalışmaktadır.
Saygılar...
Tesekkurler Kapadokyali :)
Su hata düzelmicek sanirim :D
teşekkürler kurdum sorunsuz çalışıyor
bakmak isteyen olursa kopuq.com/forum
Quote from: cakal93 on September 28, 2007, 04:36:42 PM
Tesekkurler Kapadokyali :)
Su hata düzelmicek sanirim :D
Hata dediğini bir çok yerde belirtmişsin acaba nedir hata ?
Kapadokyalı eline sağlık
Ilk mesajdaki tablo hatasi.
harika oldu emeğine sağlık kapadokyalı
eline sağlık kapodokyalı;bir fikrim geldi son 24 saatin 5 aktif üyesi?nasıl olur? veya olurmu?
teşekürler
1.1.7 de çalışıyor mu acaba? kurdum çıkmadı..
kurdum harika oldu kardeş
emegine saglık arkadaşım
istediğimiz konuyu linkini veya id sini vermek suretiyle burada gösterebilir miyiz?
ayrıca yukarıda "verilen kritere göre" denilmiş.
bu kriterleri kendimiz belirleyebilir miyiz? mesela en popüler konusu değil de benim linkini verdiğim bi konu orada çıkabilir mi?
Sadece paketlerden Most_Popular_Topic_Today_2.0_Turkish.zip bunu yüklemek yeterli mi ? 1.1.10 için.
Yeterli ama kendi temana manuel uygulamalısın.
Quote from: ekseri on August 14, 2009, 08:23:51 AM
ayrıca yukarıda "verilen kritere göre" denilmiş.
bu kriterleri kendimiz belirleyebilir miyiz? mesela en popüler konusu değil de benim linkini verdiğim bi konu orada çıkabilir mi?
güncelleme.
bunu index template php ye nasıl yapa bilirim ?