News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Say Thanks

Started by kelvincool, August 30, 2014, 05:16:29 PM

Previous topic - Next topic

Bugo

@kelvincool, in version for SMF 2.1 your mod does not need such fixes, you can safely delete them:


if ($context['user']['language'] == 'russian')
{
 
$arr['response'] = iconv('Windows-1251', 'UTF-8', $arr['response']);
}

if (
$context['user']['language'] == 'russian')
{
 
$arr['list'] = iconv('Windows-1251', 'UTF-8', $arr['list']);
 
$arr['response'] = iconv('Windows-1251', 'UTF-8', $arr['response']);
}


kelvincool

Thank you @Bugo, I will remember to remove that with my next release  :)

Klauser

I just upgrade from SMF 2.0.19 to 2.1.4 and installed this MOd which I had before running. I am getting an error while I am watching an Thread

Database Error: Unknown column 't.date_thanked' in 'order clause'


         SELECT
            m.id_msg, u.id_member, u.real_name as member_name
         FROM smf_messages m, smf_messages_thanks t, smf_members u
         WHERE m.id_msg IN (108401) AND m.id_msg = t.id_msg AND t.id_member = u.id_member
         ORDER BY t.date_thanked ASC


Lucarella

HI,
Is it possible to add the total number of users who thanked below the list?
Like something like this:


Thanks

kelvincool

@Klauser please refer to this post and the following replies on how to resolve the issue https://www.simplemachines.org/community/index.php?topic=527032.msg4135268#msg4135268

@Lucarella I can look into something like that

Klauser

Hello, this mod ist not working on my Site  SMF 2.1.4

/homepages/xxx/Sources/SayThanks.php (Line 92)
Backtrace-Information


Database Error: Unknown column 't.date_thanked' in 'order clause'


         SELECT
            m.id_msg, u.id_member, u.real_name as member_name
         FROM smf_messages m, smf_messages_thanks t, smf_members u
         WHERE m.id_msg IN (108401) AND m.id_msg = t.id_msg AND t.id_member = u.id_member
         ORDER BY t.date_thanked ASC

kelvincool

@Klauser see my previous reply to you.

Klauser

@kelvincool

I apologize very much for the double posting, it was just too late yesterday. Your solution worked, thank you very much and happy Easter.

Dave J

Hi Kelvin,

I'm using 2.1.4 but for some reason I'm (Admin) not getting alerts when thanked. The settings are all correct

Steve

What about in your profile?
My pet rock is not feeling well. I think it's stoned.

Dave J

Quote from: Dave J on June 28, 2024, 02:56:58 AMHi Kelvin,

I'm using 2.1.4 but for some reason I'm (Admin) not getting alerts when thanked. The settings are all correct

Ignore that...I've just received a few thanks..but this is the first time I have seen alerts for it since it was installed on 12th June

Dorin1

Hello , if you can help me, i want to change the color of the button and the image, can you tell me please where i can find this button and image to change this. thank you



kelvincool

Quote from: Dorin1 on December 14, 2024, 04:56:53 AMHello , if you can help me, i want to change the color of the button and the image, can you tell me please where i can find this button and image to change this. thank you




The image on the button is located here: \Themes\default\images\thank.png you will also find a number of other thank_ images in there that you may also want to replace.

Cola-Coca

Hi,

How can I change the color of the Thanks button to red or green for example?
I LOVE SMF

kelvincool

@Cola-Coca this really depends on the theme you are using really. For the default theme you would have to add some css to change the color, something like this:

.thank_you_button_link a {
  background-color:red;
}

Looks very odd though, not sure why you would want that.

Cola-Coca

Does anyone know how to see colored groups under posts in the thanks list? For example, when an admin thanks someone post, I don't see the red color.

I LOVE SMF

Dave J

Quote from: Cola-Coca on February 15, 2025, 02:31:41 PMDoes anyone know how to see colored groups under posts in the thanks list? For example, when an admin thanks someone post, I don't see the red color.



I use 'Simple Colorizer v1.4' mod and I get colours fine. Using the SMF Default theme I get as seen below.

Not sure what would happen with the theme you're using

Cola-Coca

Thank you, it works perfectly.
I LOVE SMF

wislakrakow

Polish version

<?php
// Wersja: 2.6.0; Podziękowania

$txt['saythanks_text'] = 'Podziękuj';
$txt['saythanks_thanked'] = 'Następujący użytkownicy podziękowali za ten post: ';
$txt['saythanks_thankscount'] = 'Podziękowano';
$txt['saythanks_times'] = 'razy'; // np. Podziękowano 7 razy
$txt['saythanks_withdraw_thanks'] = 'Cofnij podziękowanie';
$txt['saythanks_settings'] = 'Podziękowania';

$txt['saythanks_withdraw_thanks_settings_desc'] = 'Włącz opcję cofnięcia podziękowania';
$txt['saythanks_hide_thanks_count_on_post_settings_desc'] = 'Ukryj liczbę podziękowań w postach';
$txt['saythanks_hide_thanks_count_in_profile_settings_desc'] = 'Ukryj liczbę podziękowań w profilu';
$txt['saythanks_hide_thanks_stats_settings_desc'] = 'Ukryj statystyki dziesięciu najczęściej dziękujących';

$txt['saythanks_hourly_limit_settings_desc'] = 'Włącz limit godzinowy';
$txt['saythanks_hourly_limit_period_settings_desc'] = 'Liczba godzin, przez które obowiązuje limit';
$txt['saythanks_hourly_limit_allowed_settings_desc'] = 'Maksymalna liczba podziękowań w określonym czasie';

$txt['saythanks_order_settings_desc'] = 'Kolejność wyświetlania podziękowań';
$txt['saythanks_order_recent'] = 'Najnowsze podziękowania na górze';
$txt['saythanks_order_oldest'] = 'Najstarsze podziękowania na górze';

$txt['saythanks_show_thanked_posts_settings_desc'] = 'Pokaż listę postów, za które podziękowano';
$txt['saythanks_thanks_given'] = 'Podziękowania przyznane';
$txt['saythanks_thanks_received'] = 'Podziękowania otrzymane';

$txt['saythanks_profile_thanks_tab'] = 'Podziękowania';
$txt['saythanks_profile_thanks_received'] = 'Otrzymane podziękowania';
$txt['saythanks_profile_thanks_given'] = 'Przyznane podziękowania';

$txt['saythanks_top_ten_title'] = 'Top 10 użytkowników z największą liczbą podziękowań';
$txt['saythanks_top_ten_received'] = 'Najwięcej otrzymanych podziękowań';
$txt['saythanks_top_ten_given'] = 'Najwięcej przyznanych podziękowań';

$txt['saythanks_no_thanks_yet'] = 'Brak podziękowań do wyświetlenia';

$txt['saythanks_admin_settings'] = 'Ustawienia podziękowań';
$txt['saythanks_admin_enable'] = 'Włącz system podziękowań';
$txt['saythanks_admin_save'] = 'Zapisz ustawienia';

?>

kelvincool

Many thanks for contributing @wislakrakow, will package that with the next release.

Advertisement: