Hallo,
ich brauche eure Hilfe bei einem Code, da ich schon fast alles probiert habe, aber ohne erfolg.
Hier ein screenshot:
http://www.picture-monster.de/files/x45CCezUAx/Unbenannt.JPG
Ich will das die "gerade online" Liste genau so dargestellt wird, wie "Neueste Mitglieder", also mit den Bildern.
Hier ist der Code:
{* SHOW ONLINE USERS *}
<br>
<table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>
<tr><td class='portal_header'>{$global_online_total} {$home31}</td></tr>
<tr>
<td class='portal_box'>
{if $global_online_total > 0}
{section name=online_users_loop loop=$global_online_users max=10}
{if $smarty.section.online_users_loop.rownum != 1}, {/if}
<a href='{$smarty_object->url('profile',$global_online_users[online_users_loop].onlineuser_username)}'>{$global_online_users[online_users_loop].onlineuser_username}</a>
{/section}
{else}
{$home32}
{/if}
</td>
</tr>
</table>
Falls jemand den Code von "Neueste Miglieder" braucht:
{* SHOW LAST SIGNUPS *}
<br>
<table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>
<tr><td class='portal_header'>{$home33}</td></tr>
<tr>
<td class='portal_box'>
{if $signups_total > 0}
{section name=signups_loop loop=$signups max=5}
{* START NEW ROW *}
{cycle name="startrow" values="<table cellpadding='0' cellspacing='0' align='center'><tr>,,,,"}
<td class='portal_member'><a href='{$smarty_object->url('profile',$signups[signups_loop].username)}'>{$signups[signups_loop].username|truncate:15:"...":true}<br>{if $signups[signups_loop].photo != ""}<img src='{$signups[signups_loop].photo}' class='photo' width='{$smarty_object->photo_size($signups[signups_loop].photo,'90','90','w')}' border='0'>{else}<img src='./images/nophoto.gif' class='photo' width='90' border='0'>{/if}</a></td>
{* END ROW AFTER 5 RESULTS *}
{if $smarty.section.signups_loop.last == true}
</tr></table>
{else}
{cycle name="endrow" values=",,,,</tr></table>"}
{/if}
{/section}
{else}
{$home34}
{/if}
</td>
</tr>
</table>
Ich hoffe, dass ihr mir helfen könnt!
Danke im voraus.