Siropu
Well-known member
Try the following. Go to siropu_chat_room_message_helper template and find:how can i keep the typing even with long and short usernames in the chat.
Code:
<xf:else />
{$richUsername}:
</xf:if>
Replace with:
Code:
<xf:else />
<xf:set var="$repeatCount" value="{{ 10 - strlen($message.message_username) }}" />
{$richUsername}: {{ $repeatCount > 0 ? repeat('.', $repeatCount) : '' }}
</xf:if>