MyBB Community Forums

Full Version: Sidebar Boxes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm wondering what function these sidebar boxes have on my webpage.

It says 'Box content'.

Webpage: www.1operators.com

Login: test, pass: test123

Could there be a possibility to put a teamspeak widget there?

Regards,

Vivi
you can add any html code or a plugin function to be displayed there......
I have created this script for a Teamspeak interface on the website, would it be able to put in the boxes? And how?

<script language="javascript" type="text/javascript" charset="utf-8" src="http://monitor.ts3monitor.com/?t=script&i=ts.1operators.com&p=9987&q=10011&c=&si=16&s=12"></script><noscript>Activez le javascript dans votre navigateur web pour afficher le moniteur ou visitez <strong>ts3monitor.com</strong></noscript>
yes you can... just add the script inside the first block in the corresponding template... you can provide a temp. admin account, i you want me to check...
I would love to and although you have a good reputation, I'd rather not take the risk, hope you understand.

I can tell you what you need to know, just ask what you need.
Index template

Quote:<div class="tborder">
<div class="thead"><strong>Box title</strong></div>
<div class="tcat cell-padding">Box description</div>
<div class="trow1 cell-padding" align="center">

<img src="images/bf//box_content.png" alt="content">


</div>
</div>

That's the sidebar. You need to edit Title, description and the content it's the <img> tag.
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$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>

          

      <div class="forumoutline">

                 <div class="forum">

                {$forums}


<div align="center">

    <a href="{$mybb->settings['bburl']}/misc.php?action=markread&amp;my_post_key={$mybb->post_code}">{$lang->markread}</a> | <a href="{$mybb->settings['bburl']}/showteam.php">{$lang->forumteam}</a>

</div>
<br />
                              {myshoutbox_abcd}
{$boardstats}

                 </div>

      </div>




<div id="sidebar">

   




<!--First block -->

<div class="tborder">
<div class="thead"><strong>Teamspeak</strong></div>
<div class="tcat cell-padding">Teamspeak</div>
<div class="trow1 cell-padding" align="center">

<img src="{$theme['imgdir']}/box_content.png" alt="<script language="javascript" type="text/javascript" charset="utf-8" src="http://monitor.ts3monitor.com/?t=script&i=ts.1operators.com&p=9987&q=10011&c=&si=16&s=12"></script><noscript>Activez le javascript dans votre navigateur web pour afficher le moniteur ou visitez <strong>ts3monitor.com</strong></noscript>" />


</div>
</div>


<!--First block-->

<br />

<!--Second block -->
<div class="tborder">
<div class="thead"><strong>Box title</strong></div>
<div class="tcat cell-padding">Box description</div>
<div class="trow1 cell-padding" align="center">

<img src="{$theme['imgdir']}/box_content.png" alt="content" />

</div>
</div>

<!--Second block-->



</div>


</div>


	





<br class="clear" />

{$footer}
</body>
</html>

This is the code I'm seeing there.

I've sort of edited it like this, what do you think?

Thanks in advance,

Vivi
you need to remove the image from the content before adding your code...... like this.....


<!--First block -->


<div class="tborder">
<div class="thead"><strong>Teamspeak</strong></div>
<div class="tcat cell-padding">Teamspeak</div>
<div class="trow1 cell-padding" align="center">

<script language="javascript" type="text/javascript" charset="utf-8" src="http://monitor.ts3monitor.com/?t=script&i=ts.1operators.com&p=9987&q=10011&c=&si=16&s=12"></script><noscript>Activez le javascript dans votre navigateur web pour afficher le moniteur ou visitez <strong>ts3monitor.com</strong></noscript>



</div>
</div>

<!--First block-->
Thank you it's working!

Only now it seems that the anti flood has banned it from the forum, is there any way I can put it on the whitelist?

Thanks,

Vivi

Error 3329 - Anti-flood enabled on your server.
Our bot can not access your server to collect information needed for the display of your monitor ...
More informations on ts3monitor.com

That's the error message.

Seems to happen when I refresh too many times: error id=3331 msg=flood ban
Alright , as i see that your looking for sidebars and i dont know if i understood right , but here is what your going to do

1. ACP ==> Templates & Styles ==> Templates ==> Your Theme ==> Index page templates
Alright as your in the index template scroll down untill you find {$forums} , replace it with

<div class="forum" style="float: left; width: 80%;">{$forums}</div>

and above put that code

<div class="side" style="float: right; width: 19%">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

<tr>
   <td class="thead">
        <b>Box Title</b>
   </td>
</tr>

<tr>
   <td class="trow2">
<div align=center>
Box Content
</div>
   </td>
</tr>
</table>
</div>

So it will appear like this
<div class="side" style="float: right; width: 19%">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

<tr>
   <td class="thead">
        <b>Box Title</b>
   </td>
</tr>

<tr>
   <td class="trow2">
<div align=center>
Box Content
</div>
   </td>
</tr>
</table>
</div>
<div class="forum" style="float: left; width: 80%;">{$forums}</div>


If i understood you right , that's what im using http://nc-gaming.gegahost.net/forums , i coded it for my forums and it worked

Have a nice day
Pages: 1 2