Page 2 of 5

Re: [DEV] Board Announcements

Posted: Sun Jun 15, 2014 9:00 am
by FoFa
Hello,

Installed on my testing board (running beta 4) and can't see where to adjust parameters in the ACP.

Could you please tell me where I have to go ?

Many thanks

Re: [DEV] Board Announcements

Posted: Sun Jun 15, 2014 3:07 pm
by aleha
VSE wrote:Extensions can really do whatever they want, so long as the doc blocks are valid.

Having said that, we have actually been using @package incorrectly:
"The @package tag can be used as a counterpart or supplement to Namespaces."
http://www.phpdoc.org/docs/latest/refer ... ckage.html

I would say the following format should be the way to go moving forward:

Code: Select all

/**
*
* Board Announcements extension for the phpBB Forum Software package.
*
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/ 
Yes, this looks fine. Just saw your relevant PR for boardrules.

Re: [DEV] Board Announcements

Posted: Mon Jun 16, 2014 6:37 am
by MattF
ForumsFaciles wrote:Hello,

Installed on my testing board (running beta 4) and can't see where to adjust parameters in the ACP.

Could you please tell me where I have to go ?

Many thanks
This extension is still in development. You should wait until a release version is announced (soon).

Re: [DEV] Board Announcements

Posted: Mon Jun 16, 2014 6:42 am
by FoFa
@VSE: yes I was too fast. Following on GitHub.

Re: [DEV] Board Announcements

Posted: Tue Jun 17, 2014 5:31 am
by FoFa
Hello,

Juste installed it to verify my French translation and got an error:

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "acp_posting_buttons.html" (looked into: ./../ext/phpbb/boardannouncements/adm/style, ./../adm/style) in "board_announcements.html" at line 69.' in /public_html/xxxxxxx/xxxxxxx/net/communaute/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:202 Stack trace: #0 /public_html/xxxxxxx/xxxxxxx/net/communaute/phpbb/template/twig/loader.php(106): Twig_Loader_Filesystem->findTemplate('acp_posting_but...') #1 /public_html/xxxxxxx/xxxxxxx/net/communaute/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(138): phpbb\template\twig\loader->findTemplate('acp_posting_but...') #2 /public_html/xxxxxxx/xxxxxxx/net/communaute/vendor/twig/twig/lib/Twig/Environment.php(265): Twig_Loader_Filesystem->getCacheKey('acp_posting_but...') #3 /public_html/xxxxxxx/xxxxxxx/net/communaute/vendor/twig/twig/lib/Twig/Environment.php(312): Twig_Environment->getTemplateClass('acp_posting_but...', NULL) #4 /public_html/domains/forumsfaciles/net/ in /public_html/xxxxxxx/xxxxxxx/net/communaute/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 202
I'm running 3.1.-B-4

Regards

Re: [DEV] Board Announcements

Posted: Tue Jun 17, 2014 7:40 am
by MattF
It's not compatible with 3.1.0-b4. You need to use the most recent version of the develop-ascraeus branch or wait for beta5.

Re: [DEV] Board Announcements

Posted: Wed Jun 18, 2014 8:27 pm
by FoFa
Thanks. So I will try keeping my 3.1.x testing board up-to-date

Re: [BETA] Board Announcements

Posted: Wed Jun 25, 2014 11:34 pm
by EXreaction
First Beta released! :)

Re: [DEV] Board Announcements

Posted: Fri Jun 27, 2014 5:46 pm
by noth
this is looking great :mrgreen:

and the idea of a "DISMISS NOTICE" an X top right that users can simply hit to cancel the announcement is something that certainly never occurred to me!! users will love it!

I know admins can refresh their announcement e.g. when a new announcement hits but even so, this dismiss thing is a great new innovation :P

Re: [BETA] Board Announcements

Posted: Fri Jul 04, 2014 2:46 pm
by watisnf.nl
Just installed it on my test board and it looks very simple and nice, the X is a good choice. We won't annoy our user to much that way they can dismiss it when the read it. Well done boys :mrgreen:

It might be a bit early but I have made the Dutch translation:

nl/boardannouncements_common.php

Code: Select all

<?php
/**
*
* Board Announcements extension for the phpBB Forum Software package.
*
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* 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(
	'BOARD_ANNOUNCEMENT_CLOSE'		=> 'Sluit mededeling',
));

nl/info_acp_board_announcements.php

Code: Select all

<?php
/**
*
* Board Announcements extension for the phpBB Forum Software package.
*
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* 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(
	'BOARD_ANNOUNCEMENTS_SETTINGS'			=> 'Instellingen forum mededeling',
	'BOARD_ANNOUNCEMENTS_SETTINGS_EXPLAIN'	=> 'Hier kan je de forum mededeling aanpassen, dit bericht wordt op iedere pagina van je forum getoond.',

	'BOARD_ANNOUNCEMENTS_ENABLE'			=> 'Forum mededeling inschakelen',
	'BOARD_ANNOUNCEMENTS_GUESTS'			=> 'Laat forum mededeling zien aan gasten',

	'BOARD_ANNOUNCEMENTS_BGCOLOR'			=> 'Achtergrond kleur',
	'BOARD_ANNOUNCEMENTS_BGCOLOR_EXPLAIN'	=> 'Je kunt de achtergrond kleur van de forum mededeling aanpassen door het gebruik van een hex code (e.g: FFFF80). Laat dit veld leeg om de standaard kleur te gebruiken.',

	'BOARD_ANNOUNCEMENTS_TEXT'				=> 'Forum mededeling bericht',
	'BOARD_ANNOUNCEMENTS_PREVIEW'			=> 'Forum mededeling- Voorbeeld',

	'BOARD_ANNOUNCEMENTS_UPDATED'			=> 'Forum mededeling succesvol bijgewerkt.',

	// ACP Module
	'ACP_BOARD_ANNOUNCEMENTS'				=> 'Forum mededeling ',
	'ACP_BOARD_ANNOUNCEMENTS_SETTINGS'		=> 'Instellingen mededeling ',
));

Edit: July 19, 2014

You can download the Dutch translation on Github

Re: [BETA] Board Announcements

Posted: Fri Jul 04, 2014 8:17 pm
by Raul [ThE KuKa]
Spanish translation updated here ;)

Re: [BETA] Board Announcements

Posted: Sun Jul 13, 2014 2:16 pm
by EXreaction
Beta 2 released

Re: [BETA] Board Announcements

Posted: Mon Jul 14, 2014 1:08 am
by cprgolds
Add me to list of satisfied users. I set this up on my test board (RC2) with 1.0.0-b1 of the extension.

No problem whatsoever.

Did not see smilies -- am assuming they are not in the extension yet.

Thanks guys... Looks great.

Cheers,

Rick

NB: actually I had beta 2 of the extension. The zip file name is beta 2, but the version in the extensions manager shows beta 1.

Re: [BETA] Board Announcements

Posted: Mon Jul 14, 2014 1:23 pm
by tbackoff
cprgolds wrote:NB: actually I had beta 2 of the extension. The zip file name is beta 2, but the version in the extensions manager shows beta 1.
Looks like composer wasn't updated.

Re: [BETA] Board Announcements

Posted: Mon Jul 14, 2014 3:49 pm
by MattF
cprgolds wrote:Did not see smilies -- am assuming they are not in the extension yet
There is no smiley popup in the announcement message editor, as the ACP posting template does not have smileys included in it. That does not mean, however, that you can't still use them. You just have to type them in manually like: :) :)