Advertisement:

Author Topic: post layout like line  (Read 296 times)

Offline iso

  • Semi-Newbie
  • *
  • Posts: 33
  • Gender: Male
    • station23
post layout like line
« 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.


Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,951
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: post layout like line
« Reply #1 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'])
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]