No members are browsing this topic
|
|
Havasu Doug
Pisces
HDF Gold Supporter
Delta Tau Chi - ΔTX
North Padre Island, Texas
Posts: 12,188
APPD 1.52
Post Rank: 7
'78 Challenger jet
|
|
Posted: July 20 2005,9:02 pm |
Post # 1 |
|
Well with a little time on my hands I added something that you probably never would have noticed:
Commas,,,,,,,,,,,,
to some of the numbers on the board.
So far, I have added them to the Board Statistics section, the Topics column, and the Replies column of the main board view.
Also, to the Replies and Views columns of the Forum View.
For anyone interested in programming in Perl, this is an example of some of the code:
Quote | Â Â sub comma_me { Â local $_ = shift; Â 1 while s/^(-?\d+)(\d{3})/$1,$2/; Â return $_; Â Â }; Â Â Â $Data->{'TOPIC_POSTS'} = comma_me($Data->{'TOPIC_POSTS'}); |
|
Back to top |
|
| Member # 1 | Joined: 12-02-2002 | |
|
|
GoFastRacer
HDF Supporter
V-Driver For Life!
Big River, Ca
Posts: 62,729
APPD 7.90
Post Rank: 1
Spectra20
|
|
Posted: July 21 2005,5:52 am |
Post # 2 |
|
So that is Perl huh, interesting gonna have to read up on that, thanks!..
|
Back to top |
|
| Member # 101 | Joined: 3-03-2003 | |
|
|
GoFastRacer
HDF Supporter
V-Driver For Life!
Big River, Ca
Posts: 62,729
APPD 7.90
Post Rank: 1
Spectra20
|
|
Posted: July 22 2005,5:30 am |
Post # 6 |
|
Quote (Carrera Elite @ July 21 2005,8:34 am) | Quote (GoFastRacer @ July 21 2005,5:52 am) | So that is Perl huh, interesting gonna have to read up on that, thanks!.. |
RIGHT!!! Â Â |
I have been reading on it, totally a different world from building computers that's for sure!..
Perl!
|
Back to top |
|
| Member # 101 | Joined: 3-03-2003 | |
|
|
GoFastRacer
HDF Supporter
V-Driver For Life!
Big River, Ca
Posts: 62,729
APPD 7.90
Post Rank: 1
Spectra20
|
|
Posted: July 22 2005,5:31 am |
Post # 7 |
|
Quote (Havasu Doug @ July 22 2005,4:52 am) | Basically every number on this board either comes from a database field, which doesn't save numbers with commas or is a result of a computation of numbers in more than one field in the database. Â The hacks convert the results to show commas in any given location. Â I converted a few more numbers over, like in the topic view post count, memberlist post count, and most of the numbers in the statistics page. Â I just have a few more to convert over.
Now the numbers from the board that show on my main home page are a completely different story. Â That is an SHTML page so this hack wouldn't work there. Â The board generates text files for certain stats and the text files are imported into the SHTML page through SSI (Side Server Includes). |
Okkk!..
|
Back to top |
|
| Member # 101 | Joined: 3-03-2003 | |
|
|
Havasu Doug
Pisces
HDF Gold Supporter
Delta Tau Chi - ΔTX
North Padre Island, Texas
Posts: 12,188
APPD 1.52
Post Rank: 7
'78 Challenger jet
|
|
Posted: July 22 2005,5:26 pm |
Post # 8 |
|
Quote (GoFastRacer @ July 22 2005,5:30 am) | Quote (Carrera Elite @ July 21 2005,8:34 am) | Quote (GoFastRacer @ July 21 2005,5:52 am) | So that is Perl huh, interesting gonna have to read up on that, thanks!.. |
RIGHT!!! Â Â |
I have been reading on it, totally a different world from building computers that's for sure!.. Â Â
Perl! |
It literally is a different language isn't it. I sort of feel lost on the hardcore perl sites. I only comprehend around 20% of what I read there, but I'm improving. I somehow managed to get an "A" in Perl Programming a couple semesters ago though.
|
Back to top |
|
| Member # 1 | Joined: 12-02-2002 | |
|
|
GoFastRacer
HDF Supporter
V-Driver For Life!
Big River, Ca
Posts: 62,729
APPD 7.90
Post Rank: 1
Spectra20
|
|
Posted: July 23 2005,6:11 am |
Post # 9 |
|
Quote (Havasu Doug @ July 22 2005,5:26 pm) | Quote (GoFastRacer @ July 22 2005,5:30 am) | Quote (Carrera Elite @ July 21 2005,8:34 am) | Quote (GoFastRacer @ July 21 2005,5:52 am) | So that is Perl huh, interesting gonna have to read up on that, thanks!.. |
RIGHT!!! Â Â |
I have been reading on it, totally a different world from building computers that's for sure!.. Â Â
Perl! |
It literally is a different language isn't it. Â I sort of feel lost on the hardcore perl sites. Â I only comprehend around 20% of what I read there, but I'm improving. Â I somehow managed to get an "A" in Perl Programming a couple semesters ago though. |
At least you understood 20% Unless they have "Perl for Dummies" I'd say a course in it would be mandatory!.
|
Back to top |
|
| Member # 101 | Joined: 3-03-2003 | |
|
|
GoFastRacer
HDF Supporter
V-Driver For Life!
Big River, Ca
Posts: 62,729
APPD 7.90
Post Rank: 1
Spectra20
|
|
Posted: July 23 2005,6:40 am |
Post # 11 |
|
Cool site, interesting stuff there, thanks!..
|
Back to top |
|
| Member # 101 | Joined: 3-03-2003 | |
|
|
My Man's Sportin' Wood
Capricorn
HDF Supporter
Hallett Hottie
Flathead Lake Montana/Lake Havasu City
Posts: 3,500
APPD 0.45
Post Rank: 20
|
|
Posted: July 23 2005,4:54 pm |
Post # 13 |
|
Quote (Havasu Doug @ July 23 2005,7:17 am) | Quote (GoFastRacer @ July 23 2005,6:40 am) | Cool site, interesting stuff there, thanks!.. |
You're welcome.
Here's another mod I just did in the last few minutes.
The old format was:
2 member(s) are browsing this topic     >Havasu Doug >BHH
or
1 member(s) are browsing this topic       >Havasu Doug
or
Nothing in the field if no members browsing.
The new format takes the # of members into consideration and prints the words accordingly:
2 members are browsing this topic    >Havasu Doug >BHH Â
or
1 member is browsing this topic     >Havasu Doug
or
No members are browsing this topic
Once school starts up again, I'll have to knock this crap off. |
This one I actually noticed. I thought "hmmm. It never said 'no members are browsing this topic' before."
|
Back to top |
|
| Member # 250 | Joined: 10-17-2003 | |
|
|
shueman
Libra
HDF Gold Supporter
Born To Drive...
Alta Loma CA
Posts: 17,228
APPD 2.27
Post Rank: 4
NADA
|
|
Posted: July 23 2005,9:40 pm |
Post # 14 |
|
Nice "tweaks"....
|
Back to top |
|
| Member # 376 | Joined: 2-01-2004 | |
|
|
My Man's Sportin' Wood
Capricorn
HDF Supporter
Hallett Hottie
Flathead Lake Montana/Lake Havasu City
Posts: 3,500
APPD 0.45
Post Rank: 20
|
|
Posted: July 24 2005,6:26 pm |
Post # 18 |
|
LOL, I was wondering if anyone would figure that out.
With Jeff online at work now, I don't want him to catch me lurking when I should be working---hey that rhymes.
|
Back to top |
|
| Member # 250 | Joined: 10-17-2003 | |
|
|
Please help keep HDF free. If you
enjoy this site, feel free to make a donation to keep it running. THANKS!