Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Thank you Mark Badalato for providing this nice coding!


Download it here. www.h-realms.com/getusernumber.txt

Test it and report bugs.

Mark didnt test it, but I tested it, and works fine. Bugs fixed by cal. Thanks, Cal!

[ 12-09-2001 09:09 AM: Message edited by: MasterMind ]

Sponsored Links
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
Provided that it's working the way it is supposed to, the benchmarks i'm running are showing about an average of 25% less CPU time usage:

Benchmark: timing 100 iterations of Original, Rewrite...
Original: 3 wallclock secs ( 0.24 usr + 2.44 sys = 2.68 CPU) @ 37.27/s (n=100)
Rewrite: 2 wallclock secs ( 0.33 usr + 1.71 sys = 2.04 CPU) @ 48.95/s (n=100)

So, if Greg says it's working the way it's supposed to...enjoy [Linked Image]
--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Appears to be working well here... muchas gracias both of you...[Linked Image]

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

- http://www.stand318.com


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
rats, spoke too soon.. it appears to be erasing the # of posts, the "from" and "registered" info under the author's names in the preceding posts in a thread... any idea what might be causing that? I haven't made any other changes except this one since I added it...

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

- http://www.stand318.com


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
uploaded the back up... MM, have you seen the error I reported?

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

- http://www.stand318.com


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Allen,
No, i didn't see any of those errors.

Mark?

------------------
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: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
Unfortunately i'm not familiar with the original, so the changes i made were what appeared to be quick translations of the previous code.

As I said, I very well could have overlooked something and removed an essential piece.

MM, if you find what it is, let me know and i'll add it in.

--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
Dont know..

------------------
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: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
Ok, based on the possibilty of bugs, and the fact that i don't like having code of mine out there unless i've really gone over it, i recommend NOT using the routine up there.

Basically i was showing MM some things that i do to speed code up, and how i would write it. But, it was a quickie (like 5 to 10 miunutes), and no testing was done. Since im not familar with the real version, i may have overlooked key things.

Chalk it up to an exericse to see how i like to structure things (if you care [Linked Image]) and other than that, assume it is not worth using

--mark [Linked Image]


"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
Bug fixed by cal.

------------------
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: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
beta testing here again...

we need and icon for crossing fingers...[Linked Image]

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

- http://www.stand318.com


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
the previous bug was squashed... nice work MM, Mark, and cal...

let me know if you see any other problems...

------------------
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
Yes, if anyone has a bug DO NOT E-MAIL MARK. HE OFFERS NO SUPPORT FOR HACKS. You can post it here.

Thanks.

------------------
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: 76
Member
Member
Offline
Joined: Oct 2000
Posts: 76
Is the problem fixed? Is the link the same as the first post?

-Ghoste

------------------
Liquid FX Design.com
-------------------

Joined: Oct 2000
Posts: 76
Member
Member
Offline
Joined: Oct 2000
Posts: 76
Nevermind , I see the "Fixed by Cal" at the top of the .txt

I replyed too soon [Linked Image]


-Ghoste

------------------
Liquid FX Design.com
-------------------

Joined: Sep 2000
Posts: 1,304
Addict
Addict
Offline
Joined: Sep 2000
Posts: 1,304
Does this speedup effect the postings.cgi, because it is slow when I click on Post New Topic or Post Reply

------------------
The Fusion of Goku & Trunks...GoTorankusuKu

Joined: Oct 2000
Posts: 49
Member
Member
Offline
Joined: Oct 2000
Posts: 49
I was wondering if anybody had any idea about the scale of optimization obtained for boards with differing numbers of members. I know that huge boards will get a significant increase in speed, but my board only has about 100 members. Will it matter?

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
This will speed up posting and update threads.

No, it will speed up all boards.

------------------
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: Sep 2000
Posts: 1,304
Addict
Addict
Offline
Joined: Sep 2000
Posts: 1,304
NM, the postings.cgi was just being a jack*ss for a few minutes [Linked Image]

------------------
The Fusion of Goku & Trunks...GoTorankusuKu

Joined: Mar 2000
Posts: 143
Member
Member
Offline
Joined: Mar 2000
Posts: 143
Cool! I just added this one.. Thanks guys! [Linked Image]

Joined: Sep 2000
Posts: 19
Member
Member
Offline
Joined: Sep 2000
Posts: 19
Work fine on my board.

Thanks,
Errol

Joined: Aug 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 2
Still Looking for this thread the link in both the database and this link is dead does anyone have a copy of this?

Joined: Dec 2001
Posts: 1
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 1
hey the link doesnt work... this is old, but I want a member number hack...

In fact, I want to REMOVE post #'s, and replace them with member number...

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Try the link for this hack in the Database.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Fixed, bump!


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
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)