Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: iso on February 17, 2019, 08:16:41 AM

Title: post layout like line
Post by: iso on February 17, 2019, 08:16:41 AM
Hi,

just a minor thing ... can you hide the second line within a post, when no like is given and a signature is shown.

Title: Re: post layout like line
Post by: Antes on February 17, 2019, 08:55:23 AM
If your display.template is unchanged you can upload this directly.
If you want to path it;

Open Display.template.php, you will find the code twice.
Code: (Find) [Select]
if ($context['can_report_moderator'] || !empty($modSettings['enable_likes']) || $message['can_approve'] || $message['can_unapprove'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'] || $context['can_quote'])
Code: (Replace) [Select]
if ($context['can_report_moderator'] || (!empty($modSettings['enable_likes']) & !empty($message['likes']['count'])) || $message['can_approve'] || $message['can_unapprove'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'] || $context['can_quote'])