iframe mode: overall_footer.html and page-forum.php update/addition to fix phpBB quick login

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: iframe mode: overall_footer.html and page-forum.php update/addition to fix phpBB quick login

iframe mode: overall_footer.html and page-forum.php update/addition to fix phpBB quick login

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.

Top