Search found 133 matches

by zlisiecki
Fri May 03, 2019 7:51 am
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

OK, I put all error and log messages in ext/evot/move/language/*/info_acp_move.php . What does it mean "picked up automatically" ? I never used variable $lang and I deleted it now. Do you mean I should not make $user global, but rather inject it from the event structure ? Another question is the cho...
by zlisiecki
Thu May 02, 2019 11:15 am
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Yes, thank you. The solution for my former question was to load my ext language file not only for button handling, but for logfile reading in ACP too ! I did it with additional event service at the very beginning function getSubscribedEvents() { return array( 'core.user_setup' => 'load_language_on_s...
by zlisiecki
Sun Apr 28, 2019 4:39 pm
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Hi, Mr.Goldy, could you explain it more exact, please ? What is $additional_data ? What are specific columns ? Is there an exact $phpbb_log->add() function usage description written somewhere ? My log string 'EMOVE_LOG_NIP_MOVED' won't be find. It appears as such in the moderators log with a %1s par...
by zlisiecki
Thu Apr 11, 2019 6:17 am
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

By the way: do you provide a more exact description how to change add_log() into $phpbb_log->add('mod', ... ? The first form will deprecate soon. The best place for the new usage is somewhere in phpbb/log/log_interface.php code. Especially I'd like to know how to insert %n parameters into the log st...
by zlisiecki
Tue Apr 02, 2019 9:12 pm
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Let me specify also some other questions I have: I am not sure, what is the easiest and most stright way to change the post, like to append some text to it, or delete some trailing sentences. I am doing it with the function append_text_to_post ($post_id, $text) in movelib.php . Is it ok, what I did ?
by zlisiecki
Sun Mar 31, 2019 6:00 pm
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Hi 3Di, could you pull my ext from github now and check it. I hope you can find it in https://github.com/zlisiecki/evot-buttons-for-phpbb This project is not quite ready, but I hope after installing this ext you'll find a three new buttons over each post, some longer buttons over each topic and the ...
by zlisiecki
Tue Mar 26, 2019 9:03 am
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Yes, this is the continuation of my former questions. My ext is actually running, but obviously it may be written more efficiently. I try to correct same errors. I am also not sure if I have chosen the best events for my buttons. Here is the repository, you've asked : https://github.com/zlisiecki/ph...
by zlisiecki
Tue Mar 26, 2019 2:24 am
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Hi Paul, yes, I deleted user session and setup //$user->session_begin(); $auth->acl($user->data); //$user->setup(); now. I possibly copied this from some example, which is wrong here. Thank you for your notice. Well, the variable $this->phpbb_root_path of the listener instance is set in its' constru...
by zlisiecki
Mon Mar 25, 2019 11:09 pm
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Re: Getting phpbb_root_path in core.modify_posting_parameters event

Possibly somebody knows an example with new buttons after edit/report/cite buttons, which utilizes $phpbb_root_path in the code.
by zlisiecki
Mon Mar 25, 2019 11:06 pm
Forum: Extension Writers Discussion
Topic: Getting phpbb_root_path in core.modify_posting_parameters event
Replies: 18
Views: 1933

Getting phpbb_root_path in core.modify_posting_parameters event

Hi, i created some additional buttons above each post with core.viewtopic_modify_post_row event. Now I'd like to acomplish certain tasks on a post by pressing these buttons. If a button is pressed core.modify_posting_parameters event calls a button_pressed() routine. This works fine, but I need also...
by zlisiecki
Sat Mar 31, 2018 9:20 pm
Forum: Extension Requests
Topic: bots handling
Replies: 5
Views: 500

Re: bots handling

Before you start hacking code, you can use the permissions system to deny bot access. You can add other bots to the bots group that are not already included in the default installation. I'd like to decide individually which bot and when access is allowed. My code allows also to answere bots access ...
by zlisiecki
Sat Mar 31, 2018 9:15 pm
Forum: Extension Requests
Topic: bots handling
Replies: 5
Views: 500

Re: bots handling

Thank you 3DI, I have overseen this. You are correct.
by zlisiecki
Sat Mar 31, 2018 9:40 am
Forum: Extension Requests
Topic: bots handling
Replies: 5
Views: 500

bots handling

Hi, possibly the question has been already asked, but I found no answere, which satisfies me. A lot of bots are scanning my forum and i cannot prevent it with robots.txt . I'd like to deny access for some bots, or allow access only at night or so. Actually a nice software has been written for former...
by zlisiecki
Thu Oct 26, 2017 7:28 pm
Forum: [3.2.x] Support Forum
Topic: open_basedir problem once more
Replies: 15
Views: 839

Re: open_basedir problem once more

file [ROOT]/phpbb/filesystem/filesystem.php on line 851: is_link() file [ROOT]/phpbb/filesystem/filesystem.php on line 888: is_dir() file [ROOT]/phpbb/filesystem/filesystem.php on line 893: is_file() In a default 3.2.1 installation these lines do not match (instead they should be lines 838, 875 and...
by zlisiecki
Thu Oct 26, 2017 12:36 am
Forum: [3.2.x] Support Forum
Topic: open_basedir problem once more
Replies: 15
Views: 839

Re: open_basedir problem once more

I am quite satisfied with this provider unixstrorm.org. He worked also on the problem, which I claim to appear. The function open_basedir has certain security reasons. Its tedious to change the provider only to be possible to switch this security mechanism off. Rather I should consider why it is vio...

Go to advanced search