Search found 640 matches

by kasimi
Fri Apr 21, 2017 9:54 am
Forum: Extension Writers Discussion
Topic: Routing to php page
Replies: 6
Views: 148

Re: Routing to php page

With rewriting enabled, no app.php/ is added to the generated routes.

Do you get 404s when you change the route to /compat (without .php)?
by kasimi
Thu Apr 20, 2017 1:21 pm
Forum: Extension Writers Discussion
Topic: Routing to php page
Replies: 6
Views: 148

Re: Routing to php page

A quick and dirty solution would be to enable URL rewriting in the ACP and then change the route to this:

Code: Select all

promods_main_controller:
    path: /compat.php
by kasimi
Thu Apr 20, 2017 12:45 pm
Forum: Extension Writers Discussion
Topic: Routing to php page
Replies: 6
Views: 148

Re: Routing to php page

Move your code from root/compat.php to a controller inside your extension: https://area51.phpbb.com/docs/dev/32x/extensions/tutorial_controllers.html Define your route like this: promods_main_controller: path: /compat Now you can use the controller.helper service to generate the link to your page: '...
by kasimi
Tue Apr 18, 2017 9:10 pm
Forum: Extension Writers Discussion
Topic: Transfer args to language class via helper
Replies: 7
Views: 130

Re: Transfer args to language class via helper

The EPV uses the "nikic/php-parser": "0.9.*@dev" library for checking your PHP syntax: https://github.com/phpbb/epv/blob/0.0.8/composer.json#L18 However, variadic functions are supported only since 1.0.0 Beta 1 (4th item): https://github.com/nikic/PHP-Parser/releases/tag/v1.0.0beta1 As Paul said, $t...
by kasimi
Tue Apr 18, 2017 6:42 pm
Forum: Extension Writers Discussion
Topic: help with an error...
Replies: 11
Views: 256

Re: help with an error...

The config.php you posted in the validation discussion does NOT have DEBUG enabled. Let's repeat: You need to make sure to enable DEBUG in your config.php The above in combination with an unmodified includes/functions.php file will print the notice. If DEBUG is enabled, the default error reporting l...
by kasimi
Tue Apr 18, 2017 12:11 pm
Forum: Extension Writers Discussion
Topic: Transfer args to language class via helper
Replies: 7
Views: 130

Re: Transfer args to language class via helper

Yes, and in addition I think you need to remove these lines: https://github.com/andreaskou/PHPBB_IUM ... yml#L7-L22
by kasimi
Tue Apr 18, 2017 12:03 pm
Forum: Extension Writers Discussion
Topic: Transfer args to language class via helper
Replies: 7
Views: 130

Re: Transfer args to language class via helper

Array packing/unpacking is available since PHP 5.6, your Travis test runs with PHP 5.5.
by kasimi
Tue Apr 18, 2017 11:55 am
Forum: Extension Writers Discussion
Topic: Purge the cache automatically ?
Replies: 11
Views: 197

Re: Purge the cache automatically ?

Check the source code of the page and find the CSS file's <link> element. The href should have a parameter ?assets_version=xyz. Re-enable the extension and check if the xyz has changed. If it has, your browser might causing your issues.
by kasimi
Mon Apr 17, 2017 5:39 pm
Forum: Extensions in Development
Topic: [3.2][RC] Knowledge Base
Replies: 62
Views: 2938

Re: [3.2][RC] Knowledge Base

It seems you're missing this definition in config/default/container/services_notification.yml.
by kasimi
Fri Apr 14, 2017 11:21 pm
Forum: Extension Writers Discussion
Topic: Loop Not Working?
Replies: 12
Views: 193

Re: Loop Not Working?

andreask wrote:
Fri Apr 14, 2017 7:32 pm

Code: Select all

// Loop

$variable = []; 
while ($row = $db->sql_fetchrow($result))
{
    $variable[] = $row; 
}
There's a shorter way to do this:

Code: Select all

$variable = $db->sql_fetchrowset($result); 
by kasimi
Fri Apr 07, 2017 5:17 pm
Forum: Extension Writers Discussion
Topic: Post Message IF IS_CAT #2? (forumlist_body.html)
Replies: 2
Views: 93

Re: Post Message IF IS_CAT #2? (forumlist_body.html)

Code: Select all

<!-- IF forumrow.S_IS_CAT and forumrow.FORUM_ID == 2 -->
  "Hello World!"
<!-- ENDIF -->
by kasimi
Sun Apr 02, 2017 7:44 pm
Forum: Extension Writers Discussion
Topic: Parameters of call to main function of a *_module.php
Replies: 2
Views: 83

Re: Parameters of call to main function of a *_module.php

This is where the main() method is called: https://github.com/phpbb/phpbb/blob/release-3.2.0/phpBB/includes/functions_module.php#L671-L676 In the core, for example, $id and $mode are used to generate links to the module you're currently in: https://github.com/phpbb/phpbb/blob/release-3.2.0/phpBB/inc...
by kasimi
Sun Apr 02, 2017 3:35 pm
Forum: Extension Requests
Topic: edit a post
Replies: 11
Views: 139

Re: edit a post

I think what you're looking for is this extension?

https://www.phpbb.com/customise/db/extension/quickedit/
by kasimi
Wed Mar 29, 2017 3:50 pm
Forum: Extension Writers Discussion
Topic: Get email address of poster
Replies: 21
Views: 569

Re: Get email address of poster

CursorNode wrote:
Wed Mar 29, 2017 3:18 pm
Will this number exclude his posts deleted
No. When deleting a post the user_posts field is adjusted.
CursorNode wrote:
Wed Mar 29, 2017 3:18 pm
what and where triggers the appearance of the graphical numbers validator?
I'm not sure what you mean by that.
by kasimi
Wed Mar 29, 2017 1:02 pm
Forum: Extension Writers Discussion
Topic: Get email address of poster
Replies: 21
Views: 569

Re: Get email address of poster

CursorNode wrote:
Tue Mar 28, 2017 1:00 am
Is it possible for me to enable the graphical numbers check only for the 1st post of each account ?
$user->data['user_posts'] should give you the number of posts a user has made.

Go to advanced search