Code: Select all
if(/adm\//ig.exec(window.location.href) === null){ // avoid x ACP
Code: Select all
if(/adm\//ig.exec(window.location.href) === null || /install\//ig.exec(window.location.href) === null){ // avoid x ACP and install
Note: if in trouble with the overall_header.html javascript added code, and Recompile Stale Template option into phpBB is set to no at this moment (then changes done into template files do not affect, you can't remove/deactivate overall_header.html added javascript), remember that you can DISABLE JAVASCRIPT on BROWSER.
Remember also to DISABLE REGISTRATIONS in WordPress while updating phpBB, to not allow a new WP registered user in the while, to register into WP side, without being added into phpBB.