Redirect user registration

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
Thunder86
Registered User
Posts: 99
Joined: Fri Apr 07, 2023 6:21 am

Redirect user registration

Post by Thunder86 »

Hey!

I used the search but all hits are quite old and I don't know if they are still working.

I integrated the phpbb in a Wordpress site which shares the database with the phpbb. Instead of using the phpbb registration, I want to use just the WP registration.

How can I redirect all phpbb registration links to the WP registration?
Last edited by Mick on Wed Mar 13, 2024 7:45 am, edited 1 time in total.
Reason: Solved.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26714
Joined: Fri Aug 29, 2008 9:49 am

Re: Redirect user registration

Post by Mick »

Have a look at wp-w3all-phpbb on the Wordpress site, it states it’s up to date having been updated 2 days ago and tested on 3.3.7.

There are others:

https://wphive.com/plugins/wp-united/

https://bridgedd.com
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
Thunder86
Registered User
Posts: 99
Joined: Fri Apr 07, 2023 6:21 am

Re: Redirect user registration

Post by Thunder86 »

This doesn’t answer my question! I already use the w3all plugin!

My question is how to edit the phpbb code that all registrations links in the phpbb will be automatically redirected to the WP registration.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26714
Joined: Fri Aug 29, 2008 9:49 am

Re: Redirect user registration

Post by Mick »

I was under the impression you could do that within w3all.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
Thunder86
Registered User
Posts: 99
Joined: Fri Apr 07, 2023 6:21 am

Re: Redirect user registration

Post by Thunder86 »

No the plugin use both registrations due to the fact that the databases are synchronised.

As example it would be nice, if this link is redirected to the WP registration.
IMG_0152.jpeg
You do not have the required permissions to view the files attached to this post.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26714
Joined: Fri Aug 29, 2008 9:49 am

Re: Redirect user registration

Post by Mick »

It’s been a while but in navbar_header.html (not tested)

Replace

Code: Select all

<a href="{U_REGISTER}" role="menuitem">
With

Code: Select all

<a href=http://yourlink.com>
Purge the cache.

Make sure you back up the html file before editing.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
Thunder86
Registered User
Posts: 99
Joined: Fri Apr 07, 2023 6:21 am

Re: Redirect user registration

Post by Thunder86 »

Thanks!

Do you know any possibility to change the parameters for {U_REGISTER} which will redirect every request to the WP registration ?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26714
Joined: Fri Aug 29, 2008 9:49 am

Re: Redirect user registration

Post by Mick »

Me personally no but somebody more in the know may pop in and help.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6037
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Redirect user registration

Post by thecoalman »

I would just do this with .htaccess redirect. I'd check their documentation and/or their support section because that is something many people would want. Frankly I'd be surprised if it wasn't addressed.

Bit of warning, I would test breaking the bridge because if you lose support for the bridge down the road, even years from now, you could be left with a giant mess on your hands.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Thunder86
Registered User
Posts: 99
Joined: Fri Apr 07, 2023 6:21 am

Re: Redirect user registration

Post by Thunder86 »

Okay I have thought there is an easy way to redirect all {U_REGISTER} links in phpbb by changing the variable in the code.

That will probably work much more easier than changing all html files manual.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6037
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Redirect user registration

Post by thecoalman »

If you want to go that route common template variables are found at the bottom of includes/functions.php . The issue there is you need to maintain the edit through updates.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Thunder86
Registered User
Posts: 99
Joined: Fri Apr 07, 2023 6:21 am

Re: Redirect user registration

Post by Thunder86 »

I did the changes in the function.php! Works perfect for me. Thank you!

Return to “phpBB Custom Coding”