Advertisement:

Author Topic: Relative Dates  (Read 32095 times)

Offline samborabora

  • Full Member
  • ***
  • Posts: 517
Re: Relative Dates
« Reply #60 on: June 15, 2014, 02:00:17 PM »
No rewrite planned.

How is the mod structured? Just wondering how it's been designed in such a way that further lengths of date couldn't be added simply by extending the mod to replace > a month/ > a year with friendly text?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,237
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Relative Dates
« Reply #61 on: June 15, 2014, 02:23:36 PM »
Check the code easy to see
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline samborabora

  • Full Member
  • ***
  • Posts: 517
Re: Relative Dates
« Reply #62 on: June 15, 2014, 04:40:52 PM »
Check the code easy to see
Can you be more descriptive/helpful, please?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,237
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Relative Dates
« Reply #63 on: June 15, 2014, 11:38:48 PM »
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,905
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: Relative Dates
« Reply #64 on: July 13, 2014, 09:37:09 PM »
Love this mod, but can we have it so that it has things like "about a month ago" and "about a a year ago" rather than defaulting to, say, June 12, 2014, 10:52:15 AM if there isn't anything within a recent timeframe? Or can I add this myself somehow?

I already wrote a similar mod which is pending approval. You can have a try from my github repository https://github.com/ahrasis/Improved-Displayed-Times-Mod.

Offline samborabora

  • Full Member
  • ***
  • Posts: 517
Re: Relative Dates
« Reply #65 on: July 14, 2014, 02:57:58 PM »
Love this mod, but can we have it so that it has things like "about a month ago" and "about a a year ago" rather than defaulting to, say, June 12, 2014, 10:52:15 AM if there isn't anything within a recent timeframe? Or can I add this myself somehow?

I already wrote a similar mod which is pending approval. You can have a try from my github repository https://github.com/ahrasis/Improved-Displayed-Times-Mod.

This works really well so far, I can't believe this happened, I'm so impressed! One question, when I return to the forum after making a test post, it shows non-relative times, is this a cache issue? Also, topics and posts made before I uninstalled the old relative times and installed your new one say things like "5 days ago at 06:43:29 PM", is it supposed to have the "at 06:43:29 PM" part, or is this because they were posted without your mod installed? Is there a way of changing this so all posts show your relative times?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,759
  • Gender: Male
Re: Relative Dates
« Reply #66 on: July 14, 2014, 03:00:28 PM »
Please don't discuss this here. This topic is for discussion of vbgamer's MOD.

ahrasis's MOD is being reviewed and, when finished, it will have its own support topic. If you wish to discuss it now, please use Github's issues tracker.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,905
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: Relative Dates
« Reply #67 on: July 14, 2014, 07:21:14 PM »
I am opening another topic in Coding Discussion pending the approval of my Improved Displayed Times Mod. Interested parties can go here: http://www.simplemachines.org/community/index.php?topic=525151.new#new.

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,835
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Relative Dates
« Reply #68 on: July 14, 2014, 09:26:45 PM »
Quote
vbgamer's MOD
Actually, I wrote it, gave it to Runic who then "sold" it to vb, who went quiet after I told him that I wanted it back.

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,905
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: Relative Dates
« Reply #69 on: July 14, 2014, 09:42:32 PM »
May be you should have it back. After all, there are already requests for it to be updated / rewritten.

Offline confuseamuse

  • Jr. Member
  • **
  • Posts: 145
Re: Relative Dates
« Reply #70 on: July 18, 2018, 06:38:27 AM »
Is this mod still under development? Possibility for a 2.1 version after beta?

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 430
  • Gender: Male
Re: Relative Dates
« Reply #71 on: Yesterday at 10:45:31 PM »
Fantastic mod. I tested it and it works for the most part but doesn't convert the older dates to the more "Relative dates" as shown in this picture.

Is there a way to convert older dates to the new format?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,237
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Relative Dates
« Reply #72 on: Yesterday at 10:52:11 PM »
What would you want the date to show?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 430
  • Gender: Male
Re: Relative Dates
« Reply #73 on: Yesterday at 11:11:42 PM »
What would you want the date to show?

"X Years ago"  ::)

Would be nice too see a further break down of timestamps such as:

X Days ago
X Weeks ago
X Months ago
X Years ago

It would be epic to have this on 2.1 too!   8)

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,835
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Relative Dates
« Reply #74 on: Today at 04:41:02 PM »
I wrote it in a specific way to only handle today and (I think) yesterday. That said, making it cover more general dates shouldn't be too hard. Mostly moving it outside of a check to find today.

It needs rewritten anyway to support better i18n.