News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Relative Dates

Started by vbgamer45, February 07, 2010, 11:32:08 PM

Previous topic - Next topic

vbgamer45

Link to Mod

Relative Dates


Original Author:live627
SMF Version: 2.0.X
Mod Version: 1.3

Description:
This mod, when enabled, converts the usual date displays for posts with a relative one, such as 2 minutes ago, 7 hours ago, etc.

It isn't on by default; setting is in AdminCP => Features and Options => Layout.

Changelog
Version 1.3
! Taken over by Runic
! Updated for 2.0.x
- Removed support for 1.1

Version 1.2
! Should be 0 seconds ago, not in 0 seconds
* Commenazi
+ Silently disables itself in XML mode. To turn it back on in XML, read my post.
* Converting all line endings to LF

Version 1.1
+ Added 1.1.x support
! Fixed vanishing "ago"
! Fixed future "negative" date bug
+ Extends relativity into the future, i.e, tomorrow


Legend:
--------------------------------------------------------------------------------
! Minor change or bugfix
* Feature edit
& Known bug
+ Feature addition
- Feature removal

Why Not Visit:
http://www.smfhacks.com
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

Tanks

I don't think it works on my 2.0 RC2

It says: 1453 seconds ago , by Knat Simon

live627

Hmm, thanks for pointing that out. I fixed the problem and reuploaded it

sAce


Tanks

That fixed it, but i still see something that i think is wrong.

1. Minutes ago is right, hours ago is right, but 1 hour ago is missing the "ago"

2. It should be bold like the today and yesterday is.

Could you fix these two things then i would love to use your mod.

Cheers, and thanks :)

Bugo

What's the problem? (see attachment)

Bugo

Russian translation:


$txt['hours'] = 'часов';
$txt['minutes'] = 'минут';
$txt['seconds'] = 'секунд';
$txt['hour'] = 'час';
$txt['minute'] = 'минута';
$txt['second'] = 'секунда';
$txt['ago'] = 'назад';
$txt['relative_today'] = 'Сегодня с относительным временем';

h78509

I installed this on my 2.0 RC2 Curve but unfortunately there was no option to enable it.

live627

Look at a screenshot on the mod page

It is there for anyone who can read :D

Tanks

Hello Live627,

Did you look into the thing in my post above ?

TheListener

Great addition Live.

Installed within seconds on the forum.

( Raven Theme)

live627

Update: 1.1 fixes all reported bugs

TheListener

Did you try the settings as mentioned in the first post?

live627

Quote from: Bugo link=topic=364742.msg2495393#msg2495393 date=
Russian translation
/quote]

Is it utf8, or otherwise, or both?

Bugo

Updated russian translation.
Add this files to install package :)

live627


Özgür

Turkish translation
$txt['hours'] = 'saat';
$txt['minutes'] = 'dakika';
$txt['seconds'] = 'saniye';
$txt['hour'] = 'saat';
$txt['minute'] = 'dakika';
$txt['second'] = 'saniye';
$txt['ago'] = 'önce';
$txt['in'] = 'içinde';// need to be test.
$txt['relative_today'] = 'Bugün ve göreceli zamanlar';
So Long

rahlzel

Still works fine for RC3, though as a new user it was a little difficult to find. You mentioned the Features and Options > Layout section, which is where I found it, but I don't come to this section much so I assumed the default option "Only Today" means it was supposed to be "On".

I almost came here to post a bug report until I happened upon the last setting, "...with relative times", which did the trick.

Great idea for a mod, but you might want to make it a bit simpler to come across. Maybe have it automatically use this setting as soon as it's installed?

Thank you, and well done!

Eclipse16V

Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

Afro


Advertisement: