Template Iframe integration fixes (the awesome phpBB iframe integration)
Posted: Thu Dec 07, 2023 11:43 pm
Note that the page-forum.php has been updated on latest 2.7.7
and while the template integration via shortcode do not require any action to be updated, the page-forum.php instead, require to be rebuilt or manually substituted into the active template folder if you wish to do so, with the new one (renaming it if necessary in accord with your forum-name page setting on plugin admin)
/wp-content/plugins/wp-w3all-phpbb-integration/addons/page-forum.php
Note important, that also the overall_footer.html code has been updated
https://www.axew3.com/w3/2020/01/phpbb- ... iframe-v5/
where it was
has been changed into
to always and correctly scroll the page to the right position, when there are many replies and/or the page's height is very high.
Minor fixes.
https://www.axew3.com/w3/2020/01/phpbb- ... iframe-v5/
Remember to recompile stale template.
Enjoy.
and while the template integration via shortcode do not require any action to be updated, the page-forum.php instead, require to be rebuilt or manually substituted into the active template folder if you wish to do so, with the new one (renaming it if necessary in accord with your forum-name page setting on plugin admin)
/wp-content/plugins/wp-w3all-phpbb-integration/addons/page-forum.php
Note important, that also the overall_footer.html code has been updated
https://www.axew3.com/w3/2020/01/phpbb- ... iframe-v5/
where it was
Code: Select all
if(/#p/ig.exec(window.location.hash)){
let e = document.getElementById(window.location.hash.substr(1)).getBoundingClientRect();
let w3append = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=' + parseInt(e.top);
window.parent.postMessage({
'message': w3append
}, w3allAllowDomain);
} else {
let w3append = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=0';
window.parent.postMessage({
'message': w3append
}, w3allAllowDomain);
}
Code: Select all
if(/#p/ig.exec(window.location.hash)){
//let e = document.getElementById(window.location.hash.substr(1)).getBoundingClientRect();
let p = document.getElementById(window.location.hash.substr(1));
let e = $(p).offset().top;
let w3append = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=' + parseInt(e);
window.parent.postMessage({
'message': w3append
}, w3allAllowDomain);
} else {
let w3append = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=0';
window.parent.postMessage({
'message': w3append
}, w3allAllowDomain);
}
Minor fixes.
https://www.axew3.com/w3/2020/01/phpbb- ... iframe-v5/
Remember to recompile stale template.
Enjoy.