MyBB Community Forums

Full Version: Thank You/Like System v3.4.5 + MyAlerts and Tapatalk support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
@hkkp - can you try it with default English language file? I cannot reproduce
okay, see attachment
You have to modify (update) your custom language file. There were changes in lang variables in latest updates
Hi, I need convert to this plugin from SMF Likes Mod, can u make a new converter?
Noticed that default time format is m-d-Y, when I change it to d-m-Y it doesn't work I see <span title> code instead. Any idea whats causing this?
@Darkrad - I cannot reproduce, you can set your time and date format in TYL settings (indepent on your MyBB board setting)
Yeah I am doing from there too.

I checked if its turkish language pack related thing, but when I change my language to English I still see "<span title="">Yesterday</span>" instead of m-d-Y order.

It looks like it's related to time changes in 1.8.12, MyAlerts was having the same issue and I had to change some codes too.

Change in MyBB -> https://github.com/mybb/mybb/commit/da0f...6b2d946a39
MyAlerts change -> https://github.com/MyBBStuff/MyAlerts/co...3dfaba8089
OK, maybe thats it. We should wait for a proper fix from MyBB team (I hope it will be in v1.8.13)
https://github.com/mybb/mybb/pull/2753
Thanks a lot for this
(2017-07-04, 09:45 AM)Darkrad Wrote: [ -> ]Yeah I am doing from there too.

I checked if its turkish language pack related thing, but when I change my language to English I still see "<span title="">Yesterday</span>" instead of m-d-Y order.

It looks like it's related to time changes in 1.8.12, MyAlerts was having the same issue and I had to change some codes too.

Change in MyBB -> https://github.com/mybb/mybb/commit/da0f...6b2d946a39
MyAlerts change -> https://github.com/MyBBStuff/MyAlerts/co...3dfaba8089

This quick fix should help:

Open the main plugin file (ROOT/inc/plugins/thankyoulike.php) to edit and search for (#962/#963):

$datedisplay_next = $mybb->settings[$prefix.'showdt'] == "nexttoname" ? "<span class='smalltext'> (".my_date($mybb->settings[$prefix.'dtformat'], $tyl['dateline']).")</span>" : "";
$datedisplay_title = $mybb->settings[$prefix.'showdt'] == "astitle" ? "title='".my_date($mybb->settings[$prefix.'dtformat'], $tyl['dateline'])."'" : "";

Replace both lines with:
$datedisplay_next = $mybb->settings[$prefix.'showdt'] == "nexttoname" ? "<span class='smalltext'> (".date($mybb->settings[$prefix.'dtformat'], $tyl['dateline']).")</span>" : "";
$datedisplay_title = $mybb->settings[$prefix.'showdt'] == "astitle" ? "title='".date($mybb->settings[$prefix.'dtformat'], $tyl['dateline'])."'" : "";

Save changes and reload forum page