Thank you, worked.
Last issue I faced today:
I am using this code for recent threads
<tr>
<td class="trow1" colspan="2">
<div class="float-right"><div class="sidebar-replies"> {$thread['replies']}</div></div>
<div class="float_left" style="margin: 5px 8px 0 0;"><img src="{$thread['avatar']}" alt="{$thread['last_post']}" title="{$thread['lastposter']}'s profile" style="width: 30px; border-radius:100%"/></div>
<div class="float_left">
<strong><a class="float_left" href="{$mybb->settings['bburl']}/{$thread['threadlink']}" title="{$thread['subject']}"><strong>{$thread['subject']}</strong></a></strong><br>
<span class="smalltext">Yazar: {$last_poster}</a>, {$lastposttime}</span>
</div>
</td>
</tr>
<style>
.sidebar-replies {
background: #191919;
width: 48px;
padding: 5px 0;
text-align: center;
border-radius: 3px;
margin-top: 8px;
font-size: 12px;
}
.float-right {
float: right;
display: inline-block;
max-width: 130px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.float_left {
float: left;
display: inline-block;
max-width: 130px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
With this code I can make user avatar and user nickname shown. But I have to set Avatars are off from module settings. That setting converts $last_poster to user's nickname.
But I noticed that with that setting off, I am unable to see avatars if user has no avatar- therefore uses default avatar. When I turn it on, user's nickname (aka $last_poster) converts to avatar too.
So I need to find out one of these
1. Is there a way I can add user's nickname with link without using last_poster so I can turn avatar setting on and solve the default avatar issue?
2. Is there a way I can solve this without changing current settings and simply user's avatar being visible even if it's a default avatar.
Note : If anyone else wants to use the code above, you would have to add colspan="2" to every other sidebox template you use.
<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$thread['lastposteruid']}">{$thread['lastposter']}</a>
With this code I can get user's nickname and proper URL. But I still can't make it in formatted style.