Search Results for 'logout redirect'
-
AuthorSearch Results
-
November 3, 2011 at 11:11 am #123670
spigot_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 problemNovember 17, 2010 at 7:17 am #98475In reply to: login-redirect – BP Profile as Homepage ( broken? )
nit3watch
Participant@shawnyuan ** when user log into your website, user is redirected to his/her profile. ** when user tries to move to homepage, user is redirected to his/her profile. **
Here’s the BP Profile as Homepage plug-in:
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');
October 28, 2010 at 12:53 pm #96796In reply to: sub domain problem
emailaya
Memberone problem down, 2 new ones:
now blog.emailaya.com works!
BUT http://www.emailaya.com/blog doesnt!
it brings me to a page saying: Page Not Found – The page you were looking for was not found.2nd: if i logout the user that is currently logged in im redirected to my homepage! instead of the blog’s homepage “/blog/”
doubled URL problem was solved through the wp->settings->permalinks
October 13, 2010 at 2:13 am #95012In reply to: BuddyPress Mobile Theme
Sofian J. Anom
ParticipantNow the activity as the home page is working, and the logout button is also displayed after login. Another problem is the blog page/tab can not display the list of blog posts. He even displays a list of blogs because I named the page/tab “Blog”. Login form on the front page also does not work: every time I login always redirected to the wp-login.
September 14, 2010 at 2:59 pm #92409In reply to: custom logout redirect
September 2, 2010 at 6:07 am #91287In reply to: Error on logout
@mercime
ParticipantUsual suspects or redirection issue, see – https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
August 27, 2010 at 3:26 pm #90574In reply to: Changing target of ‘register’ link on login page
footybible
ParticipantThanks @rogercoathup I’m not sure line 368 is the right place though (its currently blank in my login). Here is what my file looks like from line 353 onwards:
// allow plugins to override the default actions, and to add extra actions if they want
do_action(‘login_form_’ . $action);$http_post = (‘POST’ == $_SERVER);
switch ($action) {case ‘logout’ :
check_admin_referer(‘log-out’);
wp_logout();$redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘wp-login.php?loggedout=true’;
wp_safe_redirect( $redirect_to );
exit();break;
case ‘lostpassword’ :
case ‘retrievepassword’ :
if ( $http_post ) {
$errors = retrieve_password();
if ( !is_wp_error($errors) ) {
$redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘wp-login.php?checkemail=confirm’;
wp_safe_redirect( $redirect_to );
exit();
}
}July 21, 2010 at 10:29 am #86445In reply to: How to customize Login and Logout pages ?
sicksight
ParticipantYou could use this snippet in your functions.php to redirect the user to the homepage: http://pastebin.com/VPfgZZTu
You could cutomize the code to your wishes!July 21, 2010 at 12:43 am #86405In reply to: How to customize Login and Logout pages ?
abcde666
Participantmany thanks for your feedback guys !
Does anyone have an idea of how to do a re-direct ? No clue about that and where to redirect at all ?
Please help….
June 26, 2010 at 1:19 am #82896In reply to: essential core features
peterverkooijen
ParticipantI agree…
There are login redirect plugins (bpdev-logout-redirect + bp-redirect-to-profile). I’ve integrated them into my theme. User/member management is fatally underdeveloped.
May 17, 2010 at 11:02 am #78485In reply to: BP-FBConnect not working with buddypress 1.2.3
kagliostro
MemberInstead for me it’s the only one that works very very well (and I have tried wp-fb-autocnnect, Gygia, simple fb connect, Facebook Connect to Adam Hupp, Faux Facebook Connect -only for comment- and others)!
The only ones that work (for me) are Gygia (but only if you have a normal WordPress installation) and BP-Facebook connect (there is a very little problem with logout redirect). And more, Bp-Facebook gets also the (facebook) email of user.
I don’t love its method to work, but it works.I have Buddypress 1.2.3 and WordPress 3.0 beta 1 (network installation with subdirectory).
The very great problem that I have with Bp-Facebook (at the moment) is the incompatibility with WordPress MU Domain Mapping: if my secondary blog mantains subdirectory url, BP-facebook works (too well).
But if I change a subdirectory url with a primary url (example.com/secondaryblog to secondaryblog.com) it goes crazy.
And this is a problem!I hope Peatling update his plugin!
April 6, 2010 at 7:34 pm #72062In reply to: Custom Login Page in BuddyPress
Brajesh Singh
ParticipantIt will redirect back to home page if you are logged in as a logged in member should not be able to access that page.
Try to logout and then visit that page.
April 4, 2010 at 4:51 am #71657In reply to: Redirecting to profile page after login
peterverkooijen
Participantadd_filter("login_redirect","bpdev_redirect_to_profile",10,3);
function bpdev_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user)
{
if(empty($redirect_to_calculated))
$redirect_to_calculated=admin_url();
/*if the user is not site admin,redirect to his/her profile*/
if(!is_site_admin($user->user_login))
return bp_core_get_user_domain($user->ID );
else
return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/
}I put it in bp-custom.php. Probably also works in functions.php.
He also has this essential logout redirect to homepage plugin. Both should have been default wp/bp behavior imho.
February 22, 2010 at 9:29 pm #64900dwdutch
ParticipantThanks, David. I’ll pursue these options then let you know what happens.
As for login, Id like to use the “Login with Ajax” widget because it has a “Forgot password” option and it allows for redirects to custom URL on login and/or logout. I’d like to stay away from the WP screen, if possible.
In fact, that’s yet another challenge: how to give them access to create Posts without seeing the WP-admin screens — especially since I want any profile changes to be done via BP (so they’ll see their xprofile fields) rather than the more simplistic WP fields. alas… for now, i need to get some of them started and I’ll have to save that battle for another day.
This blog is for a private group of about 20 people.
-
AuthorSearch Results