2020-09-26, 02:11 PM
(This post was last modified: 2020-09-26, 02:23 PM by Laird. Edited 1 time in total.
Edit Reason: Added the corresponding changes for /thankyoulike.php.
)
The plugin currently doesn't support this out-of-the-box, but you can hack it to achieve it. Here's a start at that hack. Line numbers assume you've got the latest version of the plugin, 3.3.6, installed.
In the file inc/plugins/thankyoulike.php:
You can probably take it from there, but if you need more help with getting it exactly right then just ask.
In the file inc/plugins/thankyoulike.php:
- Append
, u.avatar
to line 1673 (which is the first line of a SELECT database query).
- Insert around line 1695 the line
$avatar = format_avatar($tyl['avatar']);
- Append
, u.avatar
to line 419 (which is the first line of a SELECT database query).
- Insert around line 433 the line
$avatar = format_avatar($tyl['avatar']);
thankyoulike_users
template and replace its contents with something like this (tinker to get your preferred look):<a href="{$profile_link}" class="smalltext" title="{$tyl['username']}"><img alt="" src="{$avatar['image']}" style="width: 25px; height: 25px; border-radius: 12.5px;" /></a>
You can probably take it from there, but if you need more help with getting it exactly right then just ask.