Page 2 of 2

Re: PHPbb URL redirection with WP

Posted: Thu Jan 03, 2019 8:59 am
by xray
Okay, so I implemented v3 on the site and not sure its working as it should.
My wordpress site is example.com
My forum site is example.com/directory

I am using the plugin and created the iframe adding the code as you instructed. The iframe works when I enter through the WP site. When I type the forum URL directly, I can still access the forums directly and not being redirected into the iframe using WP as I want. Does this make sense now what I am looking to do. I don't want users to be able to bypass WP by typing the Forum URL directly.

Thanks you

Re: PHPbb URL redirection with WP

Posted: Thu Jan 03, 2019 9:15 am
by axew3
All procedure done? Do you added the piece of code that need to be placed into overall_header.html also?

Re: PHPbb URL redirection with WP

Posted: Thu Jan 03, 2019 10:05 am
by xray
Missed the header portion thought it was for email and didn't read it all...

Added header information and now it points to iframe as expected with the /w3=

Thank you for adding this, I like it and it's much cleaner and easier than the htaccess way.

Now I am just running into the issue with logging into the forum within the iframe and then selecting a different WP menu and then returning to the forum, but now I am logged out. I am guessing it might be a cookie setting issue, but not sure if its in the forum or WP.
I did check the other thread and my Https is set correctly and even forced.

I am also running into a frame size issue only in the admin view, which is now blocking me from accessing other features in the forum ACP.

Re: PHPbb URL redirection with WP

Posted: Thu Jan 03, 2019 10:20 am
by axew3
check well:
cookie setting, AND if on http, set all links as http, or https if on https.

you can note this behavior also here (if this is your problem): if you are logged in via https and you access via http, you result logged out (almost in wp if on iframe mode).
yes it is the cookie (and only the cookie normally) that cause this issue.
Did you setup the phpBB cookie to be available all over the domain? With correct path / ?
You're on localhost?

Re: PHPbb URL redirection with WP

Posted: Thu Jan 03, 2019 10:28 am
by axew3
p.s https/http settings you need to check for are:
into js code you added, overall_footer and overall_header, and into wp_w3all plugin admin URL to phpBB option.
Beside these check, check that also phpBB is forced to https if on https, and set wp url the same (http/s), on general wp admin page.
Setup phpBB on ACP to be under https if wp is https.

P.s note that the javascript v3 overall_footer.html code has been patched today where this line:

Code: Select all

//parent.w3all_ajaxup_from_phpbb(w3appendevents);
that i leaved in this state for error, so resulting disabled, while it need to be:

Code: Select all

parent.w3all_ajaxup_from_phpbb(w3appendevents);
or when user login or logout in phpBB iframe the wp page will not reload (and something else)

Re: PHPbb URL redirection with WP

Posted: Fri Jan 04, 2019 9:36 pm
by xray
Bummer, well I have made the new changes you mentioned such as the commented out (parent.w3all) for getting the redirection/login-out issues to work and now I cannot stay logged into the forums at all. I can still login to WP though. I even changed it back and still no-go.
I need to consolidate all the v3 steps and try it again.

Something that I noticed when going through the different styles themes is that w3 code was initially injected into the themes that are on the site, but not used.

Work in-progress so I can track!!
v3 iframe phpbb wordpress template integration:
https://www.axew3.com/w3/2018/12/phpbb- ... iframe-v3/
https://www.axew3.com/w3/2018/12/phpbb- ... iframe-v3/
https://www.axew3.com/w3/forum/?w3=dmll ... ImdD04OTQ=

Files to edit include /(your_forum)/styles/(your_theme)/template/overall_footer.html and the overall_header.html

https://www.axew3.com/w3/2016/02/embed-p ... esponsive/
Files to edit include /adm/style/ - overall_header.html and overall_footer.html

EDITED: check this

viewtopic.php?f=2&t=894&p=3330#p3330