menz01 wrote: ↑Sun Apr 22, 2018 10:04 pm
KYPREO wrote: ↑Tue Apr 17, 2018 12:50 am
I've now had this running and working for a bit over 2 months on my 3.2.2 board. I am using it as a "like" instead of "thanks" feature (I amended the relevant language files). Everything is going smoothly and the feature has been very well received and utilised by users. Two thumbs up!
i wanted to change all my "Thanks" to "likes"..... would you mind sharing with the coding noobs such as myself how it is done and which files it needs to be changed? any tips on getting it done smarter/quicker would be welcome as well.
thanks in advance,
I changed the following files located in .\ext\gfksx\ThanksForPosts\language\en:
info_acp_thanks.php
permissions_thanks.php
thanks_mod.php
The only one which actually affects what users see is "thanks_mod.php" - the others affect what you see in the ACP.
You need to use Notepad++ and change all references to "thanks" to "like" with grammatical changes where required and to your preference. If necessary, I can upload the altered code i am using for thanks_mod.php, noting that it is for an older version of the extension.
From memory, I also had to change the templates in the email subfolder, so that email notifications for liked posts made grammatical sense. The email templates otherwise pick up the updated like language from the modified thanks_mod.php.