Search found 772 matches

by kasimi
Sun Apr 22, 2018 9:34 am
Forum: Extension Writers Discussion
Topic: ACP_CAT_DOT_MOD vs ACP_EXTENSIONS module_langname
Replies: 2
Views: 75

Re: ACP_CAT_DOT_MOD vs ACP_EXTENSIONS module_langname

Use the former to add your modules to the Extensions tab. Have a look at their translations:

Code: Select all

'ACP_CAT_DOT_MODS'			=> 'Extensions',
'ACP_EXTENSIONS'			=> 'Manage extensions',
by kasimi
Sat Apr 21, 2018 9:17 pm
Forum: Extensions in Development
Topic: [RC] Digests 3.2.6
Replies: 684
Views: 35969

Re: [RC] Digests 3.2.6

// This module is new with the extension so if exists, there are no modules to convert You return $module_id == false , so if the module does not exist, your migration is effectively installed and thus being skipped. I think you want to return $module_id != false here. Also, you don't need to check...
by kasimi
Sat Apr 21, 2018 7:54 pm
Forum: Extensions in Development
Topic: [RC] Digests 3.2.6
Replies: 684
Views: 35969

Re: [RC] Digests 3.2.6

There's a fix available, see the linked PR in the ticket. It has been merged into 3.2.3-RC1, so give an update to that version a shot.
by kasimi
Sat Apr 21, 2018 7:27 pm
Forum: Extensions in Development
Topic: [RC] Digests 3.2.6
Replies: 684
Views: 35969

Re: [RC] Digests 3.2.6

MarkDHamill wrote:
Sat Apr 21, 2018 5:38 pm
There are issues with old modules not deleting that I am still puzzling through.
Maybe this is what's causing your modules not getting deleted: https://tracker.phpbb.com/browse/PHPBB3-15595
by kasimi
Tue Apr 17, 2018 7:59 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 240

Re: user_add and fun with newest_user_colour

You don't need to inject $config if you're not using it yourself. It sounds like you're not actually writing an extension, or you're calling your thing.php script directly, which is not how extension scripts are supposed to be used. You should use a controller and a route. https://area51.phpbb.com/d...
by kasimi
Mon Apr 16, 2018 8:23 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 240

Re: user_add and fun with newest_user_colour

What seems most likely to me is that your $config object isn't initialized properly, either because of wrong code or a stale cache. Are you accessing $config via dependency injection? Have you tried clearing your board cache? Instead of editing core code, add this line before your call to user_add()...
by kasimi
Tue Apr 03, 2018 10:45 pm
Forum: Extension Writers Discussion
Topic: Event core.handle_post_delete_conditions apparently ignores delete_reason
Replies: 8
Views: 308

Re: Event core.handle_post_delete_conditions apparently ignores delete_reason

Brf, $event is an object (more precise: a reference to an object) that coincidentally act's like an array (it implements the ArrayAccess interface). As it's already a reference , there's no need to explicitly add the & . You only need to specify it on object arguments if you wanted to return an obje...
by kasimi
Sun Apr 01, 2018 2:58 pm
Forum: Extension Writers Discussion
Topic: Environment service decoration
Replies: 3
Views: 153

Re: Environment service decoration

I've had similar issues with service decoration. Since your environment extends \phpbb\template\twig\environment , you need to call the parent constructor and pass all its arguments, which means your decoration service needs them injected in addition to the .inner service . Also I'm not sure if the ...
by kasimi
Sun Apr 01, 2018 2:36 pm
Forum: Custom BBCode Development and Requests
Topic: Entering the Sitename via bbCode
Replies: 4
Views: 235

Re: Entering the Sitename via bbCode

Maybe this and this is what you want? You can access the $configurator object in the core.text_formatter_s9e_configure_after event.
by kasimi
Fri Mar 23, 2018 3:53 pm
Forum: Extension Requests
Topic: Move Topics When Locked
Replies: 3
Views: 137

Re: Move Topics When Locked

None of my extensions are abandoned. Feel free to start a new topic with a detailed error description in the extension's support section if you have any problems.
by kasimi
Fri Mar 16, 2018 4:44 pm
Forum: Extension Writers Discussion
Topic: Parse/render twig template in php
Replies: 10
Views: 646

Re: Parse/render twig template in php

Untested, but try this: inject the template.twig.extensions.collection and do:

Code: Select all

$twig->setExtensions($this->twig_extensions);
by kasimi
Fri Mar 16, 2018 3:51 pm
Forum: Extension Writers Discussion
Topic: Move Template switch to php file
Replies: 2
Views: 283

Re: Move Template switch to php file

Use the value you assign to the template for HEADERLINK_PERMISSION in an if condition, for example: if (($url_permission == 1 && $user->data['user_id'] == ANONYMOUS) || ($url_permission == 2 && $user->data['user_id'] != ANONYMOUS) || $url_permission == 3 || ($url_permission == 4 && $this->auth->acl_...
by kasimi
Fri Mar 16, 2018 3:42 pm
Forum: Extension Writers Discussion
Topic: Parse/render twig template in php
Replies: 10
Views: 646

Re: Parse/render twig template in php

U_INDEX is assigned to the template in the page_header() function. This function is called by the controller.helper 's render() method, which you probably call only after calling your parse_template_from_db() method. Either you set all the template variables you want to be available in your templat...
by kasimi
Thu Mar 08, 2018 10:30 am
Forum: Extension Writers Discussion
Topic: config set_atomic
Replies: 12
Views: 405

Re: config set_atomic

I see. So actually it would be better to specify in it as \phpbb\config\config $config in my constructor, as that is what's actually injected. Did you mean \phpbb\config\db $config there? :P I prefer using \phpbb\config\config as my code doesn't require the config values to come from the database, ...
by kasimi
Thu Mar 08, 2018 10:02 am
Forum: Extensions in Development
Topic: [3.1][3.2][BETA] STK Links
Replies: 9
Views: 523

Re: [3.1][3.2][RC] STK Links

Please keep in mind that before we can accept an extension to the CDB, all extensions it depends on need to have at least one approved revision in the CDB.

What this means is that the STK, as an extension, will have to be submitted and approved before you can submit this extension for validation.

Go to advanced search