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 external login 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

  • Crayon Syntax Highlighter for Classic editor OR Gutenberg
    by tosunkaya at 12:11 2021-01-16
  • Another Loop for preloader
    by DjPorkchop73 at 17:22 2021-01-15
  • page-forum - Preloader loop
    by axew3 at 09:45 2021-01-15

From Forums – Post text

  • Crayon Syntax Highlighter for Classic editor OR Gutenberg
    5 year ago version is still working. Can i use this one when it broke or paste new files? What changes have you made thanks Maybe you can upload this to ...
    by tosunkaya at 12:11 2021-01-16
  • Another Loop for preloader
    Ok sounds good. I will hold off on upgrading my website until I hear back further. ...
    by DjPorkchop73 at 17:22 2021-01-15

wp w3all Login

Register

Username

Password

Remember me



I forgot my password

WP login/out

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

Recent Blog Posts

  • WP W3ALL 2.4.0> phpBB to WordPress
  • phpBB WordPress template integration (iframe v5)
  • [w3allcustomiframe] shortcode how to
  • phpBB WordPress template integration (iframe v4)
  • Shortcode: phpBB PM into WordPress

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