Is there a way to add the avatar into the Portal Welcome Block after someone has logged in ? Maybe a frame with a basic thing in there for those not logged in.
Any info is appreciated. Thank you.
Wolfseye
This might not work but is worth a try
Admin CP -> Templates & Style -> Templates -> *Template Set* -> Portal Templates -> portal_welcomeblock
Add this code where you want the avatar to be displayed.
<img src="{$user['avatar']}" alt="Avatar" width="50px" height="50px" />
Edit the width and height to what you want.
Try this
Admin CP -> Templates & Style -> Templates -> *Template Set* -> Portal Templates -> portal_welcomeblock
Add this code where you want the avatar to be displayed.
<img src="{$mybb->user['avatar']}" alt="Avatar" width="50px" height="50px" />
Edit the width and height to what you want.
Just wanted to drop a reply since this thread helped me accomplish the addition of an avatar to my welcome block as well and to note that I had to apply the change in a slightly different spot:
Template Sets-> Default Templates-> Header Templates-> header_welcomeblock_member
Since I was trying to get the avatar to appear to the left of the welcome message, account switcher, etc., I did the following:
<span style="float:right;">
{$lang->welcome_current_time}<br><a href="#" class="links" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);">{$lang->welcome_open_buddy_list}</a></span>
<table border="0">
<tr>
<td>
<img src="{$mybb->user['avatar']}" style="border:1px solid #e4e4e4;" width="60px" height="60px" />
</td>
<td class="trow1" valign="top">
<span class="smalltext">
{$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$modcplink}{$admincplink} — <a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>)<br />
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}
<!-- AccountSwitcher -->{$as_header}<!-- /AccountSwitcher -->
</span>
</td>
</tr>
</table>
(Yeah, probably not pretty, but it got the job done.)