Search found 1005 matches

by kasimi
Sun Jan 10, 2021 1:25 pm
Forum: Extension Writers Discussion
Topic: Loop in mail template
Replies: 4
Views: 318

Re: Loop in mail template

assign_block_vars() is called with the elements of the array, not the array itself. foreach ($array => $el) { $template->assign_block_vars('blockname', $el); } is roughly the same as this: $template->assign_vars([ 'blockname' => $array, ]); The second code only works since Twig is used as template ...
by kasimi
Sat Jan 09, 2021 10:15 pm
Forum: Extension Writers Discussion
Topic: Loop in mail template
Replies: 4
Views: 318

Re: Loop in mail template

Remove all <!-- BEGIN x --> and <!-- END x --> and use

Code: Select all

$messenger->assign_vars([
    'USR_TPC_LIST' => $topic_links,
]);
Twig then loops over the USR_TPC_LIST array with {% for user_topic in USR_TPC_LIST %}.
by kasimi
Mon Jan 04, 2021 4:15 pm
Forum: Extension Writers Discussion
Topic: Customising an Extension
Replies: 4
Views: 714

Re: Customising an Extension

The % operator has higher priority than +. This should work:

Code: Select all

{% if loops.postrow|length > 1 and (postrow.S_ROW_COUNT + 1) % 5 == 0 %}
by kasimi
Tue Oct 06, 2020 9:01 pm
Forum: [3.3.x] Extensions Database Releases
Topic: Advanced BBCode Box
Replies: 4
Views: 1736

Re: Advanced BBCode Box

Extension Updated to version 3.3.0
See first post for Download Link
by kasimi
Tue Oct 06, 2020 9:01 pm
Forum: [3.2.x] Extensions Database Releases
Topic: Advanced BBCode Box
Replies: 8
Views: 6489

Re: Advanced BBCode Box

Extension Updated to version 3.3.0
See first post for Download Link
by kasimi
Tue Oct 06, 2020 8:58 pm
Forum: [3.3.x] Extensions Database Releases
Topic: Poster IP in Viewtopic
Replies: 1
Views: 635

Re: Poster IP in Viewtopic

Extension validated/released
by kasimi
Wed Sep 30, 2020 12:25 pm
Forum: [3.3.x] Extensions Database Releases
Topic: Terms of use
Replies: 2
Views: 1219

Re: Terms of use

Extension validated/released
by kasimi
Wed Sep 30, 2020 12:25 pm
Forum: [3.2.x] Extensions Database Releases
Topic: Terms of use
Replies: 2
Views: 1073

Re: Terms of use

Extension validated/released
by kasimi
Sat Sep 26, 2020 9:19 pm
Forum: Extension Writers Discussion
Topic: Global variables question
Replies: 10
Views: 1010

Re: Global variables question

If you need the value across page loads, store it in the users table. If you need it only during a single page load, store it in a service that you then inject where you need it.
by kasimi
Sat Aug 22, 2020 10:29 am
Forum: Extensions in Development
Topic: [3.2][3.3][ALPHA] BBCode Permissions
Replies: 13
Views: 1373

Re: [3.2][3.3][ALPHA] BBCode Permissions

Thanks for your feedback. Here's the updated XML check: https://github.com/kasimi/phpbb-ext-bbcodepermissions/commit/5fad8fe7bb2a34f0496a7f38d705cd9c2fa3fbac Maybe it makes sense to add a helper method for this to the TextFormatter? you may be able to simplify the way non-authorized BBCodes are disp...
by kasimi
Wed Aug 19, 2020 10:58 am
Forum: Extensions in Development
Topic: [3.2][3.3][ALPHA] BBCode Permissions
Replies: 13
Views: 1373

Re: [3.2][3.3][ALPHA] BBCode Permissions

1.0.0-a3 is now available. BBCode permissions in private messages and mChat messages are now supported. Minimum requirements are PHP 7.2.0 or later and phpBB 3.2.10 or 3.3.1 or later (phpBB 3.3.0 is not supported).
by kasimi
Sun Aug 02, 2020 7:06 pm
Forum: Extension Writers Discussion
Topic: Changing FAQ text
Replies: 5
Views: 898

Re: Changing FAQ text

Did you see this extension? viewtopic.php?t=2481781

Go to advanced search