iframe mode: overall_footer.html and page-forum.php update/addition to fix phpBB quick login
Posted: Wed Feb 22, 2017 5:23 pm
The documentation about iframe embedded has been updated just to fix the quick login on phpBB template:due to ... after update of phpBB to 3.2, i do not want to modify template, removing quick login form to get wp_w3all iframe mode more ok...
https://www.axew3.com/w3/2016/02/embed- ... esponsive/
When user click on phpBB quick login form elements, the openmodal login screen will correctly fire.
on phpBB overall_footer.html file, has just been added the follow code (see the link above):
Code: Select all
$(document).on('click', '.quick-login', function(){
var w3allappend = "phpbb_quick_login";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});
Code: Select all
if (w3all_pass_login == true) {
var w3_login_modallink = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?#w3allopenModal';
window.location.replace(w3_login_modallink);
}
Code: Select all
if (w3all_pass_login == true || w3all_passed_url.indexOf('phpbb_quick_login') > -1) {
var w3_login_modallink = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?#w3allopenModal';
window.location.replace(w3_login_modallink);
}
This will be added on coming WP_w3all phpBB WordPress 1.6.4.