@anagnam was talking about some indication to guests about logging to post. I wonder a popup modal would serve the purpose. Will an if function work ? How to check if someone is logged in or not ?
Depending were you are:
if ($context['user']['is_guest'])
or
if ($user_info['is_guest'])
will do the trick.