phpbb user always ending up on wp-profile page when added on WP

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: phpbb user always ending up on wp-profile page when added on WP

Re: phpbb user always ending up on wp-profile page when added on WP

by axew3 » Thu Mar 15, 2018 9:51 pm

it seem now definitively fixed in any test. It is important to test in more persons because often as you see, is possible (especially for me) to miss something (but do not worry, i think i do not forget about security by the way!)
class.wp.w3all-phpbb.php
has been patched (i think definitively now) to resolve any possible wp login flow, redirecting to correct page onlogin or onlogin/adding user.
https://plugins.trac.wordpress.org/brow ... tion/trunk
download the file
class.wp.w3all-phpbb.php
and replace it on:
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php

Re: phpbb user always ending up on wp-profile page when added on WP

by freakenstein » Thu Mar 15, 2018 9:26 pm

I'll continue testing tomorrow on my side :)

Re: phpbb user always ending up on wp-profile page when added on WP

by axew3 » Thu Mar 15, 2018 9:19 pm

NO! further fixed for one problem more: when user already existent in wp login via wp-login: the page stop to wp-login page also if the user is logged in, then,
the above

Code: Select all

if (isset($ins_coming_phpbbU)){
will be changed into:

Code: Select all

if (isset($ins_coming_phpbbU) OR !strstr($_SERVER['REQUEST_URI'], 'wp-admin') OR !strstr($_SERVER['SCRIPT_NAME'], 'profile.php')){
sorry i had the dinner in the while ... :) little delay on fixing as soon i've finish all tests come out in mind.
Now should be all resolved.
The file class.wp.w3all-phpbb.php has just been patched definitively i think.

Re: phpbb user always ending up on wp-profile page when added on WP

by freakenstein » Thu Mar 15, 2018 9:15 pm

Wow, nice work!

I can confirm that it current is working in my staging environment.

Re: phpbb user always ending up on wp-profile page when added on WP

by axew3 » Thu Mar 15, 2018 7:46 pm

The file class.wp.w3all-phpbb.php has just been patched and should resolve the correct redirect in any situation
https://plugins.trac.wordpress.org/brow ... tion/trunk

Re: phpbb user always ending up on wp-profile page when added on WP

by axew3 » Thu Mar 15, 2018 7:39 pm

this has been also fixed i think:
where:

Code: Select all

  if (isset($ins_coming_phpbbU)){
CHANGE into:

Code: Select all

  if (isset($ins_coming_phpbbU) OR !strstr($_SERVER['REQUEST_URI'], 'wp-admin') OR !strstr($_SERVER['SCRIPT_NAME'], 'profile.php')){
it has been already updated also here in this example. Now seem to work all properly.
Going to commit the patch after some other test.

Top