php forum
php mysql forum
php mysql smarty
 
Topic Options
#115974 - 03/16/06 02:05 PM reducing white space on category only page
Wendy Anderson Offline
Junior Member

Registered: 06/27/05
Posts: 17

   reducing white space on category only page to Del.icio.us Add to del.icio.us
  Digg reducing white space on category only page Digg it
Hi all,

I would like to reduce the huge white space on my "categories only" intro page. The excess white space is in the middle of the page.

Looks to be a nested table controlled by the value $TBT (table top, from public_common.pl) and is set at 100%. $TBT also controls other pages and cannot be fiddled with... I would suppose.

How can I reduce the header strip and the category links + forum totals row to 80%? Can I just add a new invisible cell on either end of the row to float the table closer to the center? Should I create a left and right sidebar beginning in this middle section?

The top part of the page is just fine. The bottom part only has the copywrite stuff which is already centered. Version Classic 6.7.2. Much thanks in advance.

From public_forum_summary.pl :

sub Cat_Row {
# Fixed for strict - 20030426
# standalone category row

my($color, $forum_count, $catarray) = @_;

my $desc = $catarray->[5] ? qq~ <font size="$vars_style{FDTextSize}" face="$vars_style{FontFace}" color="$vars_style{TextColor}">
$catarray->[5]</font>~ : "";

return qq~
<tr bgcolor="$color">
<td align="left">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
<a href="$ULTIMATEBB{"category=$catarray->[2]"}"><b>$catarray->[1]</b></a></font>
$desc
</td>
<td align="center">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>$forum_count</b></font>
</td></tr>
~;
} # end Cat_Row

Top
#115975 - 03/16/06 06:50 PM Re: reducing white space on category only page
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Because of the use of TBT and TBB, as you noted, it becomes hard to make the table less than normal width. What you could do instead is fill the table with more information.

Could we get the URL to your site? That'll help us figure out what could be done with the page...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#115976 - 03/17/06 08:45 AM Re: reducing white space on category only page
Wendy Anderson Offline
Junior Member

Registered: 06/27/05
Posts: 17
Hi Charles,

Thank you for looking at this. Others might find the solution to be of interest, too.

Screens and displays are larger than ever making this white space more prominent. Also, I want the main page to have a different feel than the other pages with their long lines of links and other data.

got:
http://www.housechurch.org/cgi-bin/ubbcgi_hc/ultimatebb.cgi

need:
http://www.housechurch.org/test.html

Top
#115977 - 03/17/06 04:35 PM Re: reducing white space on category only page
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Darn. See, I was hoping I'd be able to suggest something obvious to fill up the space, like adding category descriptions, but you're already doing that.

I don't have a copy of the code with me, I'll check back in later...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#115978 - 03/17/06 04:57 PM Re: reducing white space on category only page
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25434
Loc: Texas
You can change the top TBT to the actual code it spits out and reduce the width to 80% there. Would be found in public_forum_summary.pl

I don't have a copy of the code with me, I'll check back in later... smile We need a way of editing templates like threads has.
_________________________
- Allen wavey
- What Drives You?

Top
#115979 - 03/17/06 07:01 PM Re: reducing white space on category only page
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Unfortunately, it isn't that easy. The same template routine (PageTop in public_forum_summary) is used for both category-only mode and normal mode.

So, the change is going to be a little more complex.

First, remove the $TBT from PageTop, around line 55.

Then go find sub Cat_Table_Top, and just insert the modified TBT value in the HTML that it returns.

Finally, go find sub Normal_Table_Top, and insert a $TBT in the very first HTML block (my $Top = qq~...)
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#115980 - 03/18/06 10:36 AM Re: reducing white space on category only page
Wendy Anderson Offline
Junior Member

Registered: 06/27/05
Posts: 17
Charles and Allen,

That code was exactly what I was looking for. Thank you for caring about what might appear as something insignificant.

UBB's fantastic support make it a fantastic product. Again, thanks so very much for all you do to keep "classic" alive!

Top


Moderator:  Gizmo, tackaberry 
Who's Online
0 Registered (), 22 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 6
Chris Bale 4
Gizmo 4
FREAK1 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks