[ABD] TimeAgo timestamps

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [DEV] TimeAgo timestamps

Post by MuhClaren » Wed Aug 12, 2015 7:36 pm

Dragosvr92 wrote:Could you please provide an option to reverse this:

1 Day 2 Hours ago (11 Aug 2015, 19:21) To this?
11 Aug 2015, 19:21 (1 Day 2 Hours ago )

I prefer to have the calculated date between ()

Also, i think it may be easy enough to enable / disable uppercase on the first letter of a word, by using ucfirst() and figure a way to enable, disable that. If you consider the option may be useful. :)
I will certainly give thought to both of these requests, and listen for others wishing the same thing. In the meantime, you may wish to edit the capitalization of the unit labels manually, which can be found in /language/en(_us)/timeago_acp.php lines 35-42 (https://github.com/MuhClaren/timeago/bl ... hp#L35-L42). ;)

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: [DEV] TimeAgo timestamps

Post by Dragosvr92 » Wed Aug 12, 2015 7:54 pm

Thanks :)

This line.... Applies TimeAgo on the Category Forums List for "Last Post"
Im thinking if it doesnt sound better like... Applies TimeAgo on the "Last Post" column
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [DEV] TimeAgo timestamps

Post by MuhClaren » Wed Aug 12, 2015 9:18 pm

Dragosvr92 wrote:Thanks :)

This line.... Applies TimeAgo on the Category Forums List for "Last Post"
Im thinking if it doesnt sound better like... Applies TimeAgo on the "Last Post" column
Noted.

I preserved the original timestamp in a new template variable, so if you want to make some HTML template edits, you can get the original timestamp:

Code: Select all

{{ forumrow.LAST_POST_TIME_ORIG }} (forumlist_body.html)
{{ topicrow.FIRST_POST_TIME_ORIG }} (viewforum_body.html)
{{ topicrow.LAST_POST_TIME_ORIG }} (viewforum_body.html)
{{ POST_DATE_ORIG }}  (viewtopic_body.html)
and arrange it how you wish... for example viewtopic_body.html:

Code: Select all

<span>{{ postrow.POST_DATE_ORIG }} ( {{ postrow.POST_DATE }} )</span>
would produce something like: Monday January 1, 1985, 2:00pm (3 decades 7 months 2 weeks ago)

Of course you'd need to turn off extend option in timeago settings.

User avatar
Jessica
Former Team Member
Posts: 4341
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] TimeAgo timestamps

Post by Jessica » Thu Aug 13, 2015 3:25 pm

Nice extension
Please do not PM me for support unless it is absolutely necessary
Pro-choice, Atheist, Pro-LGBT rights

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
alhitary
Registered User
Posts: 838
Joined: Wed Jan 17, 2007 7:51 am
Location: ROY
Name: Basil Taha Alhitary
Contact:

Re: [DEV] TimeAgo timestamps

Post by alhitary » Thu Aug 13, 2015 9:47 pm

MuhClaren wrote:
Hello friend. Thank you for your effort. I'd like to make one small request, and that is to modify the file to use the current nested array format which was changed to support plurality requirements of various languages. See the change here: https://github.com/MuhClaren/timeago/bl ... hp#L35-L42

Thank you for your consideration in this.
I updated the files.
https://github.com/MuhClaren/timeago/pull/4
Thanks

User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [DEV] TimeAgo timestamps

Post by MuhClaren » Thu Aug 13, 2015 10:05 pm

alhitary wrote: I updated the files.
https://github.com/MuhClaren/timeago/pull/4
Thanks
Very nice! Merged into package. Thank you very much!

User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [DEV] TimeAgo timestamps

Post by MuhClaren » Fri Aug 14, 2015 8:20 am

A minor release is available which fixes the lang variable for "First Post Time" in View forum. Thanks, sakkiotto for the patch!

Version 1.2.1 is now available for download.

sakkiotto
Registered User
Posts: 227
Joined: Mon Jun 13, 2005 9:45 pm

Re: [DEV] TimeAgo timestamps

Post by sakkiotto » Fri Aug 14, 2015 11:33 am

MuhClaren wrote:A minor release is available which fixes the lang variable for "First Post Time" in View forum. Thanks, sakkiotto for the patch!

Version 1.2.1 is now available for download.
np :) i have sent italian translation

User avatar
DevMakoto
Registered User
Posts: 65
Joined: Tue Jun 23, 2015 3:38 pm
Name: Carlos Mayorga
Contact:

Re: [DEV] TimeAgo timestamps

Post by DevMakoto » Fri Aug 14, 2015 4:21 pm

in spanish diferente position "ago"

in english
1 year 2 months 3 days ago
in spanish
EN: 1 year 2 months 3 days ago
ES: Hace 1 año 2 meses 3 dias
pls fix

other fix
Image

User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [DEV] TimeAgo timestamps

Post by MuhClaren » Sat Aug 15, 2015 9:09 pm

sakkiotto wrote:
MuhClaren wrote:A minor release is available which fixes the lang variable for "First Post Time" in View forum. Thanks, sakkiotto for the patch!

Version 1.2.1 is now available for download.
np :) i have sent italian translation
Added to the package, thanks!

User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [DEV] TimeAgo timestamps

Post by MuhClaren » Sat Aug 15, 2015 9:11 pm

DevMakoto wrote: pls fix
No one has contributed the ES language files.

pls fix :D

Miri4ever
Registered User
Posts: 409
Joined: Sat Mar 07, 2015 11:18 am

Re: [DEV] TimeAgo timestamps

Post by Miri4ever » Mon Aug 17, 2015 3:54 pm

Just testing my German translation but got a little problem with TA_AGO

Looks like this now:

1 Tag 17 Stunden Vor (Samstag 15. August 2015, 23:43)

But we would say

Vor 1 Tag 17 Stunden(Samstag 15. August 2015, 23:43)

So in German this TA_AGO should going in front of the code.

Translations made so far. But as I said still testing if everything is correct:

Code: Select all

	[
		// Set the plurals - <key> => 'plural string' where <key> is the unit count, such as number of days
		'TA_SECOND'                   => [0 => 'Sekunden', 1 => 'Sekunde', 2 => 'Sekunden', 3 => 'Sekunden', 4 => 'Sekunden',],
		'TA_MINUTE'                   => [0 => 'Minuten', 1 => 'Minute', 2 => 'Minuten', 3 => 'Minuten', 4 => 'Minuten',],
		'TA_HOUR'                     => [0 => 'Stunden', 1 => 'Stunde', 2 => 'Stunden', 3 => 'Stunden', 4 => 'Stunden',],
		'TA_DAY'                      => [0 => 'Tage', 1 => 'Tag', 2 => 'Tagen', 3 => 'Tagen', 4 => 'Tagen',],
		'TA_WEEK'                     => [0 => 'Wochen', 1 => 'Woche', 2 => 'Wochen', 3 => 'Wochen', 4 => 'Wochen',],
		'TA_MONTH'                    => [0 => 'Monaten', 1 => 'Monat', 2 => 'Monaten', 3 => 'Monaten', 4 => 'Monaten',],
		'TA_YEAR'                     => [0 => 'Jahren', 1 => 'Jahr', 2 => 'Jahren', 3 => 'Jahren', 4 => 'Jahren',],
		'TA_DECADE'                   => [0 => 'Dekaden', 1 => 'Dekade', 2 => 'Dekaden', 3 => 'Dekaden', 4 => 'Dekaden',],
		'TA_AGO'                      => 'Vor',
		'TA_OFF'                      => 'aus',
		'TA_SHORT'                    => 'Kurz (Vor 1 Jahr)',
		'TA_MEDIUM'                   => 'Mittel (Vor 1 Jahr 2 Monaten)',
		'TA_FULL'                     => 'Vollständig (Vor 1 Jahr 2 Monaten 3 Tagen)',
		// general settings
		'TA_GENERAL_SETTINGS'         => 'Generelle Einstellungen',
		'TA_GENERAL_SETTINGS_EXPLAIN' => 'Anpassen der Zeit Bevor Einstellungen',
		'TA_DISPLAY_SETTINGS'         => 'TimeAgo Format Optionen',
		'TA_CAT'                      => 'index.php',
		'TA_CAT_EXPLAIN'              => 'Fügt Zeit Bevor auf Forum-Kategorien für letzte Beiträge hinzu',
		'TA_VIEWFORUM'                => 'viewforum.php',
		'TA_VIEWFORUM_EXPLAIN'        => 'Fügt Zeit Bevor auf die Beitrags Listen in der Forum Übersicht hinzu',
		'TA_VIEWTOPIC'                => 'viewtopic.php',
		'TA_VIEWTOPIC_EXPLAIN'        => 'Fügt Zeit Bevor jedem Beitrag hinzu',
		'TA_EXTENDED'                 => 'Erweitert',
		'TA_EXTENDED_EXPLAIN'         => 'Fügt eine native phpBB Zeitmarke am Ende von Zeit Bevor hinzu.',
		'TA_EXTENDED_EXAMPLE'         => '(Z.b. Vor 9 Stunden (Sa Aug 08, 2015 11:57))',
		'TA_DETAIL'                   => 'Detail Level',
	]

Code: Select all

	[
		// module category and section titles
		'ACP_TIMEAGO_TITLE'            => 'Zeit Bevor',
		'ACP_TIMEAGO_GENERAL_SETTINGS' => 'Generelle Einstellungen',
	]
Homepage: Terra Oceanica

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6015
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] TimeAgo timestamps

Post by Raul [ThE KuKa] » Mon Aug 17, 2015 4:03 pm

"PR" Spanish translation ready. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: [DEV] TimeAgo timestamps

Post by Neuropass » Mon Aug 17, 2015 5:19 pm

DevMakoto wrote:in spanish diferente position "ago"

in english
1 year 2 months 3 days ago
in spanish
EN: 1 year 2 months 3 days ago
ES: Hace 1 año 2 meses 3 dias
pls fix

other fix
Image

Out of curiosity what theme are you using? looks cool :mrgreen:

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6015
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] TimeAgo timestamps

Post by Raul [ThE KuKa] » Mon Aug 17, 2015 5:21 pm

FLATBOOTS, it is not free style...
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



Locked

Return to “Abandoned Extensions”