phpBB Countdown

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
Post Reply
User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

phpBB Countdown

Post by dmzx »

Extension Name: phpBB Countdown
Author: Stoker phpBB3 BBCodes - Forum extension by dmzx

Extension Description:

The phpBB Countdown extension display a countdown in your forum header, just below the navbar. It can be configured in ACP. You can enable/disable the countdown and set it to count down or count up. You can also set the date and a text displayed before the countdown and a text that will replace the countdown when finished.




Added admin controller.
Added Changelog file.
Added acp language file.
Updated code.


Code update


Added up/down to lang file and acp module file change and added version in acp.

Screenshots:
countdown.png
ACPcountdown.png


Xmas and new year edition. Updated
dmzx_countdown_1_0_5.zip



Extension Download:
Download-link
phpBB Countdown v1.0.4
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `countdown`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `countdown` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/countdown/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `PhpBB Countdown` under the Disabled Extensions list, and click its `Enable` link.
You do not have the required permissions to view the files attached to this post.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12

Re: PhpBB Countdown

Post by martin »

Tested installs fine but no acp settings go to system tab admin module managment tab click ext countdown module was made but not in the ext tab.
Image

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: PhpBB Countdown

Post by dmzx »

martin wrote:Tested installs fine but no acp settings go to system tab admin module managment tab click ext countdown module was made but not in the ext tab.
Yes have to look at that, if you add the module manually the ext. will work.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12

Re: PhpBB Countdown

Post by martin »

33.png
You do not have the required permissions to view the files attached to this post.
Image

User avatar

Bert
Users
Users
Posts: 4
Joined: 24 Feb 2015, 12:50

Re: PhpBB Countdown

Post by Bert »

Hello from Germany,

not perfect, but maybe it will help further - language_de

Greeting

common.php

Code: Select all

<?php
/**
*
* @package phpBB Extension - PhpBB Countdown
* @copyright (c) 2015 dmzx - https://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* @Author Stoker - http://www.phpbb3bbcodes.com
*
*/


/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'COUNT_YEARS'				=> 'Jahre',
	'COUNT_MONTHS'			=> 'Monate',
	'COUNT_DAYS'				=> 'Tage',
	'COUNT_HOURS'				=> 'Std',
	'COUNT_MINUTES'			=> 'Min',
	'COUNT_SECONDS'			=> 'Sek',
	'INSTALL_COUNTDOWN'					=> 'Installiere PhpBB Countdown',
	'INSTALL_COUNTDOWN_CONFIRM'			=> 'Bist du bereit, die PhpBB Countdown Extension zu installieren?',
	'COUNTDOWN'							=> 'PhpBB Countdown',
	'COUNTDOWN_EXPLAIN'					=> 'Installiere PhpBB Countdown Datenbankänderungen mit UMIL Auto Verfahren.',
	'UNINSTALL_COUNTDOWN'				        => 'Uninstall PhpBB Countdown',
	'UNINSTALL_COUNTDOWN_CONFIRM'		        => 'Bist du bereit, die PhpBB Ext. Countdown zu deinstallieren? Alle gespeicherten Einstellungen und Daten von dieser Ext. werden entfernt!',
	'UPDATE_COUNTDOWN'					=> 'Update PhpBB Countdown',
	'UPDATE_COUNTDOWN_CONFIRM'			=> 'Bist du bereit, die PhpBB Countdown Ext. zu aktualisieren?',
		
	'ACP_COUNTDOWN_CONFIG'				=> 'PhpBB Countdown',
	'ACP_COUNTDOWN_CONFIG_EXPLAIN'		        => 'Dies ist die Konfigurationsseite für Countdown Extension by <a href="https://www.dmzx-web.net"><strong>dmzx</strong></a>. Author Stoker.',
	'COUNTDOWN_VERSION'					=> 'Version',
	'COUNTDOWN_DONATE'					=> 'Bitte beachte <a href="http://www.phpbb3bbcodes.com/donate.php"><strong>Donation</strong></a> wenn dir die Extension gefällt',
	'ACP_COUNTDOWN_CONFIG_SET'			=> 'Konfiguration',	
	'COUNTDOWN_CONFIG_SAVED'			        => 'PhpBB Countdown Einstellung gespeichert',	
		
	'COUNTDOWN_ENABLE'		                => 'Aktiviere Countdown',
	'COUNTDOWN_ENABLE_EXPLAIN'			=> 'Aktiviere oder Deaktiviere PhpBB Countdown hier',
	'COUNTDOWN_DIRECTION' 			        => 'Countdown Anweisung',
	'COUNTDOWN_DIRECTION_EXPLAIN'		=> 'Der Countdown kann sowohl nach oben und unten zählen. Ja wählen, um nach unten zu zählen',
	'COUNTDOWN_DATE' 					        => 'Countdown Datum',
	'COUNTDOWN_DATE_EXPLAIN'			=> 'Example: 2012/11/30 00:00:00',
	'COUNTDOWN_TEXT' 					=> 'Countdown Text',
	'COUNTDOWN_TEXT_EXPLAIN'			=> 'Der Countdown Text wird direkt vor dem Countdown angezeigt. Sie können HTML nutzen',
	'COUNTDOWN_COMPLETE'	 			=> 'Vollständiger Countdown Text',
	'COUNTDOWN_COMPLETE_EXPLAIN' 		=> 'Dieser Text wird den Countdown ersetzen wenn er abgeschlossen ist. Sie können HTML nutzen',
	'COUNTDOWN_TESTMODE' 				=> 'Aktiviere Testmode',
	'COUNTDOWN_TESTMODE_EXPLAIN'		=> 'Wenn Testmodus aktiviert ist können nur Administratoren den Countdown sehen',
	'COUNTDOWN_YEAR'	 				=> 'Aktiviere Jahre',
	'COUNTDOWN_YEAR_EXPLAIN' 			=> 'Aktiviere diese Funktion um Jahre im Countdown zu anzuzeigen',
	'COUNTDOWN_MONTH'	 			=> 'Aktiviere Monate',
	'COUNTDOWN_MONTH_EXPLAIN' 		=> 'Aktiviere diese Funktion um Monate im Countdown anzuzeigen',
	'COUNTDOWN_OFFSET_ENABLE' 			=> 'Aktiviere die Zeitzone',
	'COUNTDOWN_OFFSET_ENABLE_EXPLAIN' 	=> 'Aktivieren oder Deaktiveren der Zeitzone',
	'COUNTDOWN_OFFSET' 					=> 'Zeitzone Einstellung',
	'COUNTDOWN_OFFSET_EXPLAIN'			=> 'Wenn du eine bestimmte Zeitzone für alle Benutzer verwenden möchtest, kannst du diese hier eingeben.<br />Eine "-6" für Central Standard Time und "4" für Golf Standard Time',
));
info_acp_countdown.php

Code: Select all

<?php
/**
*
* @package phpBB Extension - PhpBB Countdown
* @copyright (c) 2015 dmzx - https://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* @Author Stoker - http://www.phpbb3bbcodes.com
*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}
if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(
	'ACP_COUNTDOWN'			=> 'PhpBB Countdown',
	'COUNTDOWN_CONFIG'		=> 'PhpBB Countdown Einstellung',
));

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: PhpBB Countdown

Post by dmzx »

Bert wrote:Hello from Germany,

not perfect, but maybe it will help further - language_de

Greeting

Updated :tumbsyes:

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: PhpBB Countdown

Post by dmzx »

Extension Version: 1.0.2

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12

Re: PhpBB Countdown

Post by martin »

Small fix change $(this).html("{COUNTDOWN_COMPLETE}");
},
leadingZero: true,


to

$(this).html("{COUNTDOWN_COMPLETE}");
},
leadingZero: false,


demo on mine
Image

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: PhpBB Countdown

Post by dmzx »

martin wrote:Small fix change $(this).html("{COUNTDOWN_COMPLETE}");
},
leadingZero: true,


to

$(this).html("{COUNTDOWN_COMPLETE}");
},
leadingZero: false,


demo on mine

Indeed hate the leadingZero :wink:

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25

Re: PhpBB Countdown

Post by Jaantje »

ext/dmzx/countdown/language/en/common.php
Find This may be a partial find and not the whole line

Code: Select all

'COUNTDOWN_OFFSET_ENABLE_EXPLAIN' 	=> 'Enable or disable the Ptimezone here',
Replace with Replace the preceding lines with the following

Code: Select all

'COUNTDOWN_OFFSET_ENABLE_EXPLAIN' 	=> 'Enable or disable the timezone here',
The P from Ptimezone is too much :thumbup:
Grreeetttttzzzzz, Jaantje

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25

Re: PhpBB Countdown

Post by Jaantje »

se il vous plaît the dutch translation :wink:
nl.zip
Grreeetttttzzzzz, Jaantje

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: PhpBB Countdown

Post by dmzx »

Jaantje wrote:se il vous plaît the dutch translation :wink:
nl.zip

:thumbup: added!

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12

Re: PhpBB Countdown

Post by martin »

css file

Code: Select all

.timecount{
	min-height:20px;
Much better.
Image

User avatar

Allen42
Users
Users
Posts: 5
Joined: 12 Dec 2014, 02:33

Re: PhpBB Countdown

Post by Allen42 »

This extension works greatly, and set the countdown on my live forums for the new phpBB board version releases and also happy new year (every year)! :thumbup:

User avatar

atessa_61
Users
Users
Posts: 1
Joined: 20 Mar 2015, 11:34

Re: PhpBB Countdown

Post by atessa_61 »

The letter "ñ" writes me as "??" in the Spanish language.
3.jpg
4.jpg
You do not have the required permissions to view the files attached to this post.

Post Reply