Search found 578 matches

by martti
Wed Sep 12, 2018 10:14 am
Forum: Extension Writers Discussion
Topic: Dynamic controllers?
Replies: 15
Views: 286

Re: Dynamic controllers?

Maybe just keep it to one controller and just check the parameter inside your controller? (Inject the request class in the constructor)

Code: Select all

$p = $this->request->variable('p', 0);

if ($p)
{
    // do something here when parameter was not zero
}
by martti
Mon Sep 03, 2018 6:42 pm
Forum: Extensions in Development
Topic: [3.2][RC] Show phpBB Events (for extension developers)
Replies: 16
Views: 928

Re: [3.2][RC] Show phpBB Events (for extension developers)

</Solidjeuh> wrote:
Mon Sep 03, 2018 6:21 pm
PHP 7.2.3
But maybe CLI has a different version than the webserver somehow? The syntax error is really typical.
By the way, this extension is not to be used on live board.
by martti
Mon Sep 03, 2018 6:20 pm
Forum: Extensions in Development
Topic: [3.2][RC] Show phpBB Events (for extension developers)
Replies: 16
Views: 928

Re: [3.2][RC] Show phpBB Events (for extension developers)

</Solidjeuh> wrote:
Mon Sep 03, 2018 5:58 pm
So maybe this ext also need something like that when you use cron command in Directadmin ?
What is your PHP version?

You need PHP 7+, because line 429 says:

Code: Select all

	public function get_count_ary():array
Pre PHP 7 gives a syntax error on this line.
by martti
Sun Sep 02, 2018 9:20 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Trust X-Forwarded-For
Replies: 3
Views: 426

Re: [3.2][BETA] Trust X-Forwarded-For

I'm not sure of the scenario for this but is it like this :?: A user on your board is banned they return to your board opening a new account to circumvent your ban you ban them again, then you ban them on IP the banned user employs proxy IP software to circumvent your IP ban :arrow: this extension ...
by martti
Fri Aug 31, 2018 10:04 am
Forum: Extensions in Development
Topic: [3.2][RC] Auto db Backup
Replies: 127
Views: 15343

Re: [3.2][RC] Auto db Backup

but why does it it change future backups after every backup? same issue? There is a minor problem that I have not had time to get to the bottom of which is to do with timezones/server time/DST Probably today the European Commission is going to abolish the Daylight Saving Time altogether. I would hi...
by martti
Thu Aug 30, 2018 10:46 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Email Login
Replies: 10
Views: 706

Re: [3.2][BETA] Email Login

Messages are correct but they are not these ones in extension language folder. I have tested using a wrong login to see the message. If you use Db_username_or_email and you fill in something that is not in the form of an email then the extension passes the authentication directly over to the defaul...
by martti
Thu Aug 30, 2018 3:43 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Email Login
Replies: 10
Views: 706

Re: [3.2][BETA] Email Login

Great extension, thanks! Are error messages (wrong username/email/password) in language folder used? Im still getting phpbb3 default error messages. But are the messages correct? Core error messages are re-used. The new authentication providers are extended from the basic database provider in core....
by martti
Fri Aug 24, 2018 9:41 am
Forum: Extensions in Development
Topic: [3.2][BETA] All Users Groups Template Variables
Replies: 8
Views: 459

Re: [3.2][BETA] All Users Groups Template Variables

I've been trying this extension. What's wrong with this markup in viewtopic_body.html ? The extension is enabled and it seemed to work fine in a test environment, but failed when moved to production. I am trying to suppress an ad if the user is in groups 17 and 9, but the ad appears. <!-- BEGIN pos...
by martti
Wed Aug 22, 2018 8:05 am
Forum: Extension Writers Discussion
Topic: Global functions?
Replies: 12
Views: 408

Re: [SOLVED] Global functions?

It needs to be accessible from within other extensions (and from within core phpbb). I know that's not the greatest situation (and not super modular like most extensions should be) but its necessary for it to work how I need it to without having to duplicate and maintain dozens of lines of codes do...
by martti
Tue Aug 21, 2018 6:15 pm
Forum: Extension Requests
Topic: Login E-Mail
Replies: 1
Views: 383

Re: Login E-Mail

Yes, I'm developing this:

Email Login extension
by martti
Tue Aug 21, 2018 6:07 pm
Forum: Extension Requests
Topic: Menu bar
Replies: 2
Views: 387

Re: Menu bar

Could you clarify in more detail?
by martti
Tue Aug 21, 2018 10:12 am
Forum: Extension Writers Discussion
Topic: What is the S_ prefix for template variables?
Replies: 12
Views: 278

Re: What is the S_ prefix for template variables?

I also had read somewhere before that it's meaning was "switch". But not all are booleans. I.e S_HIDDEN_FIELDS from the confirm box is a string. If it is "system data" I wonder what qualifies as such? Common template variables from includes/functions.php : 'S_USER_LOGGED_IN' => ($user->data['user_id...
by martti
Tue Aug 21, 2018 6:38 am
Forum: Extension Writers Discussion
Topic: What is the S_ prefix for template variables?
Replies: 12
Views: 278

What is the S_ prefix for template variables?

Simple question. But it was never clear to me. What does the S_ prefix signify for template variables?
by martti
Tue Aug 21, 2018 6:32 am
Forum: Extension Writers Discussion
Topic: Global functions?
Replies: 12
Views: 408

Re: [SOLVED] Global functions?

From your description I think you just need to listen to a phpBB PHP event that is triggered on every page (like i.e core.page_header), not a global function.

Global functions go against the philosophy of extensions not being global in scope.
by martti
Fri Aug 17, 2018 4:32 pm
Forum: Extension Requests
Topic: Forgot password Recovery With Email Address Only
Replies: 10
Views: 650

Re: Forgot password Recovery With Email Address Only

I get almost daily requests from people because they forgot their username and password, that's why I wrote this extension:

Email Only Password Reset

Go to advanced search