Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
#38767 11/04/2000 10:15 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Sometimes you wonder to yourself:
"Is it my server, or the ubb"

Answer: Sometimes the ubb, unless your server blows.

This little (actually, large) code modification to ubb_library2.pl, will load the threads 30% faster on most servers, and on some, up to 50% faster!!

Its in beta for alot of reasons.
It is a large code change, i cant be held responsible for any problems that may severely damage your ubb topics.
ALWAYS MAKE BACKUPS OF HACKED FILES!

!Infopop note!: If this code modification is used in any upcoming version of ubb, I request full credit and an infopop mouse pad. [Linked Image] (Inside joke)

NOTE: This code is far from done. I will not release it now. I am working on making a mod for forumdisplay and a similar mod to Ultimate.cgi. I'll keep you updated.

Get it here. http://platform-z.hypermart.net/thread.txt
------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Sponsored Links
#38768 11/05/2000 12:34 PM
Joined: Sep 2000
Posts: 67
Member
Member
Offline
Joined: Sep 2000
Posts: 67
Our server doesn't technically blow.. but anything that speeds things up is a verah good thing...
You have piqued my interest... [Linked Image]
Yet again, you tease with the goodies, then say "tomorrow"... lol.. slightly evil you are. [Linked Image]
Did you want an official infopop mug with that mousepad? [Linked Image]

------------------
My Site
The only difference between a fool and an eccentric are your beliefs in their ideas.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
I love coffee. I could use a new mug.

I am finishing some tweaks to this now.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Oct 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 3
Bless you man, will it be compaible with 5.45c?

------------------
"Adventure, Excitement, A Jedi craves not these things." -Silent Bob.


"Adventure, Excitement, A Jedi craves not these things." -Silent Bob.
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Hot damn, i gots an idea.

Yes, it'll work with most versions from 5.40-5.47a.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
How about 5.39?

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
NBA, you can try it. It may work.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Oct 2000
Posts: 48
Member
Member
Offline
Joined: Oct 2000
Posts: 48
I cant wait till you release it MasterMind.

------------------
www.gamerzparadize.com
*ITS HERE*
Check it out!

#38775 11/06/2000 12:21 AM
Joined: Sep 2000
Posts: 58
Member
Member
Offline
Joined: Sep 2000
Posts: 58
Yes,,I'm very interested in this hack. When do you think you will release it?


Love life, feel life,,be life.
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Took longer, but i made ALOT of process.

Thanks to Mark Badalato, who helped me with alot of this. I did some small code crunches to it and should dramatically increase CPU time and loading time.

Download it here! http://platform-z.hypermart.net/thread.txt

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Sponsored Links
Joined: Sep 2000
Posts: 58
Member
Member
Offline
Joined: Sep 2000
Posts: 58
humm,,it didn't work on mine. Line errors.


Love life, feel life,,be life.
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Please give me a link

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
What are we supposed to do with this?

Quote
quote:

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
That line appears a few times in ubb. Replace it all times.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
Quote
quote:
to

Quote
quote:
It may also be worth checking if it's faster to use

Quote
quote:
This one certainly is cleaner code.

To be honest once I got my hands on the UBB source I was less than impressed by the code quality... far less than impressed.

------------------

print pack "b*",join '',map '0'x$_.'1',split m||,'112111001020031006240200'.
'10100010310041011202200661112022003010651014010301011011202200';

This message has been edited by Screamer on November 06, 2000 at 08:09 PM


perl -e 'print pack "b*",join "",map "0"x$_."1",split m||,"1121110010200310062402001010001031004101120220066111202200301065101401030101101120220021"'
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
I get this error when i try replying to a post after installing this mod.:

Error including required files: Can't declare substitution in my at D:blah...blah...blahubb_library2.pl line 186, near "s/UBBrandomX/$RandomNumber/isg;" Make sure these files exist, permissions are set properly, and paths are set correctly.

Joined: Jan 2000
Posts: 56
Member
Member
Offline
Joined: Jan 2000
Posts: 56
NBA:

Try using:

if ($Header) {
$Header2 = $Header;
$Header2 =~ s/UBBrandomX/$RandomNumber/isg;
$Header2 =~ s/UBBrandomY/$RandomNumber2/isg;
}
if ($Footer) {
$Footer2 = $Footer;
$Footer2 =~ s/UBBrandomX/$RandomNumber/isg;
$Footer2 =~ s/UBBrandomY/$RandomNumber2/isg;
}

instead. That is the same thing that I came across and this fixed it.

MM:

Woo hoo. Much faster.

Parker

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Thanks Parker!

Perfect!

Now...can we speed up postings.cgi? [Linked Image]

Great hack MM!

#38785 11/06/2000 11:12 PM
Joined: Jan 2000
Posts: 96
Member
Member
Offline
Joined: Jan 2000
Posts: 96
this link is down


Music is the art of thinking with sound
#38786 11/06/2000 11:26 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Here ya go Exstatica....

***********************************
****Speeding Up Thread Loading****

This hack speeds up thread loading.

open ubb_library2.pl.

find:

sub CreateThreadHTML {
my($ForumIs) = shift;
my($ThreadFile) = shift;
my($ArrayStart) = shift;
my($PageNumber) = shift;

$PageNumber = $PageNumber + 0;
$ArrayStart = $ArrayStart + 0;

($trash, $number) = split("Forum", $ForumIs);
$ThreadNumber = substr($ThreadFile, 0, 6);

if ($AllowSearch eq "FALSE") {
$SearchOption = "";
} else {
$SearchOption = qq(| search );
}

replace that whole big block with this:

sub CreateThreadHTML {
my ($ForumIs, $ThreadFile, $ArrayStart, $PageNumber) = @_;

($trash, $number) = split("Forum", $ForumIs);
$ThreadNumber = substr($ThreadFile, 0, 6);

my $SearchOption = ($AllowSearch eq 'FALSE') ? '' : qq(| search );


then find:

if ($RandomNumber) {
$RandomNumber = $RandomNumber + 2;
$RandomNumber2 = $RandomNumber2 + 2;
} else {
@digit = (0..9);
srand(time);
$num1 = rand(10);
$num2 = rand(10);
$num3 = rand(10);
$num4 = rand(10);
$RandomNumber = ("$digit[$num1]" . "$digit[$num2]" . "$digit[$num3]" . "$digit[$num4]");

$RandomNumber2 = $RandomNumber + 1004;
}

replace with:

if ($RandomNumber) {
$RandomNumber += 2;
} else {
@digit = (0..9);
srand(time);
$num1 = rand(10);
$num2 = rand(10);
$num3 = rand(10);
$num4 = rand(10);
$RandomNumber = ($digit[$num1] . $digit[$num2] . $digit[$num3] . $digit[$num4]);

$RandomNumber2 = $RandomNumber + 1004;
}

find:

if ($DisplayRegistration eq "NO") {
$RegLinkHere = "";
} else {
$RegLinkHere = qq(profile | register |);
}

replace with:

my $RegLinkHere = ($DisplayRegistration eq 'NO') ? '' : qq(| register );

find:

if ($ProfileNumber ne "") {

replace with a simple line like:

if ($ProfileNumber) {
DO THAT 6 TIMES OR SO!!!!

find:

if ($Header) {
$Header2 = $Header;
$Header2 =~ s/UBBrandomX/$RandomNumber/isg;
$Header2 =~ s/UBBrandomY/$RandomNumber2/isg;
}
if ($Footer) {
$Footer2 = $Footer;
$Footer2 =~ s/UBBrandomX/$RandomNumber/isg;
$Footer2 =~ s/UBBrandomY/$RandomNumber2/isg;
}

replace that with:

if ($Header) {
my $Header =~ s/UBBrandomX/$RandomNumber/isg;
my $Header =~ s/UBBrandomY/$RandomNumber2/isg;
}
if ($Footer) {
my $Footer =~ s/UBBrandomX/$RandomNumber/isg;
my $Footer =~ s/UBBrandomY/$RandomNumber2/isg;
}

That saves plenty of CPU time right in that small code there.

There is so much we could do to this **** code here.

I can do this to other files too, but thats what ted is doing now.

THIS IS EXPECTED TO BE UPDATED SOON!!!!!!!

******************************************

#38787 11/06/2000 11:29 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
MM,

It would be really cool if you could do postings.cgi, and I for one would be very appreciative!

Joined: Sep 2000
Posts: 58
Member
Member
Offline
Joined: Sep 2000
Posts: 58
Quote
quote:
Got the same general error http://www.subzeroland.com


Love life, feel life,,be life.
Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
I don't know what's wrong... it worked for me and it certainly is valid Perl. Actually I was thinking myself a log there - the real clean version would look like so:
Quote
quote:
------------------
print pack "b*",join '',map '0'x$_.'1',split m||,'112111001020031006240200'.
'10100010310041011202200661112022003010651014010301011011202200';


perl -e 'print pack "b*",join "",map "0"x$_."1",split m||,"1121110010200310062402001010001031004101120220066111202200301065101401030101101120220021"'
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
dont know whats wrong. Works fine, and i see no errors.
postings.cgi is next. [Linked Image]

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Quote
quote:
Whoo Hoo!

Thanks so much in advance MM!

#38792 11/07/2000 12:08 PM
Joined: Sep 2000
Posts: 305
CTH Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 305
Hey,

I'm not sure if I'm getting some sort of placebo effect after adding this mod but sheesh my boards are flying lol [Linked Image]

Thanks to Parker for the extra bit because I too had the same problem as NBAustin on my fully modded 5.47 UBB

Cheers MM great mod as always [Linked Image]

TotalNewbie

#38793 11/07/2000 12:27 PM
Joined: Mar 2000
Posts: 20
Member
Member
Offline
Joined: Mar 2000
Posts: 20
Quote
quote:
Hmm...by replacing this, there is no longer a 'profile' link nor a 'register' link. And the acronym for the register text is the same as what's supposed to be for the search text. Also, the search text is no longer a link. I ended up fixing this manually, but you may want to change this in the file, MM.

------------------
-Webmaster of Cheat City

This message has been edited by WEAPON on November 07, 2000 at 11:28 AM

#38794 11/07/2000 12: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
Nice work MM, and thanks MArk an those who have contributed...

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
#38795 11/07/2000 12:46 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Thanks allen.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

#38796 11/07/2000 12:53 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
He helped me with 99% of this actually.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

#38797 11/07/2000 12:58 PM
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
No 99% is high, i just made a few suggestions of things I do to improve speed on some of my stuff.

Removing extraneous tests, removing doubling up on variables, moving to faster operators where necessary (and using the benchmark module to test).

Basic stuff, and i only looked at a routine or two for about 10 minutes. Nothing earth shattering.

So any speed increases you see, are all Mastermind's hard work!

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Well...You made me happy. [Linked Image]



------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Instructions updated with a fix and new code replacement!!!

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Make that 2 more. Do the bottom 2 if you already added it.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Quote
quote:
Could you kindly post your fix. I think I did it right...just want to make sure.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Updated once more with another code mod.

WEAPON, shouldn't happen..

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Added three fixes!

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Looking good MM... when you do the updates, can you put a date/time stamp on it so we'll know which version we have?

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
i wish i read your post before i added 4-5 fixes.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
it's ok.. just start now... so we'll know if we have the latest version...

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
Page 1 of 3 1 2 3

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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)