Welcome, Guest. Please Login or Register.
November 23, 2024, 04:59:10 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  YaBB SE Info  |  News From the YaBB SE Team  |  Changes to Profile « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Changes to Profile  (Read 6825 times)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Changes to Profile
« on: November 26, 2001, 03:35:12 AM »
Reply with quote

Ok, one of the changes we made from Y1G was givnig users more control over their time format.

Now, it's not just a selection of a few formats, but something you can define yourself.  Once we get around to it - we'll make it more intuitive for you, but adding a help or something by the field, but right now, you can read about it here.  The conventions follow PHP's date function and are described as follows:

The following characters are recognized in the format string:

a - "am" or "pm"
A - "AM" or "PM"
B - Swatch Internet time
d - day of the month, 2 digits with leading zeros; i.e. "01" to "31"
D - day of the week, textual, 3 letters; i.e. "Fri"
F - month, textual, long; i.e. "January"
g - hour, 12-hour format without leading zeros; i.e. "1" to "12"
G - hour, 24-hour format without leading zeros; i.e. "0" to "23"
h - hour, 12-hour format; i.e. "01" to "12"
H - hour, 24-hour format; i.e. "00" to "23"
i - minutes; i.e. "00" to "59"
I (capital i) - "1" if Daylight Savings Time, "0" otherwise.
j - day of the month without leading zeros; i.e. "1" to "31"
l (lowercase 'L') - day of the week, textual, long; i.e. "Friday"
L - boolean for whether it is a leap year; i.e. "0" or "1"
m - month; i.e. "01" to "12"
M - month, textual, 3 letters; i.e. "Jan"
n - month without leading zeros; i.e. "1" to "12"
O - Difference to Greenwich time in hours; i.e. "+0200"
r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)
s - seconds; i.e. "00" to "59"
S - English ordinal suffix, textual, 2 characters; i.e. "th", "nd"
t - number of days in the given month; i.e. "28" to "31"
T - Timezone setting of this machine; i.e. "MDT"
U - seconds since the epoch
w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
Y - year, 4 digits; i.e. "1999"
y - year, 2 digits; i.e. "99"
z - day of the year; i.e. "0" to "365"

if you want to use any of the above character combinations as strings (as opposed to their date codes) you must escape them with a \

For example M jS \a\t h:ia  will display the dates as Nov 25th at 07:01pm

Hope this helps ;)
« Last Edit: November 27, 2001, 06:41:52 PM by Joseph Fung » Logged

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changes to Profile
« Reply #1 on: November 27, 2001, 06:44:03 PM »
Reply with quote

You may also notice that your password fields are blank.  This is for 2 reasons.

a) we don't want to pass your password back-and-forth between the server and the browser too much.  Makes it too easy for someone to pick it out ;)  (next time you're editing your passwd in Y1G, look at the source - find the password fields, and you'll see what I mean)

b) passwords are all now encrypted in the DB.  So, your password is only changed when you enter values into those fields :)

Note, this ecryption is irreversable (in theory ;) ) so Reminder now resets it to a random value, and sends you that new passoword :)
Logged

Big_P
Guest
Re:Changes to Profile
« Reply #2 on: November 27, 2001, 08:24:18 PM »
Reply with quote

Very nice!  ;D
That'll make it a good bit more secure. Are you usng MySQL to totally rewrite the way all board names and posts are written too? I see you've done that with categorys and threads, which is nice.  ;)
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changes to Profile
« Reply #3 on: November 27, 2001, 08:56:30 PM »
Reply with quote

Every data item is in mysql now.  The only things outside are images, lng and php files :)
Logged

Meriadoc
Rice Dancer
YaBB SE Developer
Sr. Member
****
Posts: 361


ICQ - 83387121 WWW
Re:Changes to Profile
« Reply #4 on: December 04, 2001, 07:21:31 PM »
Reply with quote

that's good about passwords....keeps admins/mods from easily being able to get ahold of you passwords...not to mention your random hacker:)
Logged

It is directions garbage other than this building, and forbid! A fine is obtained when illegal abandonment is carried out!!

It's nice to be a watermelon pig.
We can eat watermelon as much ass. we want. Because we live in watermelon hills.
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changes to Profile
« Reply #5 on: December 04, 2001, 07:25:01 PM »
Reply with quote

and just for added security - the passwd stored in the cookie is doubly-encrypted (i.e. it's been run through an MD5 algorithm twice with 2 different seeds)
Logged

Michael Prager
YaBB Crony
Full Member
***
Posts: 201


I'm the BoardMod man

ICQ - 91407017 WWW
Re:Changes to Profile
« Reply #6 on: December 04, 2001, 08:59:08 PM »
Reply with quote

hm this timeformat thing doesn't seem to work properly. I've set it to d.m.y H:m but this setting only affects about 30% of all dates on the board :-\
Logged

My software never has bugs. It just develops random features.

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changes to Profile
« Reply #7 on: December 04, 2001, 09:56:08 PM »
Reply with quote

The implementation of the "today" mod cancels out changes to today dates.

There's really no easy way to say "oh - the word today fits in here" so if the today mod is toggled on, then the format string won't work for dates that have "today" in them.

I'm turning off the today mod for a bit so you can see what I mean...
Logged

Michael Prager
YaBB Crony
Full Member
***
Posts: 201


I'm the BoardMod man

ICQ - 91407017 WWW
Re:Changes to Profile
« Reply #8 on: December 04, 2001, 09:59:06 PM »
Reply with quote

Yeah I know the problem. However I personaly prefere to just ignore the small grammatical problem ::)
Logged

My software never has bugs. It just develops random features.

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changes to Profile
« Reply #9 on: December 04, 2001, 10:00:10 PM »
Reply with quote

so change it to "today on <your formated time>" ??
Logged

Michael Prager
YaBB Crony
Full Member
***
Posts: 201


I'm the BoardMod man

ICQ - 91407017 WWW
Re:Changes to Profile
« Reply #10 on: December 04, 2001, 10:28:38 PM »
Reply with quote

hm right it isn't that nice ;D
how do other boards handle this?
Logged

My software never has bugs. It just develops random features.

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changes to Profile
« Reply #11 on: December 04, 2001, 10:37:21 PM »
Reply with quote

a) they don't let you change the date format or
b) they don't have a today mod  ::)
Logged

DemonSlayer
Jr. Member
**
Posts: 51


That movie messed with people's heads!!!

ICQ - 35241250 WWW
Re:Changes to Profile
« Reply #12 on: December 05, 2001, 12:30:15 PM »
Reply with quote

Very nice


This is looking very secure :)
Logged

Demon Slayer
"The end is near"
"I feel the power of the Dark Hadou"

.:The Chronicles:. Forum
Michael Prager
YaBB Crony
Full Member
***
Posts: 201


I'm the BoardMod man

ICQ - 91407017 WWW
Re:Changes to Profile
« Reply #13 on: December 05, 2001, 01:36:37 PM »
Reply with quote

ok then I guess we should leave it as it is right now ::)
Logged

My software never has bugs. It just develops random features.

Archangel
Guest
Re:Changes to Profile
« Reply #14 on: December 05, 2001, 06:47:33 PM »
Reply with quote

If you want the Today mod and the Date format thing, couldn't you have 2 formats that the user can change?

Time and Date?

Then, you can do something like

if the date is today, print "Today <User's time format>"

if the date isn't today, print "<User's date format> <User's time format>"

the "at" can be included in the <User's time format>



I dunno, I'm new at this, but I think it should work.
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  YaBB SE Info  |  News From the YaBB SE Team  |  Changes to Profile « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 20 queries.