MyBB Community Forums

Full Version: Add users' avatar in welcome block?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
[Image: ibmPWI.png]
Try:

<td class="trow1" valign="top" align="left">
    <img src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s Avatar"  style="margin: 4px; float: left;" with="70px" height="70px"/>
    <span class="smalltext">{$lang->welcome_back}<br />
    <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<br />
    </span>
</td> 

(I think I had an error before)
That definitely changed it, haha.

[Image: idzquQ.png]
Ugh, this is starting to annoy me Big Grin :

<td class="trow1" valign="top" nowrap="nowrap" align="left">
    <img src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s Avatar"  style="margin: 4px; float: left;" width="70px" height="70px"/>
    <span class="smalltext">{$lang->welcome_back}<br />
    <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<br />
    </span>
</td>

?
We're back to square one again. The text is going off the container.

Don't worry, we'll get it! Smile
Try giving it a fixed width like this:

<td class="trow1" width="400px" valign="top" nowrap="nowrap" align="left">
    <img src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s Avatar"  style="margin: 4px; float: left;" width="70px" height="70px"/>
    <span class="smalltext">{$lang->welcome_back}<br />
    <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<br />
    </span>
</td> 
(2011-07-03, 03:32 AM)Jordan L. Wrote: [ -> ]Try giving it a fixed width like this:

<td class="trow1" width="400px" valign="top" nowrap="nowrap" align="left">
    <img src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s Avatar"  style="margin: 4px; float: left;" width="70px" height="70px"/>
    <span class="smalltext">{$lang->welcome_back}<br />
    <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<br />
    </span>
</td> 

That didn't seem to change anything.
Ughh, I don't understand why this is so difficult. This usually works the first time with no hassles in all the themes I've ever made. Maybe it's because I'm over-looking it due to 3 hours of sleep last night. /facepalm
(2011-07-03, 03:42 AM)Jordan L. Wrote: [ -> ]Ughh, I don't understand why this is so difficult. This usually works the first time with no hassles in all the themes I've ever made. Maybe it's because I'm over-looking it due to 3 hours of sleep last night. /facepalm

Well, I greatly appreciate the help, feel free to go to bed and stop helping me at anytime, I appreciate the help you've given. Oh and your themes are fantastic, I've followed your work for awhile now, I actually want to start getting into stuff like that, but as you can see, my skills aren't up to par. Anyways, I'll continue playing around with it and see what happens. Thanks Jordan!
Pages: 1 2