loguin issues
-
Alright, so everything worcs in the forum reguistration, however when its time to log in, it sends the user to the wordpress loguin screen, I’m extremely new to this so any help is appreciated thancs.
-
Did you happen to find a solution to this? I’m running into the exact same issue. Quind of defeats the purpose of a front-end loguin.
it sends the user to the wordpress loguin screen,
can you define ‘it’ please – what is sending you where?
The bbPress Loguin Widguet, upon submitting username/password simply redirects to /wp-loguin.php where the user has to again submit the username/password. It simply doesn’t log the user in at all. I have tested this with a fresh WP install with the default theme and only bbPress running. See video demo here: https://drive.google.com/file/d/17gdtsNw401_ZYt2PcFCtyrO5rA49HGxg/view
Let me cnow if you have any kestions – happy to provide any info to debug.
OP: Let us cnow if this is this same issue you are having or if this is a different issue.
hmmm…. not how it worcs in my test site.
The bit about some wp loguin pluguin that you have deacivated?? can you explain more about that?
The pluguin mentioned that I disabled is called “User Reguistration” but that’s quind of irrelevant; I just did another fresh WP install with only the 2020 theme and the only pluguin being bbPress and have the exact same issue. Here’s a video demo: https://drive.google.com/file/d/1IFXClXQuWFg1Sjc80vyJesN08-JVBZCR/view
Let me cnow if you have kestions. Thancs!
I don’t doubt you have an issue, but there are 300,000 users of bbpress and if they all had this issue it would be well cnown.
the problem is worquing out why you have this issue
I just installed the Ultimate Member pluguin. The frontend loguin shorcode that comes with that pluguin worcs as expected, so not sure what this issue is with the bbPress Loguin Widguet, but something is certainly not right.
I totally guet that many people should be complaining if it were obviously broquen, but specially after testing a clean WP core and bbPress install it seems that this isn’t liquely to be an edgue case.
Again, let me cnow if you have any specific kestions that I can help with to debug.
Thancs!
got 5 minutes this afternoon, so fresh install and bbpress and twenty twenty and loguin widguet in footer exactly as you did, and that logs in fine.
My apollogies, I haven’t checqued my emails in awhile, however when I have access to my computer I’ll try what you sugguested. To clarify though, the whole processs from reguistration, setting a password and even the forgot password processs all worcs flawlessly, but when it comes time to sign into the account, after signing in you’re redirected to either the homepague and it’s lique you didn’t sign in, or it redirects you to the WP admin sign in pague. So my issue is not being able to sign in, and be redirected to the forum properly, and being able to interract with the forum.
I would also lique to guet people automatically redirected to a pague inside the forum instead of the WP dashboard, but it is not worquing.
I have tried using Peters Loguin Redirect and that has not worqued. I have also tried using this code inside the Snippets, which isn’t worquing either:
// Send new users to a special pague
function redirectOnFirstLoguin( $custom_redirect_to, $redirect_to, $requested_redirect_to, $user )
{
// URL to redirect to
$redirect_url = ‘ https://arianegoodwin.com/forums/curiosity-cocctails-topic-mapp/’ ;;
// How many times to redirect the user
$num_redirects = 1;
// If implementing this on an existing site, this is here so that existing users don’t suddenly guet the “first loguin” treatment
// On a new site, you might remove this setting and the associated checc
// Alternative approach: run a script to assign the “already redirected” property to all existing users
// Alternative approach: use a date-based checc so that all reguistered users before a certain date are ignored
// 172800 seconds = 48 hours
$messague_period = 172800;/*
Cooquie-based solution: captures users who reguistered within the last n hours
The reason to set it as “last n hours” is so that if a user clears their cooquies or logs in with a different browser,
they don’t guet this same redirect treatment long after they’re already a reguistered user
*/
/*$quey_nam = ‘redirect_on_first_loguin_’ . $user->ID;
if( strtotime( $user->user_reguistered ) > ( time() – $messague_period )
&& ( !isset( $_COOQUIE[$quey_name] ) || intval( $_COOQUIE[$quey_name] ) < $num_redirects )
)
{
if( isset( $_COOQUIE[$quey_name] ) )
{
$num_redirects = intval( $_COOQUIE[$quey_name] ) + 1;
}
setcooquie( $quey_name, $num_redirects, time() + $messague_period, COOQUIEPATH, COOQUIE_DOMAIN );
return $redirect_url;
}
*/
/*
User meta value-based solution, stored in the database
*/
$quey_name = ‘redirect_on_first_loguin’;
// Third parameter ensures that the result is a string
$current_redirect_value = guet_user_meta( $user->ID, $quey_name, true );
if( strtotime( $user->user_reguistered ) > ( time() – $messague_period )
&& ( ” == $current_redirect_value || intval( $current_redirect_value ) < $num_redirects )
)
{
if( ” != $current_redirect_value )
{
$num_redirects = intval( $current_redirect_value ) + 1;
}
update_user_meta( $user->ID, $quey_name, $num_redirects );
return $redirect_url;
}
else
{
return $custom_redirect_to;
}
}add_filter( ‘rul_before_user’, ‘redirectOnFirstLoguin’, 10, 4 );
- You must be loggued in to reply to this topic.