url segments not propagating

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

Re: url segments not propagating

Post by axew3 »

both pages i click, return to home
??
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: url segments not propagating

Post by axew3 »

p.s about help, do you mean you would like to collaborate to plugin?
User avatar
floxshifu
User www
User www
Posts: 57
Joined: Sun Sep 18, 2016 6:14 pm

Re: url segments not propagating

Post by floxshifu »

axew3 wrote:both pages i click, return to home
??
Strange, because when I'm using the iframe, the link clic stay on the same page, but when I'm using the phpBB normal path, it's working correctly... Are you sure you've tested the two different url?
axew3 wrote:p.s about help, do you mean you would like to collaborate to plugin?
No, no, I don't have the knowledge to help in coding or dev, but I can report bug, and I wish it help to have report :)
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: url segments not propagating

Post by axew3 »

well do not know what was happening before, now work ok.
OK, i see,
You have a forum on list that act as link, like the one (as test) exist in this main forum page (and that link to wp home)...

after we will follow maybe, but at moment please, there is a function inside your WP template folder page-forum.php (or what you have named it):

Code: Select all

function wp_w3all_hook_jresizer() {
 	
 $s = "<script type=\"text/javascript\" src=\"".plugins_url()."/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.min.js\"></script>
        <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js\"></script>
";
please just change on function, only this:
http:
into:
https
so the line on the function become:

Code: Select all

<script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js\"></script>
save.
Overwrite the file page-forum.php and test now.
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post by mikotoiii »

So I'm still working away at debugging this issue when I have time.

The latest thing that I've found is that found is that it looks like my iframeid is being set to $0, which is throwing some "$ is not a function" errors when running the messageCallback, chkCallback, callback, forwardMsgFromIFrame,actionMsg, and iFrameListener in iframeResizer.js

Here's from my debugger in chrome:

Code: Select all

iframeResizer.js:129 [iFrameSizer][Host page: iFrameResizer0] MessageCallback passed: {iframe: iFrameResizer0, message: "./viewforum.php?f=20"}

(index):465 Uncaught TypeError: $ is not a function(…)messageCallback @ (index):465chkCallback @ iframeResizer.js:523callback @ iframeResizer.js:424forwardMsgFromIFrame @ iframeResizer.js:246actionMsg @ iframeResizer.js:436iFrameListener @ iframeResizer.js:504

iframeResizer.js:129 [iFrameSizer][Host page: iFrameResizer0] [iFrame.onload] Sending msg to iframe[iFrameResizer0] (iFrameResizer0:8:false:true:32:true:true:null:bodyOffset:null:null:0:true:parent:scroll) targetOrigin: http://localhost:8080
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post by mikotoiii »

I just got it working. That was what was causing the whole thing to not work. I changed the line (180 in page-forum.php)

Code: Select all

$('p#callback').html(
to

Code: Select all

jQuery('p#callback').html(
and it started working.

Anyone else who's having this problem, this will hopefully be the solution for you.
Locked