MyBB Community Forums

Full Version: How to add a new icon in Board stats, who's online + adding avatar in welcomeblock
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I just want to add an image before the info in boardstats and the who's online thingy. How can I do such thing? (attachment bellow, but this also applies for the whos online box)

And the second question is, how can I add a RESIZED avatar in the welcomeblock? (this is my welcomeblock: http://community.mybboard.net/attachment.php?aid=13705 just look at the welcomeblock, that was a screenshot for another thread). I want the avatar to be RESIZED so it fits the welcomeblock. And maybe 2 or 3px away from the border.

Regards. (wow I've made lots of threads in these days o_O)
Go into your Admin Cp>>Templates and Style>>Templates>>**Theme**>>Index Template>>index_boardstats.
Find:
<td class="thead">
Replace with:
<td class="thead" colspan="2">
Find:
	<td class="tfoot" style="text-align: right">
Replace with:
	<td class="tfoot" style="text-align: right" colspan="2">
Save and return to listing.

Open up index_whosonline.
Find:
<td class="tcat">
Replace with:
<td class="tcat" colspan="2">
Find:
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
Replace with:
<td class="trow2" width="10%"><span class="smalltext">Text or image here.</span></td>
<td class="trow1" width="90%"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
Save and return to listing.

Open up index_stats.
Find:
<td class="tcat">
Replace with:
<td class="tcat" colspan="2">
Find:
<td class="trow1"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
Replace with:
<td class="trow2" colspan=1" width="10%"><span class="smalltext">Text or image here.</span></td>
<td class="trow1" colspan="1" width="90%"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
Save and return to listing.

That should do it.
In the codes, replace 'Text or image here.' with the text or image you want Wink

If you have any problems, let me know.

As for the avatar in the welcomeblock, I tried eveything I could think of and couldnt get it to work =/
Thank you. Works perfectly.
Cheers Josh. Does anyone know the avatar thingy? I've seen themes with this before!
No problem Wink
I wish I could help you with the avatar thing...
But I tried all I could think of and could do it =/

EDIT: Ok I figured it out. Where in the welcomeblock do you want it and I will try to edit the welcomeblock to make it look good Wink
And also what size do you want the resized image to be?
Ok, open up 'header_welcomeblock_member' and if you have everything at default, replace it all with this:
<table width="100%"  border="0">
  <tr>
    <td class="trow1" width="5%" valign="top"><img src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}" title="{$mybb->user['username']}" width="50" height="50" /></td>
    <td class="trow2" width="95%" valign="top">	<span style="float:right;">{$lang->welcome_current_time}</span>
		{$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$modcplink}{$admincplink} &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>)<br />
				<span class="links">
					<a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);">{$lang->welcome_open_buddy_list}</a>
				</span>
				<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}</td>
  </tr>
</table>

Tell me if you have any problems Wink
thanks with this tut.. Big Grin ive been looking for this Big Grin
Nevermind.