Search found 781 matches

by kasimi
Sun Jun 17, 2018 8:41 am
Forum: Extensions in Development
Topic: [3.2][BETA] User Topic Count
Replies: 78
Views: 4674

Re: [3.2][BETA] User Topic Count

Because the "Topic Count" for all users is calculated and stored in the column when enabling the extension. Schema changes should be done in migrations only. Run your resync code via a custom method from within your migration on install: https://area51.phpbb.com/docs/dev/3.2.x/migrations/data_chang...
by kasimi
Mon Jun 11, 2018 10:42 am
Forum: Extension Writers Discussion
Topic: the path of extension
Replies: 4
Views: 164

Re: the path of extension

Inject the core.root_path parameter, assign 'AAFS_IMAGES_PATH' => $this->root_path . 'ext/meis2m/aafs/styles/all/theme/images' to the template and use src="{{ AAFS_IMAGES_PATH }}/list.gif" in your template file.
by kasimi
Sat Jun 09, 2018 8:03 am
Forum: Extension Writers Discussion
Topic: Calling Javascript from Template
Replies: 4
Views: 215

Re: Calling Javascript from Template

In your second code block, declare myStream: ... var myStream; var _nsid = '{NSID}'; var _key = '{KEY}'; ... Now put back the no conflict code and change var myStream = (function() to myStream = (function() to reference the global variable instead of using a local one. By the way, make sure you esca...
by kasimi
Wed May 09, 2018 8:43 am
Forum: Extension Writers Discussion
Topic: PHPBB_ENVIRONMENT, production vs development
Replies: 11
Views: 478

Re: PHPBB_ENVIRONMENT, production vs development

Blitze wrote:
Tue May 08, 2018 4:17 pm
I can open a bug and provide a PR to fix it.
Please do.
Blitze wrote:
Tue May 08, 2018 4:17 pm
As for Travis, is it possible to make it run in development so bugs like this are not simply ignored?
I'm sure there's a more elegant way, but you could try calling error_reporting(-1); in setUpBeforeClass().
by kasimi
Tue May 08, 2018 5:40 am
Forum: Extension Writers Discussion
Topic: PHPBB_ENVIRONMENT, production vs development
Replies: 11
Views: 478

Re: PHPBB_ENVIRONMENT, production vs development

Your code doesn't behave differently, the problems are just ignored when in production . If your environment is set to development , all errors are reported. https://github.com/phpbb/phpbb/blob/release-3.2.2/phpBB/common.php#L101 https://github.com/phpbb/phpbb/blob/release-3.2.2/phpBB/phpbb/debug/de...
by kasimi
Mon May 07, 2018 8:38 pm
Forum: Extension Writers Discussion
Topic: core.search_get_topic_data
Replies: 7
Views: 329

Re: core.search_get_topic_data

Try appending to the existing sql_where value instead of overwriting it. Also you should be using $db->sql_in_set():

Code: Select all

$event['sql_where'] .= ' AND ' . $this->db->sql_in_set('t.forum_id', $forums_id_ary);
by kasimi
Mon May 07, 2018 8:34 pm
Forum: Extension Writers Discussion
Topic: Using pagination with another variable in the URL
Replies: 2
Views: 156

Re: Using pagination with another variable in the URL

You can add additional parameters to the $base_url : // For a route: $base_url = $controller_helper->route('my_route', ['another' => 'parameter']); // Otherwise: $base_url = append_sid($root_path . 'index.' . $php_ext, ['another' => 'parameter']); $pagination->generate_template_pagination($base_url,...
by kasimi
Sun May 06, 2018 7:34 am
Forum: Extensions in Development
Topic: [3.2][RC] Connection logger
Replies: 14
Views: 969

Re: [3.2][RC] Connection logger

I love this extension. Now i can see who want to log in and what login attempts are bots. Sadly the server gives me an error when a user logs into the forum mod_fcgid: stderr: PHP Fatal error: Class 'lr94\\lc\\event\\auth' not found in ..ext/lr94/lc/event/main_listener.php on line 159 Hello! Sorry ...
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: 206

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.7
Replies: 732
Views: 41584

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.7
Replies: 732
Views: 41584

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.7
Replies: 732
Views: 41584

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: 409

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: 409

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()...

Go to advanced search