Search found 884 matches

by kasimi
Sat Jan 19, 2019 9:54 pm
Forum: [3.2.x] Support Forum
Topic: permission change from 3.1.10 to 3.1.12
Replies: 4
Views: 127

Re: permission change from 3.1.10 to 3.1.12

You can change this line to: 'U_VIEWONLINE' => append_sid("{$phpbb_root_path}viewonline.$phpEx"), Alternatively, you can listen to core.index_modify_page_title in an extension and do this: $this->template->assign_var('U_VIEWONLINE', append_sid($this->root_path . 'viewonline.' . $this->php_ext));
by kasimi
Sat Jan 19, 2019 9:32 pm
Forum: phpBB Custom Coding
Topic: request_var _sid and phpBB behavior and $_GLOBALS
Replies: 5
Views: 136

Re: request_var _sid and phpBB behavior and $_GLOBALS

comparing with == the comparison match? 1234 == '1234abcd' 1234 === (int) '1234abcd' 1234 === 1234 true 1234 === '1234abcd' false because of different types May a post within this forum could be sufficient This forum is not meant for advertising finished products. Feel free to make a post in mChat'...
by kasimi
Sat Jan 19, 2019 10:44 am
Forum: Extensions in Development
Topic: [CDB] Poll on Index
Replies: 25
Views: 1871

Re: [CDB] Poll on Index

by kasimi
Sat Jan 19, 2019 9:44 am
Forum: phpBB Custom Coding
Topic: request_var _sid and phpBB behavior and $_GLOBALS
Replies: 5
Views: 136

Re: request_var _sid and phpBB behavior and $_GLOBALS

session_id is a string. The 2nd argument of request_var() needs to be ''.

When using 0 as 2nd argument, it casts the return value to an integer. I guess in your test scenario, the session ID happened to start with 4 digits. Pass the empty string and $cks will contain the full session ID.
by kasimi
Sun Dec 23, 2018 5:23 pm
Forum: Extension Writers Discussion
Topic: [SPLIT]Getting checkbox posted values
Replies: 6
Views: 248

Re: [SPLIT]Getting checkbox posted values

That's the way it is. Is it not working for you? If not, please post the code you have.
by kasimi
Sun Dec 23, 2018 4:37 pm
Forum: Extension Writers Discussion
Topic: [SPLIT]Getting checkbox posted values
Replies: 6
Views: 248

Re: [SPLIT]Getting checkbox posted values

If they are part of the form, why aren't they included in the array? Unchecked checkboxes and radiobuttons are not POSTed to the server. This is unrelated to phpBB and it's always been like that . This works: <input type="checkbox" name="anonpost" value="1"> $is_anonpost = $this->request->variable(...
by kasimi
Sun Dec 23, 2018 1:23 pm
Forum: [3.2.x] Support Forum
Topic: Board version is not updating
Replies: 7
Views: 233

Re: Board version is not updating

Does the file root/phpbb/db/migration/data/v32x/v325.php exist?
by kasimi
Thu Dec 20, 2018 9:40 am
Forum: phpBB Custom Coding
Topic: Create a new reply with python
Replies: 16
Views: 611

Re: Create a new reply with python

Temporarily allow guests to make posts and see if your script works without the login part.
by kasimi
Mon Dec 10, 2018 7:49 pm
Forum: phpBB Custom Coding
Topic: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'
Replies: 7
Views: 397

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

It looks like your PHP distribution is incomplete. Compare tokenizer_data.c in PHP's repo with the tokenizer_data.c in your repo.
by kasimi
Sun Dec 09, 2018 1:06 pm
Forum: phpBB Custom Coding
Topic: Force registered users to use cookies
Replies: 7
Views: 365

Re: Force registered users to use cookies

StevieWonderer wrote:
Sun Dec 09, 2018 12:50 pm
_sid cookie does not exists until user has submitted the login form
That's not true. Every user has a session ID, even guests, and if cookies are enabled, the session ID is in the _sid cookie.
by kasimi
Sun Dec 09, 2018 10:03 am
Forum: phpBB Custom Coding
Topic: Force registered users to use cookies
Replies: 7
Views: 365

Re: Force registered users to use cookies

Why don't you check for phpBB's session ID cookie?

Code: Select all

if (!$this->request->variable($this->config['cookie_name'] . '_sid', '', false, \phpbb\request\request_interface::COOKIE))
by kasimi
Sat Dec 08, 2018 2:14 pm
Forum: [3.2.x] Support Forum
Topic: [solved] white page on Permissions page
Replies: 60
Views: 1785

Re: white page on Permissions page

Did you clear the board cache afterwards? What's the output of the debug code now?
by kasimi
Sat Dec 08, 2018 1:05 pm
Forum: [3.2.x] Support Forum
Topic: [solved] white page on Permissions page
Replies: 60
Views: 1785

Re: white page on Permissions page

There shouldn't be. What's in there and what happens if you delete it? Make a backup first.

Go to advanced search