Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ok, the solution is very very simple: in wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php you have to change this “wp_logout_url( bp_get_root_domain() )” in “wp_logout_url()”

    For me working very well!
    Bye

    I found (simple) solution: the error is in the SIDEBAR BUTTON LOGOUT, not in BP-Facebook connect plugin.
    You have to change logout link in the sidebar.php (wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php) and eliminate this part “&redirect_to=http%3A%2F%2Fexample.com&_wpnonce=defgsbc7a3b”.
    So It’s very simple to correct bug.
    In the orginal sidebar.php there is :

    <div id="sidebar-me">
    			<a href="<?php echo bp_loggedin_user_domain() ?>">
    				<?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ) ?>
    			</a>
    
    			<h4><?php bp_loggedinuser_link() ?></h4>
    			<a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
    
    			<?php do_action( 'bp_sidebar_me' ) ?>
    		</div>

    So you have to change href value of

    <a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>.

    Unluckily I have not found a working general hook to generate automatically logout (working) link, but some time ago I have seen that this is a common error in WordPress.
    In the worst case you can put directly in the href the logout link taken from dashboard (it works and it doesn’t contain redirect option).

    I have the same problem!

    I have seen that logout link in backend works (https://example.com/wp-login.php?action=logout&_wpnonce=defgsbc7a3b) while this on BP-connect in homepage doesn’t (https://example.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fexample.com&_wpnonce=defgsbc7a3b).
    So the problem is “redirect_to…”: but how to eliminate it?

    How to change logout link of BP-connect? I have tried to modify some files in BP-connect plugin but without success.

    Thanks for help!

    Thank you very much Elizabeth!!!

    I’m looking at wpomatic code and I believe that I will be able to solve my category problem with a very little “trick”: I will change association category/campaign with association category/feed.
    Luckily Devthought keeps category data separate from campaign data in database so this change would be very simple.

    But… only after I will see your code ;)))

    Again.. Thank you very much for your help!!
    Francesco

    Thanks Elizabeth!!!
    But is it possible to use your WP-O-Matic modded? I’m really interested.

    1) a great opportunity could be possibility to set category for every single feed inside a single campaign.
    2) and add tags (or more simple, get category/subcategory and use this to add tag of post).

    But… do you use WPMU? Great!!!

Viewing 5 replies - 1 through 5 (of 5 total)