Search Results for 'logout redirect'
-
AuthorSearch Results
-
October 25, 2012 at 6:07 am #143943
In reply to: Activity Stream Change…
mattriggins
ParticipantOnly 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!
September 16, 2012 at 3:48 am #141781In reply to: Logout button redirect to home page
modemlooper
ModeratorYou 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”; }`September 16, 2012 at 1:10 am #141775In reply to: Logout button redirect to home page
erikahrend
MemberHi 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.
September 15, 2012 at 11:57 pm #141773In reply to: Logout button redirect to home page
modemlooper
ModeratorAnywhere 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`
September 15, 2012 at 11:17 pm #141772In reply to: Logout button redirect to home page
erikahrend
MemberHi 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.
September 15, 2012 at 2:29 pm #141747In reply to: Logout button redirect to home page
modemlooper
Moderator`<a href="” title=”Logout”>Logout`
August 24, 2012 at 10:08 am #140120In reply to: Change redirect link on Toolbar
iamdhunt
ParticipantThanks 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”
August 23, 2012 at 10:20 am #140040In reply to: Change redirect link on Toolbar
danbpfr
Participanthello,
view here:https://codex.wordpress.org/Function_Reference/wp_logout_url
and here for inspiration
http://wordpress.stackexchange.com/questions/15049/buddypress-redirects-on-login-and-logoutJuly 30, 2012 at 6:03 am #138168In 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
June 24, 2012 at 4:36 pm #136330In reply to: redirect user login
valuser
Participanthttps://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
February 24, 2012 at 4:15 pm #130398Boone Gorges
KeymasterTo 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.
January 30, 2012 at 6:59 pm #128849In reply to: How Do I get rid of the activation code?
FLXweb
MemberI’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!
December 14, 2011 at 11:52 am #126271In reply to: W3 Total Cache and Buddypress Log out issues
Flocktome
MemberI’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.
November 3, 2011 at 11:11 am #123670spigot_cs
MemberHi, 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.August 31, 2011 at 12:59 am #119298In reply to: Buddypress Admin Bar/Menu Changes
jcampbell120
MemberManaged 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="profile/">Profile</a></li> <li><a href="messages/">Messages</a></li> <li><a href="Leagues/">Groups</a></li> <li><a href="friends/">Friends</a></li> <?php echo'<li><a href="' . wp_logout_url( site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>' ?> </ul> </li> </ul>June 21, 2011 at 2:17 am #114952In reply to: BP Global Redirect Question
gregfielding
ParticipantI 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
May 10, 2011 at 5:54 am #111964In reply to: How Do I Remove Log Out From “My Account” Menu?
chrisreg1
MemberHmm 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.
April 20, 2011 at 8:52 pm #110662In reply to: logout redirect?
Brooker
Memberit 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…April 20, 2011 at 7:46 pm #110657In reply to: logout redirect?
@mercime
ParticipantApril 16, 2011 at 9:48 pm #110427In reply to: [Resolved] Logout Redirect?
Marcos Nobre
ParticipantNevermind figured out, wp-login.php line 380 $redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘index.php?loggedout=true’;
March 28, 2011 at 1:40 am #108887In reply to: Is there a sure fire way of Logging Out
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!
March 28, 2011 at 1:11 am #108881In reply to: Is there a sure fire way of Logging Out
Virtuali
ParticipantI 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=logoutaction, 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=logoutwill 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.
March 10, 2011 at 5:53 pm #107446In reply to: BP-FBConnect Login Button (and Logout, too)
ORyanMcentire
MemberWhat 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>March 6, 2011 at 10:35 pm #107002In reply to: BP-FBConnect Login Button (and Logout, too)
grahamlindsey
MemberApologies – 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>November 26, 2010 at 2:04 am #99211In reply to: Change default page -> My Account page
aomao
ParticipantThat 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 -
AuthorSearch Results