News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Thank-O-Matic 2

Started by Antes, November 06, 2009, 09:21:01 AM

Previous topic - Next topic

Gökhan | Brestgerfich

Paket olarak kurulacak birşey yok. Mod siteden kendinize uygun pakedi indirip sitenize yükleyin daha sonra konunun ilk mesajında verilen dil değişikliklerini yapın :) ( Değişiklikler 2.0 RC2'ye uyumlu ;) )

iPhoneDestek

tesekkür listesini  nasil cerceve icine alabilirim ve bu tesekkürlistesinide hemen konunun altinda kutucuk icinde gösterilmesini temada??


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Yağız...

/Themes/default/css/index.css dosyasında bulun:
.ThankOMatic
{
margin: 0.5em 0.5em 0.5em 0.5em;
padding: 0.2em 0.2em 0.2em 0.2em;
}

Değiştirin:
.ThankOMatic
{
margin: 0.5em 0.5em 0.5em 0.5em;
padding: 0.2em 0.2em 0.2em 0.2em;
border: 1px solid;
}

Gurbet_42

#23
Teşekkür edenler konunun altında bir türlü görünemiyor,sorun ne acaba veya benmi ayarlayamadım.



Edit: Display.template ve index.css'de kodlar yokmuş yada silinmiş .....

dj_seyhan

ayarlardan teşekkür listesini gösteri acmalısın

teşekkür resmi görünmüyor kullandığım temanın images klasörünede attım ama bir türlü cıkmadı yardımcı olabilirmisin değişiklikleride yaptım ama türkçe olarakta forumda cıkmıyor bir türlü

my_wuslat

#25
http://www.simplemachines.org/community/index.php?topic=200029.20



Yağız şu üstdeki linkte 1.1.X için vermiş olduğun kodları 2.0.RC.2 içinde verebilirsin... Top 10 da gösteremedik teşekkürleri... değişmiş sanırım kodlar.

Yani şu kodlar ;

//Load Top Thank-O-Matic Stats :)
   $request = db_query("
      SELECT ID_MEMBER, realName, thank_you_post_became, thank_you_post_made
      FROM {$db_prefix}members as mem
      ORDER BY thank_you_post_made DESC
      LIMIT 10", __FILE__, __LINE__);
   $collectThxID_MEMBER = array();
   $context['top_ThankOMatic_Given'] = array();
   while ($row = mysql_fetch_assoc($request)) {
      $context['top_ThankOMatic_Given'][] = array(
         'id' => $row['ID_MEMBER'],
         'name' => $row['realName'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" title="'. $txt['thank_you_post_thx_display'] .' '. $txt['thank_you_post_made_display'] . '">' . $row['realName'] . '</a>',
         'thank_you_post_became' => $row['thank_you_post_became'],
         'thank_you_post_made' => $row['thank_you_post_made']
      );
     
      $collectThxID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
   }
   mysql_free_result($request);
   
   $request = db_query("
      SELECT ID_MEMBER, realName, thank_you_post_became, thank_you_post_made
      FROM {$db_prefix}members
      ORDER BY thank_you_post_became DESC
      LIMIT 10", __FILE__, __LINE__);
   $context['top_ThankOMatic_Receive'] = array();
   while ($row = mysql_fetch_assoc($request)) {
      $context['top_ThankOMatic_Receive'][] = array(
         'id' => $row['ID_MEMBER'],
         'name' => $row['realName'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" title="'. $txt['thank_you_post_thx_display'] .' '. $txt['thank_you_post_became_display'] . '">' . $row['realName'] . '</a>',
         'thank_you_post_became' => $row['thank_you_post_became'],
         'thank_you_post_made' => $row['thank_you_post_made']
      );
     
      $collectThxID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
   }
   mysql_free_result($request);

   //Okay Fix the colors for the Thank You Post :)
   if(!empty($collectThxID_MEMBER) && !empty($modSettings['thankYouPostColors']) && empty($modSettings['MemberColorStats'])) {
      global $sourcedir, $color_profile;
     
      //Okay load the colors and add them :)
      require_once($sourcedir.'/ThankYouPost.php');
      thank_you_post_loadColors($collectThxID_MEMBER);
     
      //Hoho let's color it the thx color way :D
      if(!empty($context['top_ThankOMatic_Given'])) {
         foreach($context['top_ThankOMatic_Given'] as $key => $items) {
            //Okay Let's boogie woogie ;D
            $profile = $color_profile[$items['id']];
            if(!empty($profile['member_group_color']) || !empty($profile['post_group_color'])) {
               $context['top_ThankOMatic_Given'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="'. $txt['thank_you_post_thx_display'] .' '. $txt['thank_you_post_made_display'] . '"><span style="color:'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).';">' . $profile['realName'] . '</span></a>';
            }
         }
      }
      if(!empty($context['top_ThankOMatic_Receive'])) {
         foreach($context['top_ThankOMatic_Receive'] as $key => $items) {
            //Okay Let's boogie woogie ;D
            $profile = $color_profile[$items['id']];
            if(!empty($profile['member_group_color']) || !empty($profile['post_group_color'])) {
               $context['top_ThankOMatic_Receive'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="'. $txt['thank_you_post_thx_display'] .' '. $txt['thank_you_post_became_display'] . '"><span style="color:'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).';">' . $profile['realName'] . '</span></a>';
            }
         }
      }
   }
   
   // Cache the ones we found for a bit, just so we don't have to look again.
   if ($temp !== $temp2)
      cache_put_data('stats_total_time_members', $temp2, 480);



ve


// TOP10
   echo '
    <table border="0" width="100%" cellspacing="1" cellpadding="2" class="bordercolor">
   <tr>
      <td width="100%" colspan="4" class="catbg" height="24">Tesekkur - Top 10</td>
   </tr>
   <tr class="titlebg">
      <td width="50%"><font style="font-size: 8pt">Alinmis Tesekkür</font></td>
      <td width="50%"><font style="font-size: 8pt">Verilmis Tesekkür</font></td>
   </tr>
   <tr class="windowbg2">
      <td width="21%" valign="top">
    <table width="100%">
   <tr>';
      foreach ($context['top_ThankOMatic_Receive'] as $poster)
      {echo '
      <td width="60%" class="windowbg2" valign="top"><font style="font-size: 8pt">',$poster['link'], '</font></td>
      <td width="40%" class="windowbg2" align="right" valign="top"><font style="font-size: 8pt">', $poster['thank_you_post_became'], '</font></td>
   </tr>';
      }echo '
    </table>
      </td>
      <td width="20%" valign="top">
    <table width="100%">
   <tr>';
      foreach ($context['top_ThankOMatic_Given'] as $poster)
      {echo '
      <td width="60%" class="windowbg2" valign="top"><font style="font-size: 8pt">',$poster['link'], '</font></td>
      <td width="40%" class="windowbg2" align="right" valign="top"><font style="font-size: 8pt">', $poster['thank_you_post_made'], '</font></td>
   </tr>';
      }echo '
    </table>
      </td>
   </tr>
    </table>';



bu kodların 2.0.RC.2 ye uygun olanı verebilirsen çok iyi olur

ismail9

ben bu paket yükledim, yalniz söyle bir hatta verdi :


Source/Display.php

Ara :
                        id_msg_modified < {int:new_from} AS is_read
         FROM {db_prefix}messages         

öncesine ekle :
           
' . ($board_info['thank_you_post_enable'] &&
allowedTo('thank_you_post_show') ? 'thank_you_post,
thank_you_post_counter,' : '') . ' id_msg_modified < {int:new_from}


Display.php dosyasini ekte veriyorum, yardimci olurmusunuz.

interka

teşekkur modunu manuel kurdum  ayarları yapmak istedigimde kutuları işaretleyip kaydet basıyorum temel ayarlara donuyor ve kaydetmiyor. hem default temada hemde çölatesinde aynı sorun var bunu nasıl duzeltebilirim acaba yardımcı olurmusunuz? 1.1.11 surumunu kullanıyorum

interka

kimse yardımcı olmicakmi? ayarlardaki check kutularını işaretli yapma sansimiz yokmu peki?

hella

Hem localde,hem sitemde   "ThankOMatic20RC1.3_(for_2.0_RC2).zip" sürümünü kullandım.Admin panelde yönetimi yok.Sadece üye izinlerinde Tükçe izinler okunabiliyor.Bunun Türkçe paketi çıkmadan kurmayacağım.Tavsiyede etmem.Akşamdan beri boşuna uğraştırdı.

Yağız...

Tüm dil değişikliklerini yaptığınızdan emin olun.

Gurbet_42

Quote from: hella on February 15, 2010, 10:47:05 AM
Hem localde,hem sitemde   "ThankOMatic20RC1.3_(for_2.0_RC2).zip" sürümünü kullandım.Admin panelde yönetimi yok.Sadece üye izinlerinde Tükçe izinler okunabiliyor.Bunun Türkçe paketi çıkmadan kurmayacağım.Tavsiyede etmem.Akşamdan beri boşuna uğraştırdı.

İlk mesajda yazıyor eklenecek dil. Bende sorunsuz işliyor.

Antes

Quote from: hella on February 15, 2010, 10:47:05 AM
Hem localde,hem sitemde   "ThankOMatic20RC1.3_(for_2.0_RC2).zip" sürümünü kullandım.Admin panelde yönetimi yok.Sadece üye izinlerinde Tükçe izinler okunabiliyor.Bunun Türkçe paketi çıkmadan kurmayacağım.Tavsiyede etmem.Akşamdan beri boşuna uğraştırdı.

Konu başlığına dikkat ettin mi ? RC1 yazıyo :) - bu dil paketi ThankOMatic20RC1 için RC1.3 için düzenleme yapmam gerekli

Gurbet_42

Antes hocam modifikasyonun ismi "ThankOMatic20RC1.3_(for_2.0_RC2)"

http://custom.simplemachines.org/mods/index.php?mod=710

Antes

Quote from: Gurbet_42 on February 15, 2010, 04:39:59 PM
Antes hocam modifikasyonun ismi "ThankOMatic20RC1.3_(for_2.0_RC2)"

http://custom.simplemachines.org/mods/index.php?mod=710

localhosta kurdum dil dosyaları RC1 hiç bi değişiklik yok sadece benim yaptığım bi hata var , Teşekkürler! diye yazmışım , Teşekkür Et! olcaktı - her şey normal çalışıyo

my_wuslat

verilen teşekkürleri top 10 da, karmanın yerine nasıl gösterebiliriz ?

grafitus

Quote from: my_wuslat on January 17, 2010, 01:37:42 PM
bu kodların 2.0.RC.2 ye uygun olanı verebilirsen çok iyi olur
@my_wuslat, zaten uyumluymuş bu kod. Yani yazar modifikasyona eklemiş. Şu linkteki ./Sources/Stats.php'deki değişiklik...

my_wuslat

#37
evet şimdi yapabildim çok teşekkür ederim güzel oldu... belki başka birinin işine yarar nasıl yapıldını vereyim...

karma yerine teşekkürleri top 10 da gösermek için

sources/BoardIndex.php   

bul

// karma
   
   //  Top 10 karma
   $members_result = $smcFunc['db_query']('', '
      SELECT id_member, real_name, karma_good
      FROM {db_prefix}members
      ORDER BY karma_good DESC
      LIMIT 10');
   $context['repkarma'] = array();
   while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
   {
      $context['repkarma'][] = array(
         'name' => $row_members['real_name'],
         'id' => $row_members['id_member'],
         'karma' => $row_members['karma_good'],
         'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
      );
   }
   $smcFunc['db_free_result']($members_result);

   if (empty($context['repkarma']))
      return;

// karma finished


değiştir

// Thank-O-Matic Stats Callculation
if (!empty($modSettings['thankYouPostStatsEnabled']))
{
// Load chached data for Thank-O-Matic, should speed up the stats for big boards :)
$temp_thankomatic = cache_get_data('stats_thank_o_matic_members', 360);

// Load Top Thank-O-Matic Stats :)
$request = $smcFunc['db_query']('', '
SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
FROM {db_prefix}members as mem' . (!empty($temp_thankomatic) ? '
WHERE id_member IN ({array_int:member_list_cached})' : '') . '
ORDER BY thank_you_post_made DESC
LIMIT {int:limit}',
array(
'limit' => 10,
'member_list_cached' => $temp_thankomatic,
)
);
$collectThxid_member = array();
$context['top_ThankOMatic_Given'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$context['top_ThankOMatic_Given'][] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u='  . $row['id_member'],
'link' => '<a href="'  . $scripturl . '?action=profile;u='  . $row['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_made_display'] . '">'  . $row['real_name'] . '</a>',
'thank_you_post_became' => $row['thank_you_post_became'],
'thank_you_post_made' => $row['thank_you_post_made']
);

$collectThxid_member[$row['id_member']] = $row['id_member'];
}
$smcFunc['db_free_result']($request);

$request = $smcFunc['db_query']('', '
SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
FROM {db_prefix}members' . (!empty($temp_thankomatic) ? '
WHERE id_member IN ({array_int:member_list_cached})' : '') . '
ORDER BY thank_you_post_became DESC
LIMIT {int:limit}',
array(
'limit' => 10,
'member_list_cached' => $temp_thankomatic,
)
);
$context['top_ThankOMatic_Receive'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$context['top_ThankOMatic_Receive'][] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u='  . $row['id_member'],
'link' => '<a href="'  . $scripturl . '?action=profile;u='  . $row['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_became_display'] . '">'  . $row['real_name'] . '</a>',
'thank_you_post_became' => $row['thank_you_post_became'],
'thank_you_post_made' => $row['thank_you_post_made']
);

$collectThxid_member[$row['id_member']] = $row['id_member'];
}
$smcFunc['db_free_result']($request);

// Chache the data for the Thank-O-Matic stats
if($temp_thankomatic != $collectThxid_member)
cache_put_data('stats_thank_o_matic_members', $collectThxid_member, 480);

// Okay Fix the colors for the Thank You Post :)
if (!empty($collectThxid_member) && !empty($modSettings['thankYouPostColors']) && empty($modSettings['MemberColorStats']))
{
global $sourcedir, $color_profile;

// Okay load the colors and add them :)
require_once($sourcedir.'/ThankYouPost.php');
thank_you_post_loadColors($collectThxid_member);

// Hoho let's color it the thx color way :D
if (!empty($context['top_ThankOMatic_Given']))
{
foreach ($context['top_ThankOMatic_Given'] as $key => $items)
{
// Okay Let's boogie woogie ;D
$profile = $color_profile[$items['id']];
if (!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['top_ThankOMatic_Given'][$key]['link'] = '<a href="'  . $scripturl . '?action=profile;u='  . $profile['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_made_display'] . '"><span style="color:'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).';">'  . $profile['real_name'] . '</span></a>';
}
}
if (!empty($context['top_ThankOMatic_Receive']))
{
foreach ($context['top_ThankOMatic_Receive'] as $key => $items)
{
// Okay Let's boogie woogie ;D
$profile = $color_profile[$items['id']];
if (!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['top_ThankOMatic_Receive'][$key]['link'] = '<a href="'  . $scripturl . '?action=profile;u='  . $profile['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_became_display'] . '"><span style="color:'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).';">'  . $profile['real_name'] . '</span></a>';
}
}
}
}



BoardIndex.template  bul

<td width="18%" valign="top"><table width="100%"><tr>
<td width="75%"><span class="smalltext"><b>' . $txt['hhyfull7'] . '</b></span></td>
<td width="25%" align="right"><span class="smalltext"><b>' . $txt['hhyfull9'] . '</b></span></td></tr>';
foreach ($context['repkarma'] as $member)
{echo '
<tr><td width="75%" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/hhyfull2.gif" /><span class="smalltext">', $member['link'], '</span></td>
<td width="25%" align="right" valign="top"><span class="smalltext">', $member['karma'], '</span></td></tr>';
}echo '</table></td>



değiştir

<td width="18%" valign="top"><table width="100%"><tr>
<td width="75%"><span class="smalltext"><b>' . $txt['hhyfull7'] . '</b></span></td>
<td width="25%" align="right"><span class="smalltext"><b>' . $txt['hhyfull9'] . '</b></span></td></tr>';
foreach ($context['top_ThankOMatic_Receive'] as $poster)
{echo '
<tr><td width="75%" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/hhyfull2.gif" /><span class="smalltext">', $poster['link'], '</span></td>
<td width="25%" align="right" valign="top"><span class="smalltext">', $poster['thank_you_post_became'], '</span></td></tr>';
}echo '</table></td>



Not : Kendi sitemizdeki Top 10 kurulumuna göre verdik, kurarken kendi sitenizdeki top 10 kodlarına göre yaparsınız.




Gökhan | Brestgerfich

Modifikasyona ait resimleri kullandığım temanın images klasörüne yüklememe rağmen bir türlü resimler çıkmıyor. Bunu nasıl halledebilirim? Anlamadım gitti :S

lazanya

utf türkçe hala yok galiba değil mi?

Advertisement: