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: secure phpbb 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).

axew3Author 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

  • axew3General Installation and Integration Questions
    by axew3
    March 20, 2023 10:36 pm
  • axew3phpBB WordPress integration extension v2
    by axew3
    January 28, 2023 12:36 am
  • axew3Coming 2.6.9 phpBB WordPress logs/bugs/requests
    by axew3
    January 23, 2023 10:15 pm

From forums – With text

  • axew3General Installation and Integration Questions
    Hello, i will try to explain in short any point: 1) You can use the integration WP phpBB plugin as standalone, ...
    by axew3
    March 20, 2023 10:36 pm
  • axew3phpBB WordPress integration extension v2
    The (awesome) w3all phpBB WordPress extension v2 Should work into any Php 5.6> and phpBB 3.2 or > Anyway it has been ...
    by axew3
    January 28, 2023 12:36 am

wp w3all Login

Register

  Username

  Password

Remember me



I forgot my password

phpBB online users and stats

Most users ever online was: 640
Registered users: 622
Topics: 805
Posts: 4495
There are 7 guests and 1 users online
Ahrefs [Bot]

WP login/out

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

Recent Blog Posts

  • Switch WP user to specified Group in phpBB, when Role updated in WordPress and vice versa
  • Shortcode: phpBB notifications into WordPress
  • The (awesome) iframe template integration using shortcode
  • phpBB WordPress Integration Common Tasks extension
  • phpBB WordPress template integration (iframe v5)

Categories

  • General In-Out
  • Joomla!
  • Php tips and hints
  • phpBB
  • Server related
  • w3all plugins
  • WordPress
  • WordPress Ajax Chat integration
  • Wordpress phpBB integration

Tags

  • add
  • ajax
  • alessio
  • alessio nanni
  • another
  • axew3
  • bbcode
  • buddypress
  • comments
  • connection
  • content
  • db
  • default
  • different
  • domain
  • email
  • excerpts
  • external
  • feed
  • fields
  • how to
  • iframe
  • integration
  • last posts
  • last topics
  • nanni
  • notification
  • parser
  • phpbb
  • phpbb mchat
  • phpbb profile fields
  • phpbb wordpress template integration
  • pm
  • post
  • posts
  • profile
  • reset
  • shortcode
  • synchronize
  • template
  • template integration
  • transfer
  • users
  • widgets
  • wordpress
  • 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
© 2007 - 2022 - axew3.com Proudly powered by WordPress