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: 25411
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 
Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
0 Registered (), 21 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks