[Solved] Today/Yesterday for last topic on index?

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
LaZeR
Posts: 3
Joined: Wed Aug 16, 2006 9:54 pm

[Solved] Today/Yesterday for last topic on index?

Post by LaZeR »

Ok this is driving me nuts! How do I turn on this feature to show posts that were made on current or previous day show respectively as Today... Yesterday... in place of the date as is here on this board?

Running Beta2. Thanks
Last edited by LaZeR on Mon Aug 21, 2006 11:42 pm, edited 1 time in total.

code reader
Registered User
Posts: 653
Joined: Wed Sep 21, 2005 3:01 pm

Re: Today/Yesterday for last topic on index?

Post by code reader »

use the vertical bars ( | ) in the date format string. you have to have two of them. anything between them will be as it is (without the bars) if the date is earlier than yesterday, but will be converted to yesterday/today if it's yesterday or later.
it sounds confusing, but it's really quite simple.
here is my date format string from this forum:

Code: Select all

|D M d Y| H:i

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Today/Yesterday for last topic on index?

Post by Highway of Life »

Well you just... oh, woops... is this a new feature discussion, or request for support?
Image

User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany
Contact:

Re: Today/Yesterday for last topic on index?

Post by naderman »

In User Control Panel -> Forum Preferences -> My date format drop down you have to select a date with [relative days] in the end :)

Ida
Registered User
Posts: 23
Joined: Wed Dec 28, 2005 1:51 pm
Location: France
Contact:

Re: Today/Yesterday for last topic on index?

Post by Ida »

Nice :)

But is there a way to enforce a specific date format on all users in the ACP ?
Ida == Gamall :) http://gamall-ida.com

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: Today/Yesterday for last topic on index?

Post by dhn »

Ida wrote: But is there a way to enforce a specific date format on all users in the ACP ?

Not without manually updating the database. Why would you want to do that? 8O

User avatar
Eelke
Registered User
Posts: 606
Joined: Thu Dec 20, 2001 8:00 am
Location: Bussum, NL
Contact:

Re: Today/Yesterday for last topic on index?

Post by Eelke »

Not really a reason, just a nice annecdote... I've had people complain to me saying "Uh, all posts have the same date, something is wrong!!" Guess what they set their time format to... Right, a fixed string, the one they were seeing all over the place :)

Ida
Registered User
Posts: 23
Joined: Wed Dec 28, 2005 1:51 pm
Location: France
Contact:

Re: Today/Yesterday for last topic on index?

Post by Ida »

dhn wrote: Not without manually updating the database. Why would you want to do that? 8O

Because most users wont spontaneously dwelve into the depth of the UCP to get the today/yesterday feature.

It would be nice if there was a way to set the date format to a default etc without resorting to SQL queries...

Anyway if it is not a default feature, it should be an easy MOD to make ;).
Ida == Gamall :) http://gamall-ida.com

LaZeR
Posts: 3
Joined: Wed Aug 16, 2006 9:54 pm

Re: Today/Yesterday for last topic on index?

Post by LaZeR »

Highway of Life wrote: Well you just... oh, woops... is this a new feature discussion, or request for support?


I guess it was a little of both but actually to me it was more of a discussion about a new feature in Olympus vs. phpBB2 thus why I posted it here. Nevertheless, thank you all for the help and understanding of this now. Part of my problem was thinking it was an ACP setting rather than a per user (control panel).

Now I do sort of understand Ida's point. I guess you could manually change the default setting for new registrations and/or write an SQL to update the db to make the Today/Yesterday "feature" as default in the date. ;)

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Today/Yesterday for last topic on index?

Post by Highway of Life »

Oh, yes I see... hmm... good point Ida, I've thought of that as well.

I'm thinking of making a future Olympus MOD that would let the Admin (through ACP) set the default for ALL the user options and prefs, setting them to Yes | No, and override user Yes | No. Since I was a bit surprised to see it was not a default feature for board-wide configuration in Olympus.
Though I know you can do it per-user in the Admin User. But it would be nice to have it as a board-wide configuration.
Image

Post Reply