MyBB Community Forums

Full Version: Usergroup Legend not showing properly?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://puu.sh/1pBqD

It looks rather crammed.

However, when I put a <br> in the index_boardstats template, between Online Today and Usergroup Legend, it ends up making a space here:

http://i.imgur.com/YaREY.png

Instead of where the space should appear.

My index_boardstats template:

<div class="bstat" >
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="0" class="tborder">
<thead>
<tr>
<td class="cell">
<div class="rmain"></div>
<div><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}
{$ugl_userlegend}
{$forumstats}
</tbody>
</table>
</div>
Go to your index_boardstats template.

Find:
{$whosonline}

Add AFTER:
<td colspan="2" class="tcat"><span class="smalltext"><strong>Group Legend</strong></span></td>
</tr>
    <td class="trow1" colspan="2" valign="top" align="middle"><span class="smalltext">

//Your Group Legend info

</span></td>
</tr>


Tell me if that works.
In the place where you put "//Your Group Legend Info"

Do you want me to put the "{$ugl_userlegend}"?
(2012-11-13, 01:31 AM)TheAuthoringBay Wrote: [ -> ]In the place where you put "//Your Group Legend Info"

Do you want me to put the "{$ugl_userlegend}"?

That should do it yes.
I put the code you gave me under:

{$online_today}

Otherwise it would come between Who's Online and Online Today. Well it does look better but not quite right.

http://puu.sh/1pBWz

Can I make the "Group Legend" title have the same orange bar for the title as the rest of the stat titles?

The template now:

<div class="bstat" >
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="0" class="tborder">
<thead>
<tr>
<td class="cell">
<div class="rmain"></div>
<div><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}
<td colspan="2" class="tcat"><span class="smalltext"><strong>Group Legend</strong></span></td>
</tr>
    <td class="trow1" colspan="2" valign="top" align="middle"><span class="smalltext">

{$ugl_userlegend}

</span></td>
</tr> 
{$forumstats}
</tbody>
</table>
</div>

Got this fixed. Repped. Thanks.
Just replace:

<td colspan="2" class="tcat"><span class="smalltext"><strong>Group Legend</strong></span></td>

With:

<td class="thead" colspan="2">
<div>Group Legend</div>

Try that out see if that works
I realized this plugin wasn't right for my needs anyway so I installed View Groups 1.5 by Pirata Nervo, but it's not showing up at all when I activate it.

My new thread: http://community.mybb.com/thread-129272.html