php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#115850 - 12/13/04 04:35 PM Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
How do I create a sidebar? Is there code I need to add into a certain field in the template for the one I use?

I'd like to have a sidebar like the one to the right, with a few sponsor ad banners, and maybe some content islands.

Thanks for understanding my stupidity smile
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115851 - 12/13/04 05:18 PM Re: Sidebar owns me
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
A sidebar is simply a table added to the style header and footer, with the UBB being in the table, EX:

Header:
Code:
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="Table">
  <tr>
    <td width="50%" id="UBB">
Footer:
Code:
</td>
    <td width="50%" id="SideBar">&nbsp;</td>
  </tr>
</table>
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115852 - 12/13/04 05:19 PM Re: Sidebar owns me
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Also, here at UBB there is a table within a table, you'll need to adjust the html to how you would like it to display.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115853 - 12/13/04 06:01 PM Re: Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
Thanks Gizzy. I'll give it a try and see how it works smile
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115854 - 12/13/04 07:38 PM Re: Sidebar owns me
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Not a problem, I've made a few differant ones wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115855 - 12/13/04 10:16 PM Re: Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
Yeah, this is hosing me. I plugged in the code, and there's a big blank space on the side of the board. But wherever I try to add any HTML code, it appears on the top or bottom of the board itself.

I know this sounds confusing, but I've never dealt with something this simple before laugh

All I want is a sidebar with some content islands and some sponsor pics.
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115856 - 12/13/04 11:04 PM Re: Sidebar owns me
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
At least you are getting something on the side... Mine appears above the forums in the section with logo or at the actual head and foot of the page. Can't for the life of me get it on the side. Searched the forums and used all the codes provided as well as the code in the database outlining left and right bars. Sigh...
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#115857 - 12/13/04 11:28 PM Re: Sidebar owns me
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
show us the page you tried it on, maybe it's a simple html goof

Top
#115858 - 12/14/04 11:44 AM Re: Sidebar owns me
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
start here: http://validator.w3.org - 99% chance you'll find the error there smile
_________________________
- Allen wavey
- What Drives You?

Top
#115859 - 12/14/04 12:06 PM Re: Sidebar owns me
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
that's actually how I found the error laugh Twas one too many closing tags inside the forums, made the browsers think the table was done before it got to the sidebar.

Top
#115860 - 12/14/04 05:45 PM Re: Sidebar owns me
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
<snicker> all I have to say is it worked as a table just fine wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115861 - 12/15/04 12:06 AM Re: Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
I added the code like you showed above, Gizzy. Where in the hell do I add the HTML so that is appears within the sidebar space and not above or below the UBB itself? laugh
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115862 - 12/15/04 12:49 AM Re: Sidebar owns me
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
Ian thank you for finding my problem smile

In your header section:

Code:
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="SideBars">
<tr>
<!-- Disable Left Side Bar
<td width="15%">
<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center" id="Left Sidebar">
<tr><td width="100%">
Left Sidebar</td></tr>
</table></td> -->
<td width="70%">
To enable the left side bar remove the remarks

In your footer section:

Code:
</td><td width="10%">
<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center" id="Right Sidebar">
<tr><td width="100%">
Right Sidebar</td></tr>
</table></td></tr></table>
To add your code just add/replace "Right SideBar" and or "Left SideBar" text with whatever you want. To adjust the physical size in the footer section change 10% to what ever you want.

If you want an example of what was done here jsut right click view text and search for "<!--start footer-->" and youc an see how/what was added.
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#115863 - 12/16/04 12:45 AM Re: Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
Ok, getting closer. I have the sidebar designed. However, it keeps centering along the side of the forums, instead of sitting near the top where the forum area field is.

How do I keep this thing from balancing in the middle of the forums along the side? I'd like it more near the top smile
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115864 - 12/16/04 09:49 AM Re: Sidebar owns me
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
add valign="top" to the td for the sidebar

Top
#115865 - 12/16/04 03:35 PM Re: Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
That worked well. Now, the last problem I'm having is people saying they have to scroll their screen over to see the side bar. What's the remedy for this?

I think after this, I'm done and retiring to Florida laugh
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115866 - 12/16/04 06:24 PM Re: Sidebar owns me
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
When building a site it is nice to know about your users. The more you know the better. Not on a personal level but in terms of how they are viewing your site. This is only a small piece of what you should track smile I use AWStats for mine. This allows me to know the actual screen resolution thus I can build the site to the bulk of the general population.

You might want to try reducing the side bar(s) to 10% I think the code on the first page was 15%? Are you using the left side bar as well as the right?

What I would like to see someday is somehow dynamicaly display a site based on the users resolution.
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#115867 - 12/17/04 03:22 AM Re: Sidebar owns me
DarkFormula Offline
Member

Registered: 03/06/02
Posts: 74
Loc: Ohio
I've actually decided to use a top-oriented banner system. The sidebar was nice looking, but too many people *****ed about it smile

Thanks everyone, I have learned some valuable experience for future endeavors wink
_________________________
1998 Firebird Formula with a blower and then some...

Top
#115868 - 12/17/04 09:30 AM Re: Sidebar owns me
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
Ok here is something interesting and hopefully Ian or someone with more knowledge will chime in. This would deal more with ColorForums and useing CSS to center the site may or may not help or even work.

In CSS file make sure to add "text-align: center;" and the new container entry

Code:
body {
  text-align: center;
  background: #fff;
  color: #000;
  margin: 0;
}

#container {
  width: 758px;
  border: 1px solid #666;
  background: #fff;
  color: #000;
  margin: 0;
  text-align: left;
}
In the header section add:

Code:
<div id="container">
In the footer section add:
Code:
</div>
Any instance of:

Code:
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
Whould be replaced with:

Code:
<body>
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#115869 - 12/17/04 06:33 PM Re: Sidebar owns me
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I replace:
Code:
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
With:
Code:
body {
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
}
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115870 - 12/17/04 07:30 PM Re: Sidebar owns me
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
or

Code:
body {
  margin: 0;
}

Top
#115871 - 12/18/04 02:21 AM Re: Sidebar owns me
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
'eh I guess that works too, some people like to adjust the left/right margin withough having to think "What is that tag" wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
Page 1 of 2 1 2 >



Moderator:  Gizmo, tackaberry 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks