Search found 860 matches

by kasimi
Sun Nov 11, 2018 4:39 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 23
Views: 1321

Re: [3.2][BETA] Poll on Index

Open this extension's ext.php and delete the is_enableable() function. If it works now, you're running a PHP version below 5.5.
by kasimi
Sat Nov 10, 2018 3:30 pm
Forum: Extension Writers Discussion
Topic: S9 TextFormatter PHP Injection via phpBB not working
Replies: 3
Views: 105

Re: S9 TextFormatter PHP Injection via phpBB not working

Instead of creating a new configurator, did you try using the configurator provided in the event data?

Code: Select all

$event['configurator']->BBCodes->addCustom('[try string={TEXT}]', '{@string} is a test');
by kasimi
Fri Nov 09, 2018 10:43 pm
Forum: Extension Writers Discussion
Topic: S9 TextFormatter PHP Injection via phpBB not working
Replies: 3
Views: 105

Re: S9 TextFormatter PHP Injection via phpBB not working

Your event listener is chemtag_filter but it should be configure_chemtag:

Code: Select all

'core.text_formatter_s9e_configure_after' => 'cconfigure_chemtag'
by kasimi
Fri Nov 09, 2018 10:40 pm
Forum: Extensions in Development
Topic: [RC] Digests 3.2.9
Replies: 871
Views: 54144

Re: [RC] Digests 3.2.9

You can use mkdir()'s 3rd parameter $recursive instead of creating each directory separately.
by kasimi
Fri Nov 09, 2018 11:30 am
Forum: Extensions in Development
Topic: [3.2][RC] Mark Read Confirm
Replies: 12
Views: 1506

Re: [3.2][RC] Mark Read Confirm

This would require the extension to check on each page load if there is at least one topic to mark read, something that uses too many resources for too little benefit.
by kasimi
Sun Nov 04, 2018 8:45 pm
Forum: Extension Writers Discussion
Topic: PHP Error using language related functions
Replies: 8
Views: 207

Re: PHP Error using language related functions

One more thing: info_*.php language files are loaded automatically by phpBB. In order to not load unneeded language files throughout your xCP, a common way to solve this is to put only the module title (and log messages, if you have any) in the info_ language file, and move all other language string...
by kasimi
Sun Nov 04, 2018 8:02 pm
Forum: Extension Writers Discussion
Topic: PHP Error using language related functions
Replies: 8
Views: 207

Re: PHP Error using language related functions

friedfry wrote:
Sun Nov 04, 2018 7:09 pm

Code: Select all

global $language
The language service is not available globally, you need to get it from the container:

Code: Select all

global $phpbb_container;
$language = $phpbb_container->get('language');
by kasimi
Sun Nov 04, 2018 2:05 pm
Forum: Extension Writers Discussion
Topic: Pre Validator and GPL v2
Replies: 13
Views: 243

Re: Pre Validator and GPL v2

This is the only reference I could find: https://tracker.phpbb.com/browse/PHPBB3-15525
by kasimi
Sun Nov 04, 2018 12:01 pm
Forum: Extension Writers Discussion
Topic: Pre Validator and GPL v2
Replies: 13
Views: 243

Re: Pre Validator and GPL v2

You can check the latest queue statistics here: https://www.phpbb.com/customise/db/queu ... /extension
by kasimi
Sun Nov 04, 2018 11:58 am
Forum: Extension Writers Discussion
Topic: Pre Validator and GPL v2
Replies: 13
Views: 243

Re: Pre Validator and GPL v2

The license field in the composer.json needs to be GPL-2.0-only since January. It looks like the EVP at https://www.phpbb.com/extensions/epv/ is outdated.
paul999 wrote: ping
by kasimi
Fri Nov 02, 2018 10:03 am
Forum: [3.2.x] Support Forum
Topic: [PHPBB_V3.2.3]Cannot send emails via smtp
Replies: 6
Views: 280

Re: [PHPBB_V3.2.3]Cannot send emails via smtp

Did you try using ssl:// instead of starttls://?
by kasimi
Tue Oct 30, 2018 5:33 pm
Forum: Extension Writers Discussion
Topic: php or twig if statements - which are preferred?
Replies: 7
Views: 227

Re: php or twig if statements - which are preferred?

It all boils down to personal preference I guess, but what you're doing looks like a key-value lookup to me, so I'd use an array: $ashields_file_style = [ 0 => '?LongCache=true&style=flat', 1 => '?LongCache=true&style=plastic', 2 => '?LongCache=true&style=flat-square', ... ]; // Add to your main ass...
by kasimi
Mon Oct 29, 2018 8:37 pm
Forum: Extension Writers Discussion
Topic: Extensions's event override.
Replies: 5
Views: 223

Re: Extensions's event override.

3Di showed an example in the first post, note the -1.

If two events have the same priority, they are executed in the order of inclusion (service.yml), though that's something you shouldn't rely on.
by kasimi
Mon Oct 29, 2018 7:12 pm
Forum: Extension Writers Discussion
Topic: Extensions's event override.
Replies: 5
Views: 223

Re: Extensions's event override.

If you mean the negative priority then yes, it's perfectly valid.

Depending on what makes more sense in your situation, the other solution would be to give the event handler you quoted a priority of 0 (default) and give the other extension's handler a priority greater than 0.
by kasimi
Mon Oct 29, 2018 5:46 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 23
Views: 1321

Re: [3.2][BETA] Poll on Index

lozu wrote:
Mon Oct 29, 2018 12:27 am
The selected extension cannot be enabled, please verify the extension’s requirements.
What do you have on line 31 in your /includes/constants.php? Does it match your installed phpBB version?

Go to advanced search