V3 concept for the iframe integration

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: V3 concept for the iframe integration

Re: V3 concept for the iframe integration

by axew3 » Sat Jan 05, 2019 9:40 pm

Good point, you may have reason. By the way since more advanced users can find this easy and short to do, for some other it is maybe a pain in the a** if something goes wrong on some configuration. And it is commonly useful to have two tabs opened to check front end while operating on ACP.
To switch back and let load ACP into iframe, will be by the way just commenting out two lines in this way x overall_header code:

Code: Select all

if ((window.self !== window.top) != true) { //(or get loop)
// if(/adm\//ig.exec(window.location.href) === null){ // avoid x ACP
  var w3all_r = window.location.href.replace(/sid=.+/gi, '');
  w3all_r = w3all0Normalize_phpBBUrl(w3all_r);
  hrefEnc = window.btoa(unescape(encodeURIComponent(w3all_r)));
  href0 =  wordpress_url_page_f + '/?w3=' + hrefEnc;
  document.location.replace(href0);
}
//}
// END force w3all to iframe redirect
</script>
and into overall_footer code comment out or remove:

Code: Select all

if( /\/adm\//ig.exec(href) !== null ){
e.preventDefault();
window.open(href,'_blank');
return;
}
So this will be added into bottom iframe procedure (or as hints on inline code), with corrected hints on how to achieve the easy joke.

Re: V3 concept for the iframe integration

by xray » Sat Jan 05, 2019 8:57 pm

I understand the code change for direct access which means the crawlers will index those pages likewise if people know that they will be able to access the direct forum URL outside iFrame.

I think the previous code is fine and if access is needed to forum to fix simething then remove the overall_header.html code to allow access while fixing.

Re: V3 concept for the iframe integration

by axew3 » Sat Jan 05, 2019 8:15 pm

the overall_header.html and overall_footer.html v3 JS code has been patched because it was hard for all to access ACP when iframe activated, and for several other reasons:
now the code has been changed to:
when phpBB admin ACP link clicked, new page will be opened if clicked within iframe.
when acp page, login or ACP admin, accessed via direct url, equally, it will be opened as called, external, no redirect to iframe will fire.
That will make the situation more clear and useful for all.

Re: V3 concept for the iframe integration

by axew3 » Thu Jan 03, 2019 1:45 pm

the complete correct code has been published at date of this post, with new plugin 1.9.4 release.

V3 iframe concept applied online

by axew3 » Sat Dec 29, 2018 9:35 pm

This online installation example at date of this post run:
the new v3 iframe code and phpBB 3.2.5.
Let check to resolve, in case, any possible remaining bug that by the way at moment seem to not come out in any way ;)

p.s beside all fixed in one shot about redirects of any kind, note that also inline posts links now loads without the "in iframe page reload" bad effect. Also this aspect has been definitively resolved.

Uh! let check this kind of links inline into a post:
viewforum.php?f=1

yeah, you have the same result! in any way you open it ...

you do not have to edit any phpBB notification email template to redirect users to iframe.
you do not have to edit htaccess.
you do not have to worry about spiders and seo.

Re: V3 concept for the iframe integration

by axew3 » Wed Dec 26, 2018 11:17 am

The overall_footer.html v3 code has been updated at date of this reply.
It fix a problem on redirect same domain links.
Now all should work smooth and perfect ...

Top