[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
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [BETA] TimeAgo timestamps

Post by Miri4ever »

Working like a charm at my forum. Updated German Translations a little bit:

Code: Select all

		$lang,
		[
			// module category and section titles
			'ACP_TIMEAGO_TITLE'            => 'Vergangene Zeit',
			'ACP_TIMEAGO_GENERAL_SETTINGS' => 'Allgemeine Einstellungen',
		]
	);

Code: Select all

	$lang = array_merge(
		$lang,
		[
			// 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'         => 'Allgemeine Einstellungen',
			'TA_GENERAL_SETTINGS_EXPLAIN' => 'Anpassen der Vergangenen Zeit Einstellungen',
			'TA_DISPLAY_SETTINGS'         => 'Vergangene Zeit Format Optionen',
			'TA_CAT'                      => 'index.php',
			'TA_CAT_EXPLAIN'              => 'Fügt Vergangene Zeit auf Forum-Kategorien für letzte Beiträge hinzu',
			'TA_VIEWFORUM'                => 'viewforum.php',
			'TA_VIEWFORUM_EXPLAIN'        => 'Fügt Vergangene Zeit auf die Beitrags Listen in der Forum Übersicht hinzu',
			'TA_VIEWTOPIC'                => 'viewtopic.php',
			'TA_VIEWTOPIC_EXPLAIN'        => 'Fügt Vergangene Zeit jedem Beitrag hinzu',
			'TA_EXTENDED'                 => 'Erweitert',
			'TA_EXTENDED_EXPLAIN'         => 'Fügt eine native phpBB Zeitmarke am Ende von Vergangene Zeit hinzu.',
			'TA_EXTENDED_EXAMPLE'         => '(Z.b. Vor 9 Stunden (Sa Aug 08, 2015 11:57))',
			'TA_DETAIL'                   => 'Detail Level',
			'TA_TIMER_SETTINGS'           => 'Countdown Einstellungen',
			'TA_TIMER'                    => 'Countdown',
			'TA_TIMER_EXPLAIN'            => 'Dauer der Zeit (Tagen) von der Beitragszeit wo Vergangene Zeit aktiv sein soll. Beispiel: Einstellungen von 2 wird Vergangene Zeit veranlassen die normale PHPBB-Zeit Einstellung zurückzusetzen. Wird kein Wert angegeben wird Vergangene Zeit niemals zurückgesetzt. Mögliche Eingaben: 1 - 999, 0 oder leer schaltet die Option aus.',
			'TA_DAYS'                     => 'Tage',
		]
	);
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

Miri4ever wrote:Working like a charm at my forum. Updated German Translations a little bit:
Wonderful, thanks!
cycling
Registered User
Posts: 22
Joined: Wed Sep 16, 2015 7:36 am

Re: [BETA] TimeAgo timestamps

Post by cycling »

I guess I added Turkish translation (though I'm not so sure if I could manage to add)
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

cycling wrote:I guess I added Turkish translation (though I'm not so sure if I could manage to add)
Hello Friend. Turkish translation would be very much appreciated. I will paste below the two sections which require translation, and when you're finished you can simply paste them back here in a reply. I will handle the rest off the work to import them into the package. :D

Translation required for the text values on the right side -->

Code: Select all

[
// module category and section titles
'ACP_TIMEAGO_TITLE'            => 'TimeAgo',
'ACP_TIMEAGO_GENERAL_SETTINGS' => 'General Settings',
]

Code: Select all

[
// Set the plurals - <key> => 'plural string' where <key> is the unit count, such as number of days
'TA_SECOND'                   => [0 => 'seconds', 1 => 'second', 2 => 'seconds', 3 => 'seconds', 4 => 'seconds'],
'TA_MINUTE'                   => [0 => 'minutes', 1 => 'minute', 2 => 'minutes', 3 => 'minutes', 4 => 'minutes'],
'TA_HOUR'                     => [0 => 'hours', 1 => 'hour', 2 => 'hours', 3 => 'hours', 4 => 'hours'],
'TA_DAY'                      => [0 => 'days', 1 => 'day', 2 => 'days', 3 => 'days', 4 => 'days'],
'TA_WEEK'                     => [0 => 'weeks', 1 => 'week', 2 => 'weeks', 3 => 'weeks', 4 => 'weeks'],
'TA_MONTH'                    => [0 => 'months', 1 => 'month', 2 => 'months', 3 => 'months', 4 => 'months'],
'TA_YEAR'                     => [0 => 'years', 1 => 'year', 2 => 'years', 3 => 'years', 4 => 'years'],
'TA_DECADE'                   => [0 => 'decades', 1 => 'decade', 2 => 'decades', 3 => 'decades', 4 => 'decades'],
'TA_AGO'                      => 'ago',
'TA_OFF'                      => 'Off',
'TA_SHORT'                    => 'Short (1 year ago)',
'TA_MEDIUM'                   => 'Medium (1 year 2 months ago)',
'TA_FULL'                     => 'Full (1 year 2 months 3 days ago)',
// general settings
'TA_GENERAL_SETTINGS'         => 'General Settings',
'TA_GENERAL_SETTINGS_EXPLAIN' => 'Configure TimeAgo settings',
'TA_DISPLAY_SETTINGS'         => 'TimeAgo Format Options',
'TA_CAT'                      => 'index.php',
'TA_CAT_EXPLAIN'              => 'Applies TimeAgo on the Category Forums List for "Last Post"',
'TA_VIEWFORUM'                => 'viewforum.php',
'TA_VIEWFORUM_EXPLAIN'        => 'Applies TimeAgo on the list of topics in forum view',
'TA_VIEWTOPIC'                => 'viewtopic.php',
'TA_VIEWTOPIC_EXPLAIN'        => 'Applies TimeAgo in each post',
'TA_EXTENDED'                 => 'Extend',
'TA_EXTENDED_EXPLAIN'         => 'Add the native phpBB timestamp to the end of TimeAgo.',
'TA_EXTENDED_EXAMPLE'         => '(E.g. 9 hours ago (Sat Aug 08, 2015 11:57 am))',
'TA_DETAIL'                   => 'Detail Level',
'TA_TIMER_SETTINGS'           => 'Timer Settings',
'TA_TIMER'                    => 'Timer',
'TA_TIMER_EXPLAIN'            => 'Duration of time (days) from the post time that TimeAgo should be active. Example: setting this to 2 will cause TimeAgo to revert to the normal phpBB date-time format after 2 days. If no value is set TimeAgo will never revert. Valid input: 1 - 999, 0 or blank disables this option',
'TA_DAYS'                     => 'Days',
]
cycling
Registered User
Posts: 22
Joined: Wed Sep 16, 2015 7:36 am

Re: [BETA] TimeAgo timestamps

Post by cycling »

I added those to GitHub (again, I guess :mrgreen: )

(should be saved as UTF-8 else there will be some weird symbols. Proven by experience :) )

Code: Select all

<?php
	/**
	 * TimeAgo - LANGUAGE FILE.
	 *
	 * This file contains the (Turkish) language definitions for
	 * the labels used in the ACP extensions tab
	 *
	 * PHP Version 5.4
	 *
	 * @category  PHP
	 *
	 * @author    MuhClaren
	 * @copyright 2015 (c) MOP
	 * @license   GNU General Public License v2
	 */
	/**
	 * DO NOT CHANGE.
	 */
	if (defined('IN_PHPBB') === false)
	{
		exit;
	}
	if (empty($lang) || is_array($lang) === false)
	{
		$lang = [];
	}
	$lang = array_merge(
		$lang,
		[
			// module category and section titles
			'ACP_TIMEAGO_TITLE'            => 'TimeAgo',
			'ACP_TIMEAGO_GENERAL_SETTINGS' => 'Genel Ayarlar',
		]
	);

Code: Select all

<?php
	/**
	 * TimeAgo - LANGUAGE FILE.
	 *
	 * This file contains the (Turkish) language definitions for
	 * the labels and explanations text used in the admin control panel
	 * TimeAgo Extension Settings module.
	 *
	 * PHP Version 5.4
	 *
	 * @category  PHP
	 *
	 * @author    MuhClaren
	 * @copyright 2015 (c) MOP
	 * @license   GNU General Public License v2
	 */
	/**
	 * DO NOT CHANGE.
	 */
	if (defined('IN_PHPBB') === false)
	{
		exit;
	}
	if (empty($lang) || is_array($lang) === false)
	{
		$lang = [];
	}
	$lang = array_merge(
		$lang,
		[
			// Set the plurals - <key> => 'plural string' where <key> is the unit count, such as number of days
			'TA_SECOND'                   => [0 => 'saniye', 1 => 'saniye', 2 => 'saniye', 3 => 'saniye', 4 => 'saniye'],
			'TA_MINUTE'                   => [0 => 'dakika', 1 => 'dakika', 2 => 'dakika', 3 => 'dakika', 4 => 'dakika'],
			'TA_HOUR'                     => [0 => 'saat', 1 => 'saat', 2 => 'saat', 3 => 'saat', 4 => 'saat'],
			'TA_DAY'                      => [0 => 'gün', 1 => 'gün', 2 => 'gün', 3 => 'gün', 4 => 'gün'],
			'TA_WEEK'                     => [0 => 'hafta', 1 => 'hafta', 2 => 'hafta', 3 => 'hafta', 4 => 'hafta'],
			'TA_MONTH'                    => [0 => 'ay', 1 => 'ay', 2 => 'ay', 3 => 'ay', 4 => 'ay'],
			'TA_YEAR'                     => [0 => 'yıl', 1 => 'yıl', 2 => 'yıl', 3 => 'yıl', 4 => 'yıl'],
			'TA_DECADE'                   => [0 => 'on yıl', 1 => 'on yıl', 2 => 'on yıl', 3 => 'on yıl', 4 => 'on yıl'],
			'TA_AGO'                      => 'önce',
			'TA_OFF'                      => 'Kapalı',
			'TA_SHORT'                    => 'Kısa (1 yıl önce)',
			'TA_MEDIUM'                   => 'Orta (1 yıl 2 ay önce)',
			'TA_FULL'                     => 'Tam (1 yıl 2 ay 3 gün önce)',
			// general settings
			'TA_GENERAL_SETTINGS'         => 'Genel Ayarlar',
			'TA_GENERAL_SETTINGS_EXPLAIN' => 'TimeAgo seçeneklerini ayarla',
			'TA_DISPLAY_SETTINGS'         => 'TimeAgo Biçim Seçenekleri',
			'TA_CAT'                      => 'index.php',
			'TA_CAT_EXPLAIN'              => 'TimeAgo'yu Kategori Forum Listesindeki "Son Gönderi" için uygular',
			'TA_VIEWFORUM'                => 'viewforum.php',
			'TA_VIEWFORUM_EXPLAIN'        => 'TimeAgo'yu forum görünümdeki başlık listesi için uygular',
			'TA_VIEWTOPIC'                => 'viewtopic.php',
			'TA_VIEWTOPIC_EXPLAIN'        => 'TimeAgo'yu her gönderi için uygular',
			'TA_EXTENDED'                 => 'Detaylandır',
			'TA_EXTENDED_EXPLAIN'         => 'phpBB'nin kendi tarih biçimini TimeAgo'nun sonuna ekler.',
			'TA_EXTENDED_EXAMPLE'         => '(Ör. 9 saat önce (Cts Ağu 08, 2015 11:57 am))',
			'TA_DETAIL'                   => 'Detay Seviyesi',
			'TA_TIMER_SETTINGS'           => 'Süre Ayarları',
			'TA_TIMER'                    => 'Süre',
			'TA_TIMER_EXPLAIN'            => 'Gönderi zamanından itibaren TimeAgo'nun ne kadar süre (gün) aktif olacağını belirler. Örnek: Bu ayarı 2 olarak ayarlarsanız; gönderi yapılmasından 2 gün sonra, TimeAgo phpBB'nin kendi tarih stiline dönmesini sağlar. Eğer herhangi bir değer girilmezse bu dönüşüm sağlanmaz. Geçerli giriş aralığı: 1 - 999'dur, 0 girilmesi veya boş bırakılması bu özelliği devre dışı bırakır.',
			'TA_DAYS'                     => 'Gün',
		]
	);
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

cycling wrote:I added those to GitHub (again, I guess :mrgreen: )

(should be saved as UTF-8 else there will be some weird symbols. Proven by experience :) )
Oh! Most excellent!

I'll merge the branches now and push an updated readme in a few moments! Thank you very much!
cycling
Registered User
Posts: 22
Joined: Wed Sep 16, 2015 7:36 am

Re: [BETA] TimeAgo timestamps

Post by cycling »

"Thank you" for your efforts :)
cycling
Registered User
Posts: 22
Joined: Wed Sep 16, 2015 7:36 am

Re: [BETA] TimeAgo timestamps

Post by cycling »

Is it possible to integrate these two ?
Or how can i do that ?

https://github.com/PayBas/RecentTopics

"Recent Topics" is still native phpBB time format.
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

cycling wrote:Is it possible to integrate these two ?
Or how can i do that ?

https://github.com/PayBas/RecentTopics

"Recent Topics" is still native phpBB time format.
I'll take a look and let you know.
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

cycling wrote:Is it possible to integrate these two ?
Or how can i do that ?

https://github.com/PayBas/RecentTopics

"Recent Topics" is still native phpBB time format.
It looks like Paybas has an event available that I can use to inject the timeago template variables. I should be able to use that to add support for the recent topics extension. Give me a few days or so, and I'll see what I can do. ;)
cycling
Registered User
Posts: 22
Joined: Wed Sep 16, 2015 7:36 am

Re: [BETA] TimeAgo timestamps

Post by cycling »

MuhClaren wrote:It looks like Paybas has an event available that I can use to inject the timeago template variables. I should be able to use that to add support for the recent topics extension. Give me a few days or so, and I'll see what I can do. ;)
Thank you! :)
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

cycling wrote:
MuhClaren wrote:It looks like Paybas has an event available that I can use to inject the timeago template variables. I should be able to use that to add support for the recent topics extension. Give me a few days or so, and I'll see what I can do. ;)
Thank you! :)
My pleasure.

If you pull /timeago/event/listener.php from the last commit I just made, it adds support for paybas recent topics. There are no additional settings or anything, it just listens for the event and if it exists, timeago injects into the recent topics template array for recent topics on the index page.

I'm going to consolidate / simplify / optimize some of the timeago core methods. When I'm done in a few days, I will push a new branch and release v1.4.0b with the optimizations & additions.

You can download listener.php now, or wait for 1.4.0. ;)
cycling
Registered User
Posts: 22
Joined: Wed Sep 16, 2015 7:36 am

Re: [BETA] TimeAgo timestamps

Post by cycling »

Perfectly done! :mrgreen:

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

Re: [BETA] TimeAgo timestamps

Post by MuhClaren »

v1.4.0b is now available for download. Changelog is on the first post.

Thanks to everyone for testing and translating! :)
User avatar
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [BETA] TimeAgo timestamps

Post by Miri4ever »

Latest Version 1.4.0 result an error after making new topics or posts and the forum style running out of sync. After a refresh everything is fine again, but directly after posting new I got this:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/mop/timeago/core/timeago_functions.php on line 80: Division by zero
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
The new Topic is display the following time to me:

Vor 0 (19.09.2015, 14:20)
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
Locked

Return to “Abandoned Extensions”