[CDB] [Official Ext] Board Announcements

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
FoFa
Registered User
Posts: 200
Joined: Wed Dec 03, 2008 9:21 am
Name: Daniel L.
Contact:

Re: [DEV] Board Announcements

Post 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
Formly ForumsFaciles :wink:
aleha
Code Contributor
Posts: 61
Joined: Wed Dec 19, 2012 10:42 pm

Re: [DEV] Board Announcements

Post 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.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5859
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [DEV] Board Announcements

Post 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).
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
FoFa
Registered User
Posts: 200
Joined: Wed Dec 03, 2008 9:21 am
Name: Daniel L.
Contact:

Re: [DEV] Board Announcements

Post by FoFa »

@VSE: yes I was too fast. Following on GitHub.
Formly ForumsFaciles :wink:
User avatar
FoFa
Registered User
Posts: 200
Joined: Wed Dec 03, 2008 9:21 am
Name: Daniel L.
Contact:

Re: [DEV] Board Announcements

Post 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
Formly ForumsFaciles :wink:
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5859
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [DEV] Board Announcements

Post 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.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
FoFa
Registered User
Posts: 200
Joined: Wed Dec 03, 2008 9:21 am
Name: Daniel L.
Contact:

Re: [DEV] Board Announcements

Post by FoFa »

Thanks. So I will try keeping my 3.1.x testing board up-to-date
Formly ForumsFaciles :wink:
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [BETA] Board Announcements

Post by EXreaction »

First Beta released! :)
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [DEV] Board Announcements

Post 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
User avatar
watisnf.nl
Registered User
Posts: 607
Joined: Sat Mar 13, 2010 12:53 pm
Location: The Netherlands
Name: David
Contact:

Re: [BETA] Board Announcements

Post 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
Last edited by watisnf.nl on Fri Jul 18, 2014 5:59 pm, edited 1 time in total.
Dutch Translator | Looking for, Dutch extensions translations
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11072
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [BETA] Board Announcements

Post by Raul [ThE KuKa] »

Spanish translation updated here ;)
Last edited by Raul [ThE KuKa] on Tue Aug 12, 2014 11:34 pm, edited 1 time in total.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


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


User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: [BETA] Board Announcements

Post by EXreaction »

Beta 2 released
User avatar
cprgolds
Registered User
Posts: 459
Joined: Thu Oct 11, 2007 5:49 am
Location: Portland, Oregon

Re: [BETA] Board Announcements

Post 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.
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: [BETA] Board Announcements

Post 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.
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5859
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Board Announcements

Post 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: :) :)
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
Locked

Return to “Extensions in Development”