Advertisement:

Author Topic: Say Thanks  (Read 112747 times)

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Say Thanks
« on: August 30, 2014, 05:16:29 PM »
Link to Mod

Say Thanks provides the ability for users to thank posts.

Requirements

This mod requires PHP 5.3 or above.

Postgresql users: this mod requires v9+ for the stats page

Core-based theme users

If you find that the stats page test fails on installation, you are likely to be using a core-based theme. The reason it fails is because the stats template is completely different to the one in the default theme. The mod supports the core theme by targeting it specifically but it cannot tell if the theme you are using is based on core. You can still go ahead and install the mod and it will work fine with the caveat that the stats page won't have the thanks stats and the buttons will look a bit out of place because of the styling. To add support to your theme simply follow these instructions, for this example lets say you are using Back-n-Black theme:
  • Install the mod as usual making sure to install in core and your custom theme, it will warn you about your theme that failed the test, you can continue
  • Rename the Stats.template.php in \Themes\backnblack_204 to something else for example Stats.template.backup.php
  • Copy the Stats.template.php and SayThanks.template.php from \Themes\core into \Themes\backnblack_204
  • Copy the Say Thanks style sheet from \Themes\core\css\saythanks.css and place over the styling in \Themes\backnblack_204\css\ (this step is optional, without this change the buttons look a bit thicker because the icons are doubled up but still look ok)

Now the stats page and little icons next to the Say Thanks links should be working. You just need to make sure you do the reverse of the above steps when you come to uninstall.

Additional Notes and known limitations

  • Posts that require users to thank will not show content on reply page or the posts by user page even if the user has thanked the post already

Change Log

1.3.6
  • Thanked posts page now linked on profile

1.3.5
  • Resolved conflict with Display Additional Membergroups

1.3.4
  • Fixed Russian issue with json
  • Added Russian UTF-8
  • Added Norwegian translation by Svendsen
  • Added Spanish translation by d3vcho

1.3.3
  • Fixed stats page bug introduced in previous version
  • Croatian translation by anonymous
  • Russian translation by Sergey
  • Persian translation by roza

1.3.2
  • Updated german translation, thanks to larry007
  • Replaced Top 10 Thankers with Top 10 Thanked posts
  • Added thanked by user posts page

1.3.1
  • Resolved conflict with quick edit button

1.3
  • CSS now in standalone file to help those of you with index.css variations, also makes uninstalling core-based themes easier
  • Fixed minor undeclared variable warning
  • Resolved conflict with one of the Google Analytic mods
  • Hide content plugin for show content on thank
  • Ajax updates thankers list
  • IE 8 support for ajax button

1.2.2
  • Improved browser support for ajax button

1.2.1
  • Ajax enabled for thank button
  • Stats page supports Core theme
  • Thanking enabled for locked topics

1.2
  • Ability to disable on certain boards
  • Hide content plugin support
  • Fixed issue with locked posts

1.1.2
  • German translation

1.1.1
  • Fixed default value check for new configuration settings
  • Italian complete translation

1.1
  • Show thanked posts list to view all your posts that have been thanked
  • Top ten thanked users and top ten thankers on stats page
  • Withdraw thanks function
  • Admin options to hide thanks count and above features

1.0-1.0.2
  • Draft release

Translation Credits
Croatian - ameo
Italian - Ninja ZX-10RR
German - larry007
Russian - Sergey
Persian - roza
Norwegian - Svendsen
Spanish - d3vcho

Icon courtesy of Yusuke Kamiyamane (http://www.iconfinder.com/icondetails/27245/24/fine_good_hand_ok_thumb_thumbs_up_up_icon)
Tick and cross icon courtesy of Pixel Mixer (https://www.iconfinder.com/iconsets/basicset)
Loading icon courtesy of Preloaders.net

Support
Support for this modification can be found in the support topic.



This work is licensed under a Creative Commons Attribution 3.0 Unported License
« Last Edit: January 11, 2015, 05:51:38 PM by kelvincool »

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Say Thanks
« Reply #1 on: August 30, 2014, 05:27:37 PM »
This mod is good well how can we get back thanks after give say thanks. This is important
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Re: Say Thanks
« Reply #2 on: August 31, 2014, 05:20:57 PM »
When you say thanks to someone it's not something that you take back so I didn't include such an option, also I wanted to keep the mod simple for maintainability. If there's enough demand for it then I'll add it in.

Offline Gallardo994

  • Newbie
  • *
  • Posts: 5
Re: Say Thanks
« Reply #3 on: September 06, 2014, 12:54:29 PM »
Installing the mod has no problems, all tests pass, but when it finishes the installation, there is no effect at all. Trying to uninstall the mod causes a long list of errors for every file. Checking changed files, the mod has changed nothing at all.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,409
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Say Thanks
« Reply #4 on: September 06, 2014, 04:09:48 PM »
Odd. It works perfectly for me.
Online Manual

Please do not PM me for support.

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Re: Say Thanks
« Reply #5 on: September 06, 2014, 05:23:18 PM »
That's pretty strange. Some questions that will help debug:

Which version of smf are you using?
Are you running with PHP 5.3+?
Are you using the default theme?
Did it create the two tables messages_thanks and messages_thanks_stats?
What errors are you getting?
« Last Edit: September 06, 2014, 05:37:23 PM by kelvincool »

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,147
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: Say Thanks
« Reply #6 on: September 17, 2014, 10:23:22 AM »
Doesn't work 100% to me, the icon is missing, it didn't copy it at all in the destination folder and when I tried to put my own image and renaming it to "thank.png" it didn't show anyway :/
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.
♥ Jess ♥

STOP EDITING MY PROFILE

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Re: Say Thanks
« Reply #7 on: September 17, 2014, 01:49:30 PM »
OK answer the same questions I posted above and I'll see if I can recreate.

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,147
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: Say Thanks
« Reply #8 on: September 17, 2014, 02:08:34 PM »
2.0.8
Yes
Yes
Doesn't matter but yes
None

EDIT: P.s. the installation was successful.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.
♥ Jess ♥

STOP EDITING MY PROFILE

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Re: Say Thanks
« Reply #9 on: September 17, 2014, 03:08:47 PM »
I guess those questions didn't really help as much as I thought they would. You're basically running the same set up as me when I develop this.

Follow up questions:

Are your themes folder permissions set correctly? Specifically the folder /Themes/default/images/theme/

That's the only reason I can think of for it not to copy the icon correctly. Have you had any issues with other mods copying icons into the theme folder? The php logs at the time of the installation might give some idea on what the error might be.

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,147
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: Say Thanks
« Reply #10 on: September 17, 2014, 03:51:21 PM »
No dude you didn't get it and i might have explained myself badly... I tried to put an image manually but it didn't show up either that way! :O logs showed nothing :(
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.
♥ Jess ♥

STOP EDITING MY PROFILE

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Re: Say Thanks
« Reply #11 on: September 17, 2014, 04:02:14 PM »
So if you put this into your browser (with your own website domain of course):

http://youwebsite.com/Themes/default/images/theme/thank.png

Do you get anything back? How about:

http://youwebsite.com/Themes/default/images/theme/thank.png.png
or
http://youwebsite.com/Themes/default/images/theme/quote.png

I would say check the permissions on that image you uploaded and check the permissions on the theme folder too. That's of course if you are running with linux and not windows. Would be interested to know if you have any issues with other mods trying to write to that folder.

Offline swaggaderby

  • Jr. Member
  • **
  • Posts: 129
Re: Say Thanks
« Reply #12 on: September 17, 2014, 04:10:55 PM »
@Kelvin please is der a way the mod can be set to set a list of the highest people thanked?

Offline kelvincool

  • Jr. Member
  • **
  • Posts: 212
Re: Say Thanks
« Reply #13 on: September 17, 2014, 04:22:41 PM »
@swaggaderby you mean as part of the forum stats, eg on the same page as Top 10 posters, Top 10 boards, etc...?

If people want that as a feature I can certainly put that into the next version.

Offline swaggaderby

  • Jr. Member
  • **
  • Posts: 129
Re: Say Thanks
« Reply #14 on: September 17, 2014, 04:37:33 PM »
As top10 just like this pic attached

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,147
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: Say Thanks
« Reply #15 on: September 17, 2014, 04:51:05 PM »
Well I just tried it again and... It didn't work when I tried to install it but when I uploaded an image renamed to "thank.png" it worked... I probably made a mistake with the upload last time, still it doesn't copy the image by default. It says it does but in fact he doesn't do that... Ah the permissions are 775 so way higher than necessary there.
Thanks for the help anyway :) sorry if I haven't been completely accurate the first time.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.
♥ Jess ♥

STOP EDITING MY PROFILE

Offline ameo

  • Full Member
  • ***
  • Posts: 549
  • Gender: Male
  • my life is LOST
Re: Say Thanks
« Reply #16 on: September 30, 2014, 11:49:01 AM »
As a good boy I am, I've translated this lil script from English to Croatian.


So you can include it if you like, or whoever likes it on my language, can use it.
It's attached. Also you can find it on pastie: say thanks -   Cheers!  :)
antechinus:
Quote
If you are dying for a solution it may be wise to seek medical attention.

Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

Offline Joomlamz

  • SMF Hero
  • ******
  • Posts: 2,628
  • Gender: Male
  • Suporte SmfPT
    • apllicmz on Facebook
    • apllicmz on GitHub
    • https://www.linkedin.com/in/aplic on LinkedIn
    • @aplichosting on Twitter
    • Webdesign
Re: Say Thanks
« Reply #17 on: October 07, 2014, 12:29:21 PM »
iam done portugues files any news send MP
Thank you



Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,409
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Say Thanks
« Reply #18 on: October 07, 2014, 04:29:32 PM »
Why not just attach it so anyone who wants it can grab it right away without having to wait? :)
Online Manual

Please do not PM me for support.

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,147
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: Say Thanks
« Reply #19 on: October 08, 2014, 09:39:57 AM »
Why not just attach it so anyone who wants it can grab it right away without having to wait? :)
+1
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.
♥ Jess ♥

STOP EDITING MY PROFILE