Search found 834 matches

by kasimi
Fri Oct 19, 2018 10:03 am
Forum: Extension Writers Discussion
Topic: Php profiling tools? What's using my ram/cpu?
Replies: 5
Views: 122

Re: Php profiling tools? What's using my ram/cpu?

You can use Xdebug 2.6 or later to generate timing & memory profiles and QCacheGrind to visualize them.
by kasimi
Sun Oct 07, 2018 4:08 pm
Forum: Extension Writers Discussion
Topic: {% if style %}
Replies: 3
Views: 160

Re: {% if style %}

Good news. :D

Code: Select all

{% if user.style.style_name|lower != 'mystyle' %}
    this is not displayed in MyStyle
{% endif %}
by kasimi
Sun Oct 07, 2018 3:01 pm
Forum: [3.2.x] Support Forum
Topic: phpBB encountered an error building the container due to an installed extension
Replies: 27
Views: 713

Re: phpBB encountered an error building the container due to an installed extension

Open board root/phpbb/di/container_builder.php Find around line 211 // Don't try to recover if we are in the development environment On a new line above, add throw $e; Browse to your ACP, you should see the error that's causing the phpBB encountered an error building the container due to an install...
by kasimi
Sat Oct 06, 2018 9:18 pm
Forum: Extension Writers Discussion
Topic: Edit Profile Field after core.user_add_after
Replies: 8
Views: 176

Re: Edit Profile Field after core.user_add_after

Yes, the user_row is read only too, but you can add your data to the sql_ary array: $event['sql_ary'] = array_merge($event['sql_ary'], [ 'jblicense_user_id' => ..., ]); At this point it's too late to stop the registration. I'd recommend doing all checks that could result in the registration to be de...
by kasimi
Sat Oct 06, 2018 9:02 pm
Forum: Extension Writers Discussion
Topic: Edit Profile Field after core.user_add_after
Replies: 8
Views: 176

Re: Edit Profile Field after core.user_add_after

After having another look at the class you inherit from , I believe your migration as you posted in your first post is fine. The additional convert_user_field_to_custom_field() method is only used for core profile fields and shouldn't be called from your migration. I also noticed that the column nam...
by kasimi
Sat Oct 06, 2018 8:35 pm
Forum: Extension Writers Discussion
Topic: Edit Profile Field after core.user_add_after
Replies: 8
Views: 176

Re: Edit Profile Field after core.user_add_after

I'm not sure if this is what's causing your problem but in the migration you posted you have defined an update_data() method which overwrites the one in the parent class causing the convert_user_field_to_custom_field() method that initializes the profile field data in the database not to be called. ...
by kasimi
Sat Oct 06, 2018 7:33 pm
Forum: Extension Writers Discussion
Topic: Edit Profile Field after core.user_add_after
Replies: 8
Views: 176

Re: Edit Profile Field after core.user_add_after

The cp_data in core.user_add_after is read only. See here, there's nothing happening with it afterwards.

Use core.user_add_modify_data for changes to cp_data to be saved to the database.
by kasimi
Sat Oct 06, 2018 7:16 pm
Forum: Extension Writers Discussion
Topic: not load request with comma
Replies: 8
Views: 184

Re: not load request with comma

you can typecast the data that's being passed to it Passing an array as 2nd argument to variable() only works for field names ending with [] , for example ids[]=1&ids[]=2 . As far as I'm aware there's no type you can pass that makes it split a string for you. If you need to enter an array as a conf...
by kasimi
Sat Oct 06, 2018 6:53 pm
Forum: [3.2.x] Extensions Database Releases
Topic: Simple mentions
Replies: 3
Views: 2489

Re: Simple mentions

Extension Updated to version 1.0.3
See first post for Download Link
by kasimi
Fri Oct 05, 2018 5:47 pm
Forum: phpBB Custom Coding
Topic: Variable USERNAME in mass mail
Replies: 17
Views: 563

Re: Variable USERNAME in mass mail

Pretty sure this is a side effect of sending the mails individually. According to this , increasing these two PHP config values helps: ini_set('mysql.connect_timeout', 300); ini_set('default_socket_timeout', 300); Add these two lines after $max_chunk_size = 0; Careful, it's possible you've already s...
by kasimi
Fri Oct 05, 2018 4:49 pm
Forum: phpBB Custom Coding
Topic: Variable USERNAME in mass mail
Replies: 17
Views: 563

Re: Variable USERNAME in mass mail

Ah, you also need to apply the first edit in my first post, otherwise you keep sending the mails in batches.
by kasimi
Fri Oct 05, 2018 2:44 pm
Forum: phpBB Custom Coding
Topic: Variable USERNAME in mass mail
Replies: 17
Views: 563

Re: Variable USERNAME in mass mail

I'm out of ideas. I tested rendering a template multiple times with different variables and it worked fine. Grab a fresh copy of acp_email.php from the download package and re-apply the edits in this post.
by kasimi
Fri Oct 05, 2018 8:29 am
Forum: phpBB Custom Coding
Topic: Variable USERNAME in mass mail
Replies: 17
Views: 563

Re: Variable USERNAME in mass mail

What name was in the mail to the other administrator?
by kasimi
Thu Oct 04, 2018 5:03 pm
Forum: phpBB Custom Coding
Topic: Variable USERNAME in mass mail
Replies: 17
Views: 563

Re: Variable USERNAME in mass mail

Instead of old-style syntax {USERNAME}, use Twig syntax {{ USERNAME }}.

Go to advanced search