UBB.Dev
Posted By: AllenAyres Compact TBT/TBB - 09/01/2003 8:51 AM
Name: Compact TBT/TBB

Description: Removes one layer of table tags from all sections of your forums that are surrounded by the $tbt/$tbb tags - this will decrease bandwidth and speedup rendering of the pages a bit. smile

Link: Click Here

Demo: check here

Requirement: UBBâ„¢ 6.5

Instructions: Edit file as instructed, upload and clear cache. This has been tested on the style setting with table borders around all tables, your setting might need to be adjusted smile
Posted By: Charles Re: Compact TBT/TBB - 09/01/2003 9:21 AM
nice Allen smile will add this to Kompact when I have a little time smile
Posted By: Gizmo Re: Compact TBT/TBB - 09/02/2003 1:45 AM
Good work allen, I'll be installing it tonight smile
Posted By: AllenAyres Re: Compact TBT/TBB - 09/03/2003 2:03 AM
merci smile
Posted By: 1QuickSI Re: Compact TBT/TBB - 09/03/2003 7:14 PM
Installed on 6.1.0.4 Seems these lines have not been altered since back in the day and I have not altered them either smile

Thank you Allen!
Posted By: Ian Spence Re: Compact TBT/TBB - 09/03/2003 11:35 PM
Tested and works fine on 6.6 also smile
Posted By: 1QuickSI Re: Compact TBT/TBB - 09/04/2003 1:16 AM
Are there any other tables that can be modified like this? Or was there a modification made that lists them?
Posted By: AllenAyres Re: Compact TBT/TBB - 09/04/2003 1:36 AM
This is the main one... tbt/tbb is used where possible to maintain uniformity of design throughout. If I see something, I'll post it, if you do, let me know smile
Posted By: Ian Spence Re: Compact TBT/TBB - 09/04/2003 2:01 AM
anyone using the quick reply hack might have to do a little tweaking.
Posted By: havoq Re: Compact TBT/TBB - 09/04/2003 2:58 AM
ya i noticed weird Al, I dont get what kinda of tweaking though... hmmm
Posted By: Ian Spence Re: Compact TBT/TBB - 09/04/2003 3:04 AM
give this a try, should work, if not, I'm sorry.
Posted By: havoq Re: Compact TBT/TBB - 09/04/2003 4:08 AM
where the heck is that code? its not in public_common
Posted By: Ian Spence Re: Compact TBT/TBB - 09/04/2003 5:04 AM
public_topic_page.pl

it's the quick reply code
Posted By: AllenAyres Re: Compact TBT/TBB - 02/14/2004 3:33 AM
works on 6.7 too smile
Posted By: Charles Re: Compact TBT/TBB - 02/14/2004 8:51 PM
Quote
Originally posted by AllenAyres:

works on 6.7 too smile
sure? I had to remove iz from Kompact as it gave me a huge perl error
Posted By: AllenAyres Re: Compact TBT/TBB - 02/15/2004 12:41 AM
Are you serious? This is just a css/html change, there shouldn't be anything to do with perl in this smile
Posted By: Charles Re: Compact TBT/TBB - 02/15/2004 12:43 AM
deadly, reverting to normal tbt, tbb removed the error.
Posted By: AllenAyres Re: Compact TBT/TBB - 02/15/2004 12:49 AM
heheh... had to be something different... this has nothing to do with perl smile It's just a stylistic change smile
Posted By: Ian Spence Re: Compact TBT/TBB - 02/15/2004 12:52 AM
tested on my test board, works fine smile
Posted By: Painfool Re: Compact TBT/TBB - 05/16/2004 7:10 PM
Seemed to bust up my Directory Listing Page ? Everything else looked great?

The cell the Directory search and CI windows go had the background changed to the border color (black) ... the search table was misaligned and and copywrite info was shifted right as well ?

Reverted back and problem went away.
Posted By: Ian Spence Re: Compact TBT/TBB - 05/16/2004 10:26 PM
This can only be fixed by editing public_ci_members.pl. I'll try to post the fix later tonight
Posted By: Painfool Re: Compact TBT/TBB - 05/17/2004 3:37 AM
ok great .. because I hacked up on the public_directory.pl until my fingers bled and it never got right smile
Posted By: Painfool Re: Compact TBT/TBB - 05/17/2004 12:26 PM
Bump for Ian smile
Posted By: Ian Spence Re: Compact TBT/TBB - 05/17/2004 3:26 PM
In public_ci_members.pl
FIND: (3 times)
Code
	my $TBT_ci = qq(
<table border="0" cellpadding="$table_borders[0]" cellspacing="$table_borders[1]" width="$civar->{args}->{html_width}" align="center">
<tr bgcolor="$vars_style{TableBorderColor}"><td>
<table border="0" width="100%" cellpadding="$table_borders[2]" cellspacing="$table_borders[3]">
);
REPLACE WITH:
Code
	my $TBT_ci = qq(
<table bgcolor="$vars_style{TableBorderColor}" style="border: $table_borders[0]px $vars_style{TableBorderColor} solid" cellpadding="$table_borders[2]" cellspacing="$table_borders[3]" width="$civar->{args}->{html_width}" align="center">
);
Then, in public_common.pl
FIND:
Code
	$TBT_Popup  = qq(
<center><table border="0" cellpadding="$table_borders[0]" cellspacing="$table_borders[1]" width="98%" align="center">
<tr bgcolor="$vars_style{TableBorderColor}"><td>
<table border="0" width="100%" cellpadding="$table_borders[2]" cellspacing="$table_borders[3]">
);
REPLACE WITH:
Code
	$TBT_Popup  = qq(
<center><table bgcolor="$vars_style{TableBorderColor}" style="border: $table_borders[0]px $vars_style{TableBorderColor} solid" cellpadding="$table_borders[2]" cellspacing="$table_borders[3]" width="98%" align="center">
);
Then,
FIND:
Code
	return qq(
<table border="0" cellpadding="$table_borders[0]" cellspacing="$table_borders[1]" width="$_[0]" align="$_[1]">
<tr bgcolor="$vars_style{TableBorderColor}"><td>
<table border="0" width="100%" cellpadding="$table_borders[2]" cellspacing="$table_borders[3]">
);
REPLACE WITH:
Code
	return qq(
<table bgcolor="$vars_style{TableBorderColor}" style="border: $table_borders[0]px $vars_style{TableBorderColor} solid" cellpadding="$table_borders[2]" cellspacing="$table_borders[3]" width="$_[0]" align="$_[1]">
);
Posted By: Painfool Re: Compact TBT/TBB - 05/17/2004 3:52 PM
"FLAWLESS VICTORY!"

Thank you guys!
Posted By: Painfool Re: Compact TBT/TBB - 05/22/2004 1:30 AM
Note: You will need to apply the fix above to all three of the CI templates. smile
© UBB.Developers