Search found 1008 matches

by kasimi
Mon Apr 13, 2020 12:39 pm
Forum: Extension Writers Discussion
Topic: Locking post if certain BBCode is present
Replies: 7
Views: 702

Re: Locking post if certain BBCode is present

Maybe the event core.posting_modify_submit_post_before works for you: if ( in_array($event['mode'], ['post', 'edit']) && !$event['post_data']['post_edit_locked'] && strpos($event['data']['message'], '<BUTTON>') !== false ) { $event->update_subarray('post_data', 'post_edit_locked', tr...
by kasimi
Tue Jan 28, 2020 11:01 am
Forum: Extension Requests
Topic: Subforums in Columns for 3.3.0
Replies: 2
Views: 281

Re: Subforums in Columns for 3.3.0

If you want to display the subforums' icons too, see here: https://www.phpbb.com/customise/db/exte ... rumimages/
by kasimi
Wed Jan 22, 2020 7:39 pm
Forum: Abandoned Extensions
Topic: [ABD] [Beta] User Censors Extension 1.0.0
Replies: 10
Views: 1336

Re: [ABD] [Beta] User Censors Extension 1.0.0

This topic has been marked as [ABD] - Abandoned as the extension author has not been active recently. If the extension author wishes to continue development, please PM anyone on the Extension Customisations Team to request this topic be unlocked. Notice! We do not recommend that a user of the phpBB ...
by kasimi
Sat Nov 30, 2019 12:00 pm
Forum: Extensions in Development
Topic: [3.1][3.2][3.3][RC] Twig Converter
Replies: 83
Views: 12073

Re: [3.1][3.2][3.3][RC] Twig Converter

Tastenplayer wrote:
Sat Nov 30, 2019 11:32 am
Failed to create zip file. Error code: 5

Code: Select all

/**
 * Read error
 * @link https://php.net/manual/en/zip.constants.php
 */
const ER_READ = 5;
Does your store folder exist? Does the PHP process have read permission?
by kasimi
Sat Nov 30, 2019 9:29 am
Forum: Extensions in Development
Topic: [3.1][3.2][3.3][RC] Twig Converter
Replies: 83
Views: 12073

Re: [3.1][3.2][3.3][RC] Twig Converter

Version 1.3.0 is available in the first post.
  • Compatibility with phpBB 3.3.x, thanks rxu for the fix
  • Added ZIP error code to error message

@Tastenplayer, try again with this version, it will tell you an error code.
by kasimi
Wed Nov 27, 2019 9:30 pm
Forum: Extensions in Development
Topic: [3.1][3.2][3.3][RC] Twig Converter
Replies: 83
Views: 12073

Re: [3.1][3.2][RC] Twig Converter

phpBB 3.3 uses a more recent version of Twig that doesn't allow accessing the parsed code anymore. I'll look into it when time allows.
by kasimi
Sun Nov 17, 2019 9:04 am
Forum: phpBB Discussion
Topic: View install.xml
Replies: 5
Views: 1103

Re: View install.xml

You can view them in modern browsers by temporarily allowing CORS requests: https://www.thepolyglotdeveloper.com/20 ... s-locally/
by kasimi
Sat Nov 16, 2019 12:40 pm
Forum: phpBB Custom Coding
Topic: update_session_infos() cannot be called
Replies: 2
Views: 489

Re: update_session_infos() cannot be called

You are overwriting the global $user variable:

Code: Select all

$user = $db->sql_fetchrow($res);
Use a different name here, for example $user_row.
by kasimi
Sat Nov 16, 2019 12:27 pm
Forum: Extension Writers Discussion
Topic: Templating Problem (maybe)
Replies: 2
Views: 391

Re: Templating Problem (maybe)

Moving block1 to after loop2one row (probably due to block1 not having been defined before block2) Can you also move block2 after block1 and use assign_block_vars_array() ? Or am I missing something? $block1 = [...]; // flat $block2 = [[...], [...], ...]; // nested $block1['extra'] = '...'; $templa...
by kasimi
Fri Nov 08, 2019 1:56 pm
Forum: Extensions in Development
Topic: [3.2][3.3][RC] Extension .yml check
Replies: 160
Views: 29679

Re: [3.2][RC] Extension .yml check

You are correct, see here: https://symfony.com/blog/new-in-symfony-2-8-deprecating-scopes-and-introducing-shared-services scope: container => shared: true (which is the default) scope: prototype => shared: false scope: request needs more extensive changes: https://symfony.com/blog/new-in-symfony-2-4...
by kasimi
Mon Nov 04, 2019 7:04 pm
Forum: Extensions in Development
Topic: [3.2][3.3][RC] Extension .yml check
Replies: 160
Views: 29679

Re: [3.2][RC] Extension Services Check

The same rules apply, incorrect: - [set_cache, [@cache.driver]], correct: - [set_cache, ['@cache.driver']].

And maybe you should check all .yml files in the config folder & its subfolders.
by kasimi
Mon Nov 04, 2019 10:49 am
Forum: Extensions in Development
Topic: [3.2][3.3][RC] Extension .yml check
Replies: 160
Views: 29679

Re: [3.2][RC] Extension Services Check

You may also want to check services & parameters of setter injections: https://github.com/phpbb/phpbb/blob/rel ... es.yml#L41
by kasimi
Thu Oct 24, 2019 3:13 pm
Forum: Abandoned Extensions
Topic: [ABD] Topic/Post Reactions(like, happy, thanks, angry)
Replies: 472
Views: 85799

Re: Topic/Post Reactions(like, happy, thanks, angry)

Reopened at author's request.

Go to advanced search