Previous Thread
Next Thread
Print Thread
Rate Thread
#115598 09/01/2003 1:51 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Sponsored Links
#115599 09/01/2003 2:21 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
nice Allen smile will add this to Kompact when I have a little time smile


Do you believe in love at first sight,
or should I walk by again?
#115600 09/01/2003 6:45 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Good work allen, I'll be installing it tonight smile


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#115601 09/02/2003 7:03 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
merci smile


- Allen wavey
- What Drives You?
#115602 09/03/2003 12:14 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
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!

Sponsored Links
#115603 09/03/2003 4:35 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Tested and works fine on 6.6 also smile

#115604 09/03/2003 6:16 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Are there any other tables that can be modified like this? Or was there a modification made that lists them?

#115605 09/03/2003 6:36 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
#115606 09/03/2003 7:01 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
anyone using the quick reply hack might have to do a little tweaking.

#115607 09/03/2003 7:58 PM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
ya i noticed weird Al, I dont get what kinda of tweaking though... hmmm

Sponsored Links
#115608 09/03/2003 8:04 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
give this a try, should work, if not, I'm sorry.

#115609 09/03/2003 9:08 PM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
where the heck is that code? its not in public_common

#115610 09/03/2003 10:04 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
public_topic_page.pl

it's the quick reply code

#115611 02/13/2004 8:33 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
works on 6.7 too smile


- Allen wavey
- What Drives You?
#115612 02/14/2004 1:51 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
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


Do you believe in love at first sight,
or should I walk by again?
#115613 02/14/2004 5:41 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Are you serious? This is just a css/html change, there shouldn't be anything to do with perl in this smile


- Allen wavey
- What Drives You?
#115614 02/14/2004 5:43 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
deadly, reverting to normal tbt, tbb removed the error.


Do you believe in love at first sight,
or should I walk by again?
#115615 02/14/2004 5:49 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
heheh... had to be something different... this has nothing to do with perl smile It's just a stylistic change smile


- Allen wavey
- What Drives You?
#115616 02/14/2004 5:52 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
tested on my test board, works fine smile

#115617 05/16/2004 12:10 PM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
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.

#115618 05/16/2004 3:26 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
This can only be fixed by editing public_ci_members.pl. I'll try to post the fix later tonight

#115619 05/16/2004 8:37 PM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
ok great .. because I hacked up on the public_directory.pl until my fingers bled and it never got right smile

#115620 05/17/2004 5:26 AM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Bump for Ian smile

#115621 05/17/2004 8:26 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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]">
);

#115622 05/17/2004 8:52 AM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
"FLAWLESS VICTORY!"

Thank you guys!

#115623 05/21/2004 6:30 PM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Note: You will need to apply the fix above to all three of the CI templates. smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)