Hi All,
I have a bar along the top of my site that tells you who's logged in.
Code:
{if $login eq "" }
You are not logged in! <strong><a href="../error_message.php?need_login">[Login]</a></strong>
{else}
<strong>{if ($active_modules.Greet_Visitor ne "") AND ($smarty.cookies.GreetingCookie ne "")}{$smarty.cookies.GreetingCookie|replace:"\'":"'"}</strong>
{/if}
{$lng.txt_logged_in}<br />
{/if}
However, I only have a limited amount of space to fit a name in, before it starts overlapping something else.
I wondered if there was a way to count how many characters are in the person's name - If it's over a certain amount, only display their first name?
Thanks in advance,
Jean