Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

risq
User w
User w
Posts: 14
Joined: Wed May 24, 2017 2:01 pm

Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

Post by risq »

Hi,

i have no success with the resizing of the phpBB3 forum frame. I use a fresh installed Wordpress and a fresh installed phpBB3, no changes at all

-> Goal Page is: www.onlinehockey.de/forum
-> PHPbb3 Original Link www.onlinehockey.de/phpBB3

What i did
- installed plugin
- set Path to config.php /home/olh/html/phpBB3
- set Path to Realphp https://onlinehockey.de/phpBB3
- cp wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.contentWindow.js /home/olh/html/phpBB3/
- edit /home/olh/html/phpBB3/styles/prosilver/template/overall_footer.html with content from (https://www.axew3.com/w3/2016/02/embed- ... responsive) and set <script type="text/javascript" src="/home/olh/html/phpBB3/iframeResizer.contentWindow.js" defer></sc
- in PHP ACP set Server Configuration -> Load settings -> Recompile stale style components to "yes"
- Loaded a forum page
- "Create or rebuild WordPress forum page template" set to "forum"
- Create "forum" page

i searched the forums and followed your advice (https://www.axew3.com/w3/forum/?f=2&t=479) to try to change the "heightCalculationMethod" in the page-forum file, but no success with all parameters.

I Appreciate any hints

Thx in advance

risq
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

Post by axew3 »

Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://onlinehockey.de’) does not match the recipient window’s origin (‘http://onlinehockey.de’).
open your page-forum(or what you've name it).php
line:

Code: Select all

//document.domain = 'axew3.com'; //
change into

Code: Select all

document.domain = 'onlinehockey.de'
do the same into phpBB overall_footer.html js added code where:

Code: Select all

// document.domain = 'localhost'; // un-comment and set this value to your domain (ex. axew3.com) ...
change into:

Code: Select all

document.domain = 'onlinehockey.de'; // un-comment and set this value to your domain (ex. axew3.com) ....
resolved?

This part of the plugin integration and code documentation will be fixed and optimized as soon to be more easy
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

Post by axew3 »

p.s check also that your URL on wp_w3all url setting is with https if your phpBB is https
risq
User w
User w
Posts: 14
Joined: Wed May 24, 2017 2:01 pm

Re: Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

Post by risq »

thx for your quick reply.

i uncommened/changed in both files /home/olh/html/phpBB3/styles/prosilver/template/overall_footer.html and /home/olh/html/wp-content/themes/twentyseventeen/page-forum.php

document.domain = 'onlinehockey.de'

result: no change.
risq
User w
User w
Posts: 14
Joined: Wed May 24, 2017 2:01 pm

Re: Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

Post by risq »

axew3 wrote: Wed May 24, 2017 4:58 pm p.s check also that your URL on wp_w3all url setting is with https if your phpBB is https
is is:

https://onlinehockey.de/phpBB3 (REQUIRED) URL - Real phpBB URL
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Template Integration -> Resize / No success on vanilla Wordpress/PHPbb3

Post by axew3 »

Code: Select all

<script type="text/javascript" src="/home/olh/html/phpBB3/iframeResizer.contentWindow.js" defer></script>
change to direct url because seem the provided path not point to the js file (it return a forum page)

Code: Select all

<script type="text/javascript" src="/home/olh/html/phpBB3/iframeResizer.contentWindow.js" defer></script>
change into

Code: Select all

<script type="text/javascript" src="https://onlinehockey.de/phpBB3/iframeResizer.contentWindow.js" defer></script>
Post Reply