MyBB Support

Problem with sidebar :(

Submitted by redd, , Thread ID: 22329

Thread Closed
11-07-2016, 02:41 AM
#1
I having a problem with my sidebar.

I added this team online plugin but i can't seem to get it in my sidebar.

[Image: f94cf615899f46e348d6d3276a07093c.png]


i added the variable in my sidebar div{$teamonline} but its showing like this.

Code for{$teamonline}

Code:
<table border="0" cellspacing="" cellpadding="10" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<strong>{$lang->title}</strong><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpmisc']}.png" id="teamonline_img" class="expander" alt="[-]" title="[-]" /></div>
</td>
</tr>
</thead>
<tbody id="teamonline_e" style="">
{$teamonline_row}
{$teamonline_no}
</tbody>
<tr><td class="{$trowbg}" colspan="2">{$lang->online} {$membercount}</td></tr><tr><td class="{$trowbg}" colspan="2">{$lang->invisible} {$invisible}</td></tr></table> <br /></div>

Code for Teamonline_Row
Code:
<tr><td class="{$trowbg}"><img src="{$online['avatar']}" style="max-width: 35px; max-height: 35px; text-align:center;" /></td>
<td class="{$trowbg}" style="width: 100%;"> {$online['profilelink']}<br /><font color="{$mybb->settings['teamonline_group_color']}">{$online['groupname']}</font>
</td></tr>

How can i get this working? Please help!

RE: Problem with sidebar :(

#2
Use css?
[Image: InZ3hGx.png]

RE: Problem with sidebar :(

OP
#3
11-07-2016, 02:56 AM
Faded Wrote:
Use css?

I tried but without luck ::(hats why i asking hope someone could help me

RE: Problem with sidebar :(

#4
11-07-2016, 02:56 AM
redd Wrote:
11-07-2016, 02:56 AM
Faded Wrote:
Use css?

I tried but without luck ::(hats why i asking hope someone could help me

Well it should probably be floating right, and have some kind of width.
[Image: InZ3hGx.png]

RE: Problem with sidebar :(

#5
Paste the index template here :3 ?
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Problem with sidebar :(

OP
This post was last modified: 11-07-2016, 12:05 PM by redd
#6
11-07-2016, 07:20 AM
linkzy Wrote:
Paste the index template here :3 ?

Here is the index code.

Code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}{$recentthread_headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}


<div style="width: 74%; float: left;">{$forums}</div>
<div id="sidebar">
<table border="0" cellspacing="0" cellpadding="10" class="tborder">
<tbody>
<tr>
<td class="shead" colspan="4" align="left"><strong>Statistics</strong></td>
</tr>
<tr>
<td class="trow1 sidebar" style="padding:10px;">
<div class="float_left">Total Posts:</div><div class="float_right">{$stats['numposts']}</div>
</td>

</tr>
<tr>
<td class="trow1 sidebar" style="padding:10px;">
<div class="float_left">Total Threads:</div><div class="float_right">{$stats['numthreads']}</div>
</td>

</tr>
<tr>
<td class="trow1 sidebar" style="padding:10px;">
<div class="float_left">Total Members:</div><div class="float_right">{$stats['numusers']}</div>
</td>

</tr>
<tr>
<td class="trow1 sidebar" style="padding:10px;">
<div class="float_left">Latest User:</div><div class="float_right">{$newestmember}</div>
</td>
</tr>
<tr>
{$recentthreadtable}
</tr>

{$teamonline}

</tbody></table>
</div>
<br>

{$boardstats}

</body>
</html>

11-07-2016, 02:57 AM
Faded Wrote:
11-07-2016, 02:56 AM
redd Wrote:
11-07-2016, 02:56 AM
Faded Wrote:
Use css?

I tried but without luck ::(hats why i asking hope someone could help me

Well it should probably be floating right, and have some kind of width.

And ye i know but i tried it with element inspect but its using the same width as the forums. So if i change 100% to whatever would be good it changes the complete width

RE: Problem with sidebar :(

#7
Send me a link to your site + account.

RE: Problem with sidebar :(

OP
#8
11-07-2016, 01:04 PM
Aoki Wrote:
Send me a link to your site + account.

I will hit you up on skype!

Users browsing this thread: 3 Guest(s)