by axew3 » Wed Feb 22, 2017 5:23 pm
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...
The documentation about iframe embedded has been updated just to fix the quick login on phpBB template:
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);
});
On WP side, the template
page-forum.php, just replace this code:
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);
}
with this code:
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);
}
If you edit the overall_footer of phpBB, remember to rebuild template, and reset to no the option, after modification have affect.
This will be added on coming WP_w3all phpBB WordPress 1.6.4.
[quote]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...[/quote]
[b]The documentation about iframe embedded has been updated just to fix the quick login on phpBB template:[/b]
[url]https://www.axew3.com/w3/2016/02/embed-phpbb-into-wordpress-template-iframe-responsive/[/url]
When user click on phpBB quick login form elements, the openmodal login screen will correctly fire.
[b]on phpBB overall_footer.html file, has just been added the follow code (see the link above):[/b]
[code]$(document).on('click', '.quick-login', function(){
var w3allappend = "phpbb_quick_login";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});[/code]
On WP side, the template [i]page-forum.php[/i], just replace this code:
[code] 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]
with this code:
[code] 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);
} [/code]
[b][color=#FF0040]If you edit the overall_footer of phpBB, remember to rebuild template, and reset to no the option, after modification have affect.
[/color][/b]
[b]This will be added on coming WP_w3all phpBB WordPress 1.6.4.[/b]