{* SHOW LOGIN FORM IF USER IS NOT LOGGED IN *}
{if $user->user_exists == 0}
{/if}
{* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *}
{if $user->user_exists == 0}
• {lang_sprintf id=661 1=$total_members}
{if $setting.setting_connection_allow != 0}
• {lang_sprintf id=662 1=$total_friends}{/if}
• {lang_sprintf id=663 1=$total_comments}
{math assign='total_online_users' equation="x+y" x=$online_users[0]|@count y=$online_users[1]}
{if $total_online_users > 0}
{if $online_users[0]|@count == 0}
{lang_sprintf id=977 1=$online_users[1]}
{else}
{capture assign='online_users_registered'}{section name=online_loop loop=$online_users[0]}{if $smarty.section.online_loop.rownum != 1}, {/if}
{$online_users[0][online_loop]->user_displayname}{/section}{/capture}
{lang_sprintf id=976 1=$online_users_registered 2=$online_users[1]}
{/if}
{section name=login_loop loop=$logins max=4}
{* START NEW ROW *}
{cycle name="startrow3" values="
{else}
{cycle name="endrow3" values=",