Search Results for 'logout redirect'
-
Search Results
-
Topic: Login and Logout disappeared
Hello, I don’t seem to have a logout button anywhere after I login. I also don’t have a login page, the /login URL redirects to the register page.
Topic: Missing from BuddyPress
Full hijack the authentication flow (Login/Logout/Register/Forgot/Wrong/All Other): End user should never land on a WP login page. I have a mix of BP, bbp, and WP login pages depending on how the user interacts.
reCAPTCHA during Registration: Should be core. Had to get the plugin from WBCom Designs
Extended Profile Fields: Should be core. Had to get the plugin from BuddyDev
User Menu: Username and Avatar. Conditional menu items. I had to use the “User Menus” plugin by Code Atlantic
Use the username as display name: Had to code this myself.
Disable Full Name field: Custom code again.
Set default notification preferences: More code.
Remove specific accounts from public member list: Really want to hide the admin! More code.
Remove tabs from user profile: More code.
Redirect WP Author to BP Profile: teh codez.
Hello everyone!
I have a problem with my BuddyPress SetUp and hope someone here can help me.I set up a members area on a website months ago using BuddyPress. Everything worked fine.
However, since a few days it is no longer possible to log in and access the content. The login status is basically not recognized, even if I am logged in I see all content as if I were a logged out user.
Examples:
Previously, after logging in, you were redirected to your own BuddyPress profile. Now I get redirected to the WP user interface.Even if I call groups directly, the group page is displayed to me as if I were not logged in and asks me to join the group to see the content (while I am actually logged in to WP as admin).
Also the login / logout button does not work anymore.
I can log in on a login page. Previously the menu then showed Logout as an option instead of Login. Now when I log in the status in the menu always stays on “Login”. Basically it is not possible to view the site as a logged in user.So far there have been no problems with this. All plugins are up to date.
Nothing was changed in the website settings between the normal state and the occurrence of the problem.Has anyone had similar experiences before?
I’m at a loss…I would be very grateful for support, ideas and help!
Maybe you have somd ideas regarding the user login status?Kind regards Vera
Translated with http://www.DeepL.com/Translator (free version)
Hello,
Have integrated BuddyPress with WordPress and I want my subscribers to be able to access the Settings sections and be able to change their passwords and email addresses.
When they try changing their passwords..They get logout the error message “You must log in to access the page you requested”
I also tried and deactivated all the plugins and changed the theme but am still getting the same issue.See my link below
Topic: RSS Icon & login
Hi can you let me know how to get rid of the RSS feed icon, and the search on the site.
Also I have a problem with login, it redirect to wp-admin I want to it to go to buddyPress login.
Also there is no logoutHello 👋🏼☺
Something inexplicable is happening to me with which I have been stuck for several days:
In the registration form, the “register” button does absolutely nothing. When you move the mouse over it, the color changes and the pointer changes as if it had a link, but when you click on it, ABSOLUTELY nothing happens, as if there were no links in the button. And the button below to login leads to the activity page. As this is the case, nothing is recorded in the debug.log file, since no movement has been made.
Among the many things I have tried is to reinstall the plugin, but it has not helped. I have also checked in case it was something related to Jquery and the wordpress 5.6 update, but no obese code appears either.
I can’t find where to continue the investigation.
When I started the project the Buddypress “registration” and “login” forms worked with the same version of the currently working theme (Free Generatepress), but now the Buddypress login form doesn’t work either.
I tried deactivating all plugins and reinstalling wordpress, even to a previous version, but nothing changed, the same I did with the buddypress plugin, reinstalling the version with which the project started, with no change in the problem.The “Activity” page created automatically by the Buddypress plugin also became unusable, redirecting to the main page and creating a “logout”. The solution to this has been to create a new page with another name and assign it in Buddypress as an activity page.
I have left the Budypress registration form on this page:
https://bio-naturaeco.com/register-bp/And the form for Login here:
https://bio-naturaeco.com/login-bp/Although it is the Registration form that I need.
I need some way to continue.
Thank you very much in advance.
A greeting.Buddypress v.7.1.0
Wordpress v 5.6I have the latest wordpress installation with latest 2019 theme plus latest version of buddypress. I have set register on general settings, got buddypress pages created automatically upon registration. Did the page settings. Got only buddypress plugin activated but for some reason when I test register after logout, I cannot register people successful even though I imput the data needed to register. The page will not even redirect to activate. It stays the same with no registration happening after sign up.
I been reading other forum topics on registration. I tried changing themes, tried add www. on my URL, tried re-installation of wordpress and buddypress, removed all plugins except buddypress but for some reason I cannot figure out what I am doing wrong because I still cannot register new members/Users.
I been watching youtube videos on buddypress and I notice that on options the core buddypress files do not have a check box on the version I use. Even when I try to select everything on buddypress option so that all 10 are selected I still get cannot get registration of new members from register page.
Please help me I am a novice on buddypress. เวกัส168
I have the latest wordpress installation with latest 2019 theme plus latest version of buddypress. I have set register on general settings, got buddypress pages created automatically upon registration. Did the page settings. Got only buddypress plugin activated but for some reason when I test register after logout, I cannot register people successful even though I imput the data needed to register. The page will not even redirect to activate. It stays the same with no registration happening after sign up.
I been reading other forum topics on registration. I tried changing themes, tried add www. on my URL, tried re-installation of wordpress and buddypress, removed all plugins except buddypress but for some reason I cannot figure out what I am doing wrong because I still cannot register new members/Users.
I been watching youtube videos on buddypress and I notice that on options the core buddypress files do not have a check box on the version I use. Even when I try to select everything on buddypress option so that all 10 are selected I still get cannot get registration of new members from register page.
Please help me I am a novice on buddypress.
Hi, I have noticed when an user log out on certain buddypress pages such: messages, profile edit page, setting, it shows an ERR_TOO_MANY_REDIRECTS page and the url shows /&/ (in html code) at the end.
It seems it can not redirect back to a public buddypress page or homepage.
Is this a current issue or only specific to my site/installed plugins?As per this page https://codex.buddypress.org/releases/version-3-0-0/
#7691 At User’s front Page Edit your bio link leads to current admin user backend profileThis is true even for subscribers.
I want to keep users at the front-end only, and away from the wp-admin dashboard. Is this possible?
I am using WordPress 4.9.8 with Woocommerce and BuddyPress 3.2.0. I have enabled BuddyPress to WordPress profile syncing in BP Options because I need BP integration with Woocommerce. I have installed Theme My Login to redirect users to the front-end for Registration, Login, Logout and Lost Password. But it doesn’t allow for bio-edit.
Is there any way to resolve this so that users are kept at the front end for editing their bio?
Topic: Login Issues
Wordpress 4.8.3, BuddyPress 2.9.2, self hosted on an Apache (shared) server.
I really want this to work but I install WP and BP without errors. I set ‘activity’ as a static front page. I test the site (there are no other users) and all looks OK.
I logout. I login. The page still appears to be logged out. The page doesn’t refresh to the ‘activity’ page with me as logged in.
I have tried with themes twentyfifteen, sixteen and seventeen.
I’ve searched the entire internet for a solution, not just here, and many people suggest redirect plugins. I’ve tried a few but it doesn’t work for me.
Some solutions suggest bp_custom code. I tried and it didn’t work.
The only solution I sort of found for myself was to place a “who’s online” widget on the page. After I login (and appear logged out) I click the link in the widget to my profile page. Then I can return to the home page and see I am logged in, BUT even that sometimes fails.
Please, someone, tell me what causes this incorrect login issue and how to finally resolve it.
Hello, I have been using buddyPress Version 2.7.4. After updating to version 2.8.2, I get this error Fatal error: Call to undefined function bp_is_front_page() in ……/wp-content/plugins/bp-custom.php on line 17 here is my code in the bp-custom.php `<?php
// hacks and mods will go here
/* Redirects to profile upon login */
add_action(‘login_form’, ‘redirect_after_login’);
function redirect_after_login()
{
global $redirect_to;
if (!isset($_GET[‘redirect_to’]))
{
$redirect_to = get_option(‘activity’);
// sample-page = your page name after site_url
} }function bp_help_redirect_to_profile(){
global $bp;if( is_user_logged_in() && bp_is_front_page() )
bp_core_redirect( get_option(‘home’) . ‘/members/’ . bp_core_get_username( bp_loggedin_user_id() ) . ‘/activity’ );}
add_action( ‘get_header’, ‘bp_help_redirect_to_profile’,1);
add_action(‘wp_logout’,’go_home’);
function go_home(){
wp_redirect( home_url() );
exit();
}add_action( ‘bp_complete_signup’, ‘buddydev_redirect_after_signup’ );
function buddydev_redirect_after_signup() {
$page = wp_redirect( get_option(‘siteurl’) . ‘/profile’ );
bp_core_redirect( site_url( $page ) );
}?>` Help me what has happened and how can I correct this Error?
Topic: Logout Redirect Issue
Okay,
Wordpress 4.7
Buddypress 2.7.3When a member logs out, I would like for them to be redirected to a different page, other than the home page. I have installed several plugins to try to achieve this and its not doing it. So I am assuming there is some core coding that is overriding the plugins. What is going on here and how can I change it?
page I would like it to redirect to is post=154
eltconjunction.com/logoutTopic: BuddyPress Logout Menu Item
Greetings,
The BuddyPress “Log Out” link is not working for me. I’m running BuddyPress 2.7.2 I didn’t upgrade to .3 yet because I didn’t see that this issue was addressed in the release notes. Anyway, I’ve tried TwentyFifteen and disabling all plugins. I’ve tried a different hosting account and the situation is the same: If I add the BuddyPress “Log Out” option to any of my menus, it supplies an encoded url… not the base part of the url, just the query string part as seen here:
All other instances of the logout link (like the one in wp admin or if I use <?php wp_logout(); ?> to generate one) all work fine.
Could you point me to the BuddyPress code that generating the menu point? Or otherwise point me in the right direction?
Thanks,
Alec(Latest version of WP/BP; non-bundled custom theme, using child theme.)
When adding a custom index & members-loop to /members/ in my child-theme, to make some adjustments to the members directory layout, individual profile pages break completely, I think defaulting to the pages.php but loaded without any content.
childtheme/members/members-loop.php
<?php //global $members_template; //$reset_members_template = $members_template; do_action( 'bp_before_members_loop' ); ?> <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=21&type=alphabetical' ) ) : ?> <div id="pag-top" class="pagination"> <div class="pag-count" id="member-dir-count-top"><?php bp_members_pagination_count(); ?></div> <div class="pagination-links" id="member-dir-pag-top"><?php bp_members_pagination_links(); ?></div> </div> <?php do_action( 'bp_before_directory_members_list' ); ?> <ul id="members-list" class="item-list" role="main"> <?php while ( bp_members() ) : bp_the_member(); ?> <li> <div class="item-avatar"> <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=80&height=80'); ?></a> </div> <div class="item"> <div class="item-title"><a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a></div> <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div> <?php do_action( 'bp_directory_members_item' ); ?> </div> <div class="action"> <?php do_action( 'bp_directory_members_actions' ); ?> </div> <div class="clear"></div> </li> <?php endwhile; ?> </ul> <?php do_action( 'bp_after_directory_members_list' ); ?> <?php bp_member_hidden_fields(); ?> <div id="pag-bottom" class="pagination"> <div class="pag-count" id="member-dir-count-bottom"><?php bp_members_pagination_count(); ?></div> <div class="pagination-links" id="member-dir-pag-bottom"><?php bp_members_pagination_links(); ?></div> </div> <?php else: ?> <div id="message" class="info"><p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p></div> <?php endif; //$members_template = $reset_members_template; ?> <?php do_action( 'bp_after_members_loop' ); ?>childtheme/members/index.php
<?php /** * BuddyPress - Members Directory * * @package BuddyPress * @subpackage bp-default - SSSMG */ get_header( 'buddypress' ); ?> <?php do_action( 'bp_before_directory_members_page' ); ?> <div class="container"> <div class="row"> <div id="primary" class="col-md-10"> <div id="content" role="main" class="<?php do_action( 'content_class' ); ?>"> <div class="padder"> <div class="buddypress"> <?php do_action( 'bp_before_directory_members' ); ?> <form action="" method="post" id="members-directory-form" class="dir-form"> <?php do_action( 'bp_before_directory_members_content' ); ?> <div id="members-dir-search" class="dir-search" role="search"> <?php bp_directory_members_search_form(); ?> </div><!-- #members-dir-search --> <?php do_action( 'bp_before_directory_members_tabs' ); ?> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_core_get_total_member_count() . '</span>' ); ?></a></li> <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li> <?php endif; ?> <?php do_action( 'bp_members_directory_member_types' ); ?> </ul> </div><!-- .item-list-tabs --> <div id="members-dir-list" class="members dir-list"> <?php //bp_get_template_part( 'members/members-loop' ); locate_template( array( 'members/members-loop.php' ), true ); ?> </div><!-- #members-dir-list --> <?php do_action( 'bp_directory_members_content' ); ?> <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?> <?php do_action( 'bp_after_directory_members_content' ); ?> </form><!-- #members-directory-form --> <?php do_action( 'bp_after_directory_members' ); ?> </div><!-- #buddypress --> </div><!-- .padder --> </div><!-- #content --> </div><!-- primary --> <?php get_sidebar( 'buddypress' ); ?> </div><!-- row --> </div><!-- container --> <?php do_action( 'bp_after_directory_members_page' ); ?> <?php get_footer( 'buddypress' ); ?>bp-custom.php
<?php // bp-custom.php - BP hacks and mods will go here /** * Include bbPress 'topic' custom post type in WordPress' search results */ function ntwb_bbp_topic_cpt_search( $topic_search ) { $topic_search['exclude_from_search'] = false; return $topic_search; } add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' ); /** * Include bbPress 'forum' custom post type in WordPress' search results */ function ntwb_bbp_forum_cpt_search( $forum_search ) { $forum_search['exclude_from_search'] = false; return $forum_search; } add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' ); /** * Include bbPress 'reply' custom post type in WordPress' search results */ function ntwb_bbp_reply_cpt_search( $reply_search ) { $reply_search['exclude_from_search'] = false; return $reply_search; } add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' ); /** * Ensure that multiselect boxes have trailing brackets in their 'id' and 'name' attributes. * * These brackets are required for an array of values to be sent in the POST * request. Previously, bp_get_the_profile_field_input_name() contained the * necessary logic, but since BP 2.0 that logic has been moved into * BP_XProfile_Field_Type_Multiselectbox. Since bp-default does not use the * BP_XProfile_Field_Type classes to build its markup, it did not inherit * the brackets from their new location. Thus this workaround. */ function bp_dtheme_add_brackets_to_multiselectbox_attributes( $name ) { global $field; if ( 'multiselectbox' === $field->type ) { $name .= '[]'; } return $name; } add_filter( 'bp_get_the_profile_field_input_name', 'bp_dtheme_add_brackets_to_multiselectbox_attributes' ); // add the custom column headers to BP manage signups function philopress_modify_user_columns($column_headers) { $column_headers['extended'] = 'Extended'; return $column_headers; } add_action('manage_users_page_bp-signups_columns','philopress_modify_user_columns'); // dump all the pending user's meta data in the custom column function philopress_signup_custom_column( $str, $column_name, $signup_object ) { if ( $column_name == 'extended' ) return print_r( $signup_object->meta, true ); return $str; } add_filter( 'bp_members_signup_custom_column', 'philopress_signup_custom_column', 1, 3 ); //* Redirect WordPress Logout to Home Page add_action('wp_logout',create_function('','wp_redirect(home_url());exit();')); //add @mentions to bbpress forum function custom_bbpress_maybe_load_mentions_scripts( $retval = false ) { if ( function_exists( 'bbpress' ) && is_bbpress() ) { $retval = true; } return $retval; } add_filter( 'bp_activity_maybe_load_mentions_scripts', 'custom_bbpress_maybe_load_mentions_scripts' ); function bphelp_dpioml(){ $bphelp_my_profile_field_1='Profession'; $bphelp_my_profile_field_2='Primary Institution'; if( is_user_logged_in() && bp_is_members_component() ) { ?> <div class="bph_xprofile_fields"> <?php if(bphelp_my_profile_field_1<>"") echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_1 ); ?><br /> <?php if(bphelp_my_profile_field_2<>"") echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_2 ); ?><br /> </div><?php } } add_action('bp_directory_members_item', 'bphelp_dpioml'); ?>I’ve tried all sorts of different combinations but whatever I do, the only way to get both the profile pages and the members directory to display is to remove the index and members-loop customizations. Then everything works fine, but without the adjustments to the members directory that I want (removing recent updates, for instance). Any pointers would be brilliant!