Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'logout redirect'

Viewing 25 results - 51 through 75 (of 115 total)
  • Author
    Search Results
  • #143943
    mattriggins
    Participant

    Only plugin that is active is Buddypress. Installed BP FriendPress, same issue. Once I logout, I get a redirect that goes no where and the screen is blank.

    Then, if I open a new window and go back to domain.com, it still shows me as logged in.

    I then opened a different browser, and went to domain.com. I put in my login info and tried to login. I again go to a blank white page, sitting at http://domain.com/wp-login.php

    If I refresh the page on the 2nd browser, it takes me back to domain.com/register

    Strange!

    #141781
    modemlooper
    Moderator

    You can also filter logout link. Place this in bp-custom.php or your themes functions.php

    `add_filter(‘logout_url’, ‘my_filtered_logout’);
    my_filtered_logout($logout_url, $redirect) { return “URL-after-logout”; }`

    #141775
    erikahrend
    Member

    Hi again, and sorry for the hassle. I am using Mingle Theme for Buddypress. Mingle allows for two menus (right and left). I have currently set the logout button to the right menu (and to be visible only when users are logged in). I guess what I´m wondering is if there is a way of actually setting the redirection function from within the menu (in the button, in the classes or in the link code).

    Thanks again for your time.

    Erik.

    #141773
    modemlooper
    Moderator

    Anywhere you want a logout link you can place the code. Header.php will show on everypage

    home_url() is the site you’re on main page. If you want another URL use code below and put in URL you want

    `<a href="” title=”Logout”>Logout`

    #141772
    erikahrend
    Member

    Hi and thanks for your reply. Would you mind explaining where exactly I need to insert that code, and also, if, for instance, my home page is: http://www.canarias2nite.com , where in the code provided would I insert the url?

    Excuse my complete lack of coding skills, I just wish I knew better..

    Best,

    Erik.

    #141747
    modemlooper
    Moderator

    `<a href="” title=”Logout”>Logout`

    #140120
    iamdhunt
    Participant

    Thanks I got the redirect logout to work by using the function from here: http://projectivemotion.com/2011/07/27/wordpress-always-redirect-to-homepage-after-logout/

    Still looking to change the link on the toolbar’s My Account from “Edit Profile” to “Activity”

    #140040
    danbpfr
    Participant
    #138168

    In reply to: how to avoid this

    @mercime
    Participant

    == I got this two login forms and link to registration page on two side bars ==

    Open up one of your sidebar templates and remove the login form. Looks strange to have two.

    == how can I redirect this I mean logging out in any shape or form to redirect to registration page. ==

    WP Codex is your friend https://codex.wordpress.org/Function_Reference/wp_logout_url

    #136330

    In reply to: redirect user login

    valuser
    Participant

    https://wordpress.org/extend/plugins/buddypress-login-redirect/ can redirect to 3 different locations after login. 1. Personal Profile / Personal Activity Page 2. Site wide Activity 3. Friends’ Activity

    https://wordpress.org/extend/plugins/login-with-ajax/ this plugin’s settings allows you go to any particular page OR to the current users particular page on login & on logout if you use %USERNAME% — its on the settings page

    #130398
    Boone Gorges
    Keymaster

    To elaborate on what @DJPaul said – BP uses WP’s logout, which is handled by wp-login.php. In particular, a request is sent to wp-login.php?action=logout, with a redirect_to argument of the current BP page.

    #128849
    FLXweb
    Member

    I’m not sure why the activate page is still there as the email now has an automated link but I have figured a way to rectify this! Just install a wp redirection plugin and forward the activate page to whatever URL you would like! I also would recommend using the the login logout redirect plugin!

    #126271
    Flocktome
    Member

    I’m having the same problem as @mwbarker

    It’s all the latest updates. I run my live site with w3TC, have disabled cacheing for logged in users, but still having this problem.

    My localhost test site has W3TC disabled, and it’s no problems. I guess I’ll have togo through all settings one by one until i find out what’s causing this.

    <– Edit.

    Ok, this is weird….
    I believe this has to do with “Page Cache” settings.

    I disabled Cache home page (now, I can loign/logout no probs)
    Selected “Don’t cache pages for logged in users”

    Now, as a test, I visited a few of my pages, log out, no probs. Stay logged out.

    Now, if I visit a page, say “About”, if I login on that page, I can logout, visit the homepage, I’m logged out, but if I visit that page again, it shows me as logged in. When I try to logout of “About”, it send me to the:

    http://mywebsite.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmywebsite.com&_wpnonce=bb1shsjskdd (nonce verify page)

    Very odd.

    spigot_cs
    Member

    Hi, my name is Laurentiu and I work for Spigot.

    I am here to provide information about how to disable the redirection to http://www.mybrowserbar.com/cgi/errors.cgi. Please take a look here: http://www.spigot.com/network_error_assistant.html and also at http://www.spigot.com/uninstall.html.

    Please contact me from our website http://www.spigot.com/contact.html if you need more help.
    Thank you.

    #119298
    jcampbell120
    Member

    Managed to get it to work. Just creates a simple list, you can edit the css to create a drop down menu etc..

    <ul id="menu-home" class="menu-members">
    <li><a href="#">Members Area</a>
    <ul class="sub-menu-members">
    <?php global $bp;
    if ( is_user_logged_in() == false) {
    
    echo'<li><a>root_domain . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
    
    if ( bp_get_signup_allowed() == true ) {
    echo'<li><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
    }}
    ?>
    
    <?php
    if ( is_user_logged_in() == true) { ?>
    <li><a href=&quot;profile/">Profile</a></li>
    <li><a href=&quot;messages/">Messages</a></li>
    <li><a href=&quot;Leagues/">Groups</a></li>
    <li><a href=&quot;friends/">Friends</a></li>
    <?php echo'<li><a href="' . wp_logout_url( site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>' ?>
    
    </ul>
    </li>
    </ul>
    #114952
    gregfielding
    Participant

    I had taken the short snip of code from this plugin https://buddypress.org/community/groups/bp-profile-as-homepage/ and I put this in my functions.php:

    `function bp_profile_homepage()
    {
    global $bp;
    if(is_user_logged_in() && bp_is_front_page())
    {
    wp_redirect( $bp->root_domain . ‘/’ . $bp->activity->slug );
    }
    }
    function logout_redirection()
    {
    global $bp;
    $redirect = $bp->root_domain;
    wp_logout_url( $redirect );
    }
    add_action(‘wp’,’bp_profile_homepage’);
    add_action(‘wp_logout’,’logout_redirection’);`

    That redirects users to site.com/activity

    #111964
    chrisreg1
    Member

    Hmm unfortunately, that still did not work. Thanks for all your help thus far guys. Here is how my problem originated:

    I recently transferred my site from the default ”/wordpress/” sub directory to my root directory. Everything works fine in BuddyPress except for the LOGOUT and LOGIN menu options from the BuddyPress menu bar (up at the top).

    Upon looking at the URL that the logout and login tries to redirect to (in the tag), it still thinks it is in the ”/wordpress” subdirectory and the thus results in a Error 404 – Page Not Found problem.

    I’ve search various ways to do this but people have either not have found a solution or seem to not have posted it. I originally thought I could just use the ‘Add All Nav Links to Admin Bar’ plugin (https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/) and hide the Login and Sign Up options but unfortunately the “Log Out” still remains since it is under the ‘My Account’.

    Any help would be much appreciated, thanks.

    #110662

    In reply to: logout redirect?

    Brooker
    Member

    it doesnt work as I want it to work…”For the user not logged in backend, BuddyPress already redirects them to main site on logout”
    it says that Buddypress already redirect to main site on logout.. but mine doesnt.. it goes to wordpress logout first…

    #110657

    In reply to: logout redirect?

    @mercime
    Participant
    #110427
    Marcos Nobre
    Participant

    Nevermind figured out, wp-login.php line 380 $redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘index.php?loggedout=true’;

    #108887
    Nahum
    Participant

    @gunju2221 thanks for the response. I almost forgot I do have a plugin in place that is supposed to handle logout redirects, when the logout works I do get taken to the homepage. But like I said, sometimes it is the case where it still appears as though I’m logged in because I can see my avatar and username.

    I just wish I could find something that just logged in and logged out with ease!

    #108881
    Virtuali
    Participant

    I don’t think that would be possible, but, there is always a plugin for everything.

    To achieve what you are talking about, it would require ajax to load 3 pages without re-loading the page? Yeah, the wordpress logout requires the standard wp-login.php?action=logout action, to dump that into an ajax js would be pretty difficult.

    You can see what I am talking about, if you go to your site, and click the “Log Out”, the wp-login.php?action=logout will appear, than redirect to the homepage.

    But it would be still worth checking around! :)

    P.S, if there is a plugin that does this, I would expect it to conflict with alot of other plugins.

    #107446

    What happens if you try adding that onclick action to your BP log out?

    <a id="bp-admin-logout" class="logout" href="http://mysite.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmysite.com&_wpnonce=996ffd0d7e">Log Out</a>

    #107002

    Apologies – missed putting the code in backticks:

    BP-FBConnect function is this:
    <a href="#">Logout of Site & Facebook</a>

    BP Function is:
    <a id="bp-admin-logout" class="logout" href="http://mysite.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmysite.com&_wpnonce=996ffd0d7e">Log Out</a>

    #99211
    aomao
    Participant

    That plugin use this code to show users page.

    `function bp_profile_homepage()
    {
    global $bp;
    if(is_user_logged_in() && $_SERVER==’/’)
    {
    wp_redirect( $bp->loggedin_user->domain );
    }
    }
    function logout_redirection()
    {
    global $bp;
    $redirect = $bp->root_domain;
    wp_logout_url( $redirect );
    }
    add_filter(‘get_header’,’bp_profile_homepage’,1);
    add_action(‘wp_logout’,’logout_redirection’);`
    by the way I am testing it in localhost
    maybe that causes problem

Viewing 25 results - 51 through 75 (of 115 total)
Skip to toolbar