inherit
205992
0
Nov 22, 2024 5:38:51 GMT -8
trixsey1
60
February 2014
trixsey1
|
Post by trixsey1 on Sept 17, 2020 17:09:27 GMT -8
Hi, I have changed the shoutbox code to display Avatars using the code I found here in the templates board (Sorry I can't remember the original author) {foreach $[shoutbox_post]} <div class="$[shoutbox_post.content_class] content-box"{if $[shoutbox_post.edited]} title="$[shoutbox_post.edited]"{/if}> <div style="float: left; width: 60px;"> $[shoutbox_post.created_by.avatar_small] </div> $[shoutbox_post.created_by]: <span class="message">$[shoutbox_post.message]</span> <span class="details"> $[shoutbox_post.edit_button] $[shoutbox_post.date] {if $[shoutbox_post.edited]}<span class="edited">*</span>{/if} </span> $[shoutbox_post.delete_button] <div class="ui-helper-clearfix"></div> </div> {/foreach} It works great but how to I remove the name of the person who has posted in the shoutbox, so only the Avatar is shown. Thanks.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Sept 17, 2020 17:21:27 GMT -8
Hi trixsey1You could remove just this part from the beginning of line 6: $[shoutbox_post.created_by]:
|
|
inherit
205992
0
Nov 22, 2024 5:38:51 GMT -8
trixsey1
60
February 2014
trixsey1
|
Post by trixsey1 on Sept 18, 2020 10:50:03 GMT -8
Retread...Well that was embarrassingly simple, lol. Thank you!
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Sept 19, 2020 4:54:29 GMT -8
|
|