Resizer is not working

madnnes
User ww
User ww
Posts: 20
Joined: Tue Sep 26, 2023 8:39 am

Re: Resizer is not working

Post by madnnes »

I'm attaching my files in case I've missed something.

My site: knigi-igri.net
My forum: knigi-igri.net\forum
Page for the iframe: knigi-igri.net\board

My files: overall_footer, overall_header, page-board, wp_w3all_phpbb_iframe_short

https://pastebin.com/iPEwfFhv
https://pastebin.com/J4HU6BQU
https://pastebin.com/61HmKsFZ
https://pastebin.com/Mb2tPc8v

Your help is highly appreciated!

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

Re: Resizer is not working

Post by axew3 »

The main site https://knigi-igri.net/board say:
Site under construction.
I need to see what you have put as values where, to understand what's going on, if even with the above last suggestion (that's very strange) it do not work for you. I need to see on browser's console the dom result of your page output.
The fact you are on siteground should not surely be the problem.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Resizer is not working

Post by axew3 »

psssss
aaahhh! now i probably realize from where the localhost cookie setting you say have come probably out:
there is an instruction or two into the plugin, that set the localhost value when no other value can be found.
This is effectively wrong.
2.7.3 will fix this, in favor of:
no value at all (empty), that's the correct way to do things.
Going to add this on 2.7.3 logs topic. Also, read the previous post please.

Sorry for the delay on understand the issue :D :?
madnnes
User ww
User ww
Posts: 20
Joined: Tue Sep 26, 2023 8:39 am

Re: Resizer is not working

Post by madnnes »

Please use those credentials to pass trough the restrictions:

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

Re: Resizer is not working

Post by axew3 »

Ok i see.
Look the console, return this:

Code: Select all

Uncaught Error: Unexpected message received from: https://knigi-igri.net for w3all_phpbb_iframe. Message was: [iFrameSizer]w3all_phpbb_iframe:556:1042:init. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.
The array result to be this on dom output:

Code: Select all

var w3all_orig_domains = ['https://localhost','https://www.localhost','https://knigi-igri.net/forum','http://knigi-igri.net/forum','https://localhost','http://localhost'];
I suppose it lack the domain without /forum so
open the page-board.php

and where there is this line

Code: Select all

    var w3all_orig_domains = ['".$w3all_orig."','".$w3all_orig_www."','".$w3all_url_to_cms_clean."','".$w3all_url_to_cms_clean0."','https://localhost','http://localhost'];
comment it to become

Code: Select all

   // var w3all_orig_domains = ['".$w3all_orig."','".$w3all_orig_www."','".$w3all_url_to_cms_clean."','".$w3all_url_to_cms_clean0."','https://localhost','http://localhost'];
then just below, try to add this instead:

Code: Select all

var w3all_orig_domains = ['https://knigi-igri.net','http://knigi-igri.net','https://knigi-igri.net/forum','http://knigi-igri.net/forum'];
And all should work fine.
Ps
Why it do not return the correct value for you on your server on the array?
I will see re-coding the iframe integration these days, in the while let check that all for you is ok now :D

ps just figured out why just now
madnnes
User ww
User ww
Posts: 20
Joined: Tue Sep 26, 2023 8:39 am

Re: Resizer is not working

Post by madnnes »

Yes, it's working now! You are the best! :)

Thanks a lot for your help :)
Post Reply