#38767
11/04/2000 10:15 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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. (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
|
|
|
#38768
11/05/2000 12:34 PM
|
Joined: Sep 2000
Posts: 67
Member
|
Member
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... Yet again, you tease with the goodies, then say "tomorrow"... lol.. slightly evil you are. Did you want an official infopop mug with that mousepad? ------------------ My Site The only difference between a fool and an eccentric are your beliefs in their ideas.
|
|
|
#38769
11/05/2000 1:37 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38770
11/05/2000 2:03 PM
|
Joined: Oct 2000
Posts: 3
Junior Member
|
Junior Member
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.
|
|
|
#38771
11/05/2000 2:09 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38772
11/05/2000 2:11 PM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
|
|
|
#38773
11/05/2000 2:12 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38774
11/05/2000 2:27 PM
|
Joined: Oct 2000
Posts: 48
Member
|
Member
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
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.
|
|
|
#38776
11/06/2000 6:41 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38777
11/06/2000 7:18 PM
|
Joined: Sep 2000
Posts: 58
Member
|
Member
Joined: Sep 2000
Posts: 58 |
humm,,it didn't work on mine. Line errors.
Love life, feel life,,be life.
|
|
|
#38778
11/06/2000 7:36 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38779
11/06/2000 8:17 PM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
What are we supposed to do with this?
|
|
|
#38780
11/06/2000 8:23 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38781
11/06/2000 8:55 PM
|
Joined: Nov 2000
Posts: 8
Junior Member
|
Junior Member
Joined: Nov 2000
Posts: 8 |
to It may also be worth checking if it's faster to use 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"'
|
|
|
#38782
11/06/2000 9:13 PM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
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.
|
|
|
#38783
11/06/2000 9:17 PM
|
Joined: Jan 2000
Posts: 56
Member
|
Member
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
|
|
|
#38784
11/06/2000 9:29 PM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
Thanks Parker! Perfect! Now...can we speed up postings.cgi? Great hack MM!
|
|
|
#38785
11/06/2000 11:12 PM
|
Joined: Jan 2000
Posts: 96
Member
|
Member
Joined: Jan 2000
Posts: 96 |
Music is the art of thinking with sound
|
|
|
#38786
11/06/2000 11:26 PM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
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
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!
|
|
|
#38788
11/07/2000 7:28 AM
|
Joined: Sep 2000
Posts: 58
Member
|
Member
Joined: Sep 2000
Posts: 58 |
Got the same general error http://www.subzeroland.com
Love life, feel life,,be life.
|
|
|
#38789
11/07/2000 8:16 AM
|
Joined: Nov 2000
Posts: 8
Junior Member
|
Junior Member
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: ------------------ 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"'
|
|
|
#38790
11/07/2000 8:54 AM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
dont know whats wrong. Works fine, and i see no errors. postings.cgi is next. ------------------ 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
|
|
|
#38791
11/07/2000 9:43 AM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
Whoo Hoo! Thanks so much in advance MM!
|
|
|
#38792
11/07/2000 12:08 PM
|
Joined: Sep 2000
Posts: 305
Member
|
Member
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 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 TotalNewbie
|
|
|
#38793
11/07/2000 12:27 PM
|
Joined: Mar 2000
Posts: 20
Member
|
Member
Joined: Mar 2000
Posts: 20 |
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
|
|
|
#38795
11/07/2000 12:46 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
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
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
|
|
|
#38798
11/07/2000 1:17 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Well...You made me happy. ------------------ 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
|
|
|
#38799
11/07/2000 1:25 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38800
11/07/2000 1:40 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38801
11/07/2000 1:56 PM
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
Could you kindly post your fix. I think I did it right...just want to make sure.
|
|
|
#38802
11/07/2000 2:04 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38803
11/07/2000 2:09 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38804
11/07/2000 2:11 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 |
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
|
|
|
#38805
11/07/2000 2:16 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
|
|
|
#38806
11/07/2000 2:23 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 |
it's ok.. just start now... so we'll know if we have the latest version... ------------------ Allen - http://www.stand318.com
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|