Skip to content

axew3.com

Php/MySQL/Javascript

  • Home
  • Forum
  • Free plugins
  • Supported plugins and Contact
    • WP_w3 VTP plugin: Video Killed the WordPress Star!
    • WPD – w3all WordPress Dropbox plugin
    • Contact Alessio Nanni

Tag: phpbb secure redirect

phpBB external login redirect
how to – domain, subdomain

To correctly do an external redirect for domain in phpBB 3> it is required to modify/edit a single file in phpBB:

open with text editor /includes/functions.php

search for the function redirect

1
function redirect($url, $return = false, $disable_cd_check = false)

inside this function there is this code:

1
2
else if (!empty($url_parts['scheme']) && !empty($url_parts['host']))
{

just after this two lines, add the follow:

1
$disable_cd_check = true;

save and replace phpBB includes/functions.php.

Consider that this solution not meant to redirect to cross-domains and only able to redirect within the same domain if $disable_cd_check is false (yourdomain.com -> www.yourdomain.com will not work).

Another way on the same function redirect of same file includes/functions.php

search for

1
2
3
function redirect($url, $return = false, $disable_cd_check = false)
{
global $user, $phpbb_path_helper, $phpbb_dispatcher;

immediately after add the following code:

1
2
3
4
5
6
global $request;
if( $request->variable('mode', '') == 'login' && isset($_POST["redirect"]) ){
$rwp = trim($_POST["redirect"]);
header("Location: $rwp");
exit;
}

Maybe a little check to this passed redirect url, if it is coming from WordPress side, or within phpBB, or from a needed specific domain to redirect to should be done (may not).

Author axew3Posted on February 14, 2016April 29, 2018Categories Wordpress phpBB integrationTags phpBB external login, phpBB external login redirect, phpbb secure redirect, secure phpbb login redirect, subdomain redirect phpbbLeave a comment on phpBB external login redirect
how to – domain, subdomain

From Forums – Links mode

  • WordPress developer as a career!
    by Madisondade at 08:23 2019-02-14
  • How do I stop redirection to the iFrame?
    by axew3 at 14:44 2019-02-13
  • iFrame Forum/WP error
    by axew3 at 15:49 2019-02-12

From Forums – Post text

  • WordPress developer as a career!
    Nice post, Thanks for sharing it with us. ...
    by Madisondade at 08:23 2019-02-14
  • How do I stop redirection to the iFrame?
    p.s this is not a cookie issue well maybe into ACP change for this install (or via sql) the cookie prefix, and clean cookie into your browser, then re-login, because yes ...
    by axew3 at 14:44 2019-02-13

wp w3all Login

Login - Register



I forgot my password

WP login/out

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Recent Blog Posts

  • WordPress phpBB
    mChat integration
  • phpBB WordPress template integration (iframe v3)
  • Add google recaptcha to memberpress login page
  • phpBB WordPress template integration (iframe v2)
  • Transfer phpBB users into WordPress or WordPress users into phpBB

Categories

  • General In-Out
  • Joomla!
  • Php tips and hints
  • phpBB
  • Server related
  • w3all plugins
  • WordPress
  • WordPress Ajax Chat integration
  • Wordpress phpBB integration
  • Home
  • Forum
  • Free plugins
  • Supported plugins and Contact
    • WP_w3 VTP plugin: Video Killed the WordPress Star!
    • WPD – w3all WordPress Dropbox plugin
    • Contact Alessio Nanni
axew3.com Proudly powered by WordPress