Helping you Build Your Own Social Network!

Faster, better and easier!

Login bug in bp mag

(7 posts) (3 voices)

Tags:

No tags yet.


  1. Ok so I'm using the default login widget on bp mag. It appears on every page so long as I don't check any boxes under bp mag options > unique widgetized sidebars. It's a great login widget, better than anything that's out there for download.

    However, there's a HUGE conflict because if I check any sidebars in bp mag options > unique widgetized sidebars, bp mag LOGS ME OUT when I go to those checked pages.

    It's not that useful for there to have to be a tradeoff between having different widget configurations and being able to stay logged in. To post in 'activity', for instance, I now have to log in from the activity page, get sent to the admin dashboard for some reason I'm not sure of (did I set that?), and then click on 'activity' in the 'my account' drop down menu at the top of the screen.

    Is it possible to click on the 'activity' button in the site menu beneath the logo and get sent to the activity page without being logged out?

    Posted 1 year ago #
  2. Just an update: I'm getting logged out even if I have not checked any 'unique widgetized sidebars'. I'm simply getting logged out everytime i click on my navigation.

    Posted 1 year ago #
  3. Hi Baba,
    you should not be getting logged out because of theme. The theme has no such functionality. If you are mentining about the "user info/login box" getting disappeared, that was by design. It only appears on site sidebar.

    In case you want it on all the pages, here is how to do it. Put the below code in your child theme's functions.php

    function bp_yourchild_sidebar_login_iuser_info(){
    //if buddypress is active
     if(function_exists("bp_is_active")):
    if ( is_user_logged_in() ) : ?>
    
    		<?php do_action( 'bp_before_sidebar_me' ) ?>
    		<?php bpmag_logged_user_info();?>
    		<?php do_action( 'bp_after_sidebar_me' ) ?>
    
    		<?php if ( function_exists( 'bp_message_get_notices' ) ) : ?>
    			<?php bp_message_get_notices(); /* Site wide notices to all users */ ?>
    		<?php endif; ?>
    
    	<?php else : ?>
    	<?php bpmag_login_form();?>
    <?php endif; ?>
    <?php endif;?>
    
    <?php
    }
    ?>
    //add on all sidebars
    add_action("bpmag_inside_before_sidebar","bp_yourchild_sidebar_login_iuser_info",20);
    
    //remove the default from site sidebar
    add_filter("bpmag_show_default_sidebar_content","bpmag_disable_it");

    That will do the trick. If you are really getting logged out, Please check your plugins. That could be the reason.

    Posted 1 year ago #
  4. @brajesh, can that same thing be done to move the group, member, event, etc. headers to the sidebar if the user is viewing a "non-home" page of the group, member, event, etc.?

    I'm wondering if there is a better way to modify the location of the various components rather than modifying your template files.

    Posted 1 year ago #
  5. Hi Roy,
    yes, That is correct. I have tried to make Bp mag, so that almost everything can be customized from functions.php of child theme rather than relaying on copying template files. I have yet to put the developer documentation(oops announce the release of this theme too :)), and once the dev doc is available, you will be able to do everything and we will keep enhancing the framework based on feedback to allow do more :)

    Posted 1 year ago #
  6. I got it! Wow! That works great!

    Posted 1 year ago #
  7. Thank you for that fix, that's a great help. I tried a different theme and I get the same logout when clicking on activity, members, and groups. It must be a BP issue.

    Posted 1 year ago #

Reply

You must log in to post.