Author Topic: Adding a sidebar  (Read 7040 times)

0 Members and 1 Guest are viewing this topic.

Offline stdio

  • Newbie
  • *
  • Posts: 41
    • View Profile
Adding a sidebar
« on: March 05, 2010, 12:45:59 PM »
Hello,

I am using the default_full template. I would like to add a right sidebar. By sidebar I mean a place to add stuff. For example I would like to display some Site Stats and maybe add some advertisments below the site stats. Something like the userbox in the left, but I would like to add some things in the right. Can anyone advise me how can I do this? I've seen sites that have modified templates but I don't know where to start. Please advise.

Thank you very much!

Rembrandt

  • Guest
Re: Adding a sidebar
« Reply #1 on: March 06, 2010, 10:22:18 AM »
Hi!

an example for left side under the userbox:

search in your home.htm:
Code: [Select]
<tr>
  <td align="center" class="row1">{user_box}</td>
</tr>
below:
Code: [Select]
<tr>
  <td align="center" class="row1">{whos_online}</td>
</tr>


a example for a column for the right side:

search in your home.html:
Code: [Select]
<td width="19" valign="top" nowrap><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
below:
Code: [Select]
<!-- Start rigth box -->              
<td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
<td width="150" class="row2" valign="top">  
<table width="150" border="0" cellspacing="0" cellpadding="0">
        
<tr>
<td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
</tr>
                    
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
                  
<tr>
<td align="center" class="row1">{user_box}</td>
</tr>
 
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
 
<tr>
<td align="center" class="row1">{whos_online}</td>
</tr>
                
</table>
</td>
  <!-- END rigth box -->

mfg Andi

Offline stdio

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Adding a sidebar
« Reply #2 on: March 06, 2010, 10:58:16 AM »
Hi!

Thank you Andi! Awesome as usual! Works perfectly! :)

Kinds regards.

Offline stdio

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Adding a sidebar
« Reply #3 on: March 08, 2010, 03:23:43 PM »
Andi,

I tried adding the "site stats" to details.html but it's not working. Nothing is being displayed. The same code in home.html works perfectly. You know what is wrong?

Thanks!

LE: I found it. include/stats.php needed to be added in details.php. :) Works great now.

Offline uploadeur

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Adding a sidebar
« Reply #4 on: March 30, 2011, 12:19:06 PM »
Working perfectly Andi but i want to do it in an other lane, this is not a real sidebar.