2016-05-10, 05:05 AM
I've manually edited the quick reply form to show the user's avatar and it's working but I have just one problem, the {$mybb->user['avatar']} variable isn't showing the default avatar for registered users that haven't changed their avatar yet. Yes default avatars are enabled.
Is there a quick way around this? I hate doing core edits and a plugin would be pointless for something like this.
Using PHP in Templates I can just decide not to include it if one isn't set, but that isn't what I want.
Found my solution.
You can close this thread, I didn't need help after all.
Is there a quick way around this? I hate doing core edits and a plugin would be pointless for something like this.
Using PHP in Templates I can just decide not to include it if one isn't set, but that isn't what I want.
if ($mybb->user['avatar'])
{
echo "<td class=\"{$trow}\" width=\"10%\"><img src=\"{$mybb->user['avatar']}\" title=\"{$mybb->user['username']}\" /></td>";
}
Found my solution.
You can close this thread, I didn't need help after all.