Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 9,301 through 9,325 (of 69,127 total)
  • Author
    Search Results
  • #258940
    danbp
    Participant

    Please, don’t double post ! You have already asked the same question here:

    How to show bp resume view page on home page of buddypress

    Closing this topic as duplicate.

    #258929
    Stormn
    Participant

    I am having the same issue. I need members to be able to sign up themselves with a confirmation email rather than me having to approve them manually. This problem also affects my ability to set up a commerce page. I am using BP 2.6.2 with the WP Spirit 01 Theme. I am not using any other Buddy Press plugins other than just BuddyPress.

    #258916

    In reply to: Group Management Panel

    giaschel
    Participant

    Hi, thank you very much for your reply!

    Both links bring me to an error page that says I’m not authorized (although I’m super-admin). I can’t see any buddypress tab in my Dashboard, apart from Forums, Topics and Replies.

    Hoping you can still help.

    Thanks again.

    #258908

    In reply to: User dashboard url

    MissMad
    Participant

    Hi all!

    Thanks for your answers. Actually, he /members/me/profile/dashboard works (I do have a dashboard that’s not the WordPress one but rather one I can edit with some of the info from Buddypress).

    Great help!

    #258905
    karmatiger
    Participant

    dan that was extremely helpful 🙂 I’m so close now…

    I’m using

    function text_pre_timestamp() {
      $link = '';
      if ( bp_activity_user_can_delete() ) {
    	  $url   = bp_get_activity_delete_url();
    	  $link = '<a href="' . $url . '" class="activity-list delete">' . __( 'Delete', 'buddypress' ) . '</a>';
    	  $test = 'sample text ';
      }
      
      $var = ' %s ago ';// %s = timestamp
      if (!$link == '') $var = $var . '| ' . $test . $link; 
      return $var;
    
    }
    add_filter( 'bp_core_time_since_ago_text', 'text_pre_timestamp' );

    and it works! Well… for some reason it’s putting the Delete link on a separate line, and I can’t figure out why. As you can see I’ve included test text, which it includes on the same line as the timestamp. If I put $link before the timestamp it displays inline; but if I put it after the timestamp it puts the href one line down. Is this a Buddypress thing?

    The CSS used:

    .activity-list .delete {
      display: inline; 
      font-size:10px; 
      padding: 0; 
      margin: 0;
    }

    You can see by the display: inline I’m attempting to get the href to be on the same line as the rest of the text. have you any thoughts as to why it’s inserting a line break?

    danbp
    Participant

    @fearthemoose, @rezbiz,

    Here “the best guarded secret” finally revealed !
    But it’s not a secret, is part of Codex and a multi handled topic subject on this forum.

    What we want to do: remove access possibility.
    Where: on BuddyBar navigation menu (the one below the profile header).
    Specifics: make the activity and forum tabs only visible to the logged in user.

    NOTE: The activity tab is shown by default when you visit a profile.

    As we are going to hide/remove this tab to visitors, we need to define as first another default tab. If we won’t do that, the visitor will get a Page not found error. Which is not exactly the case here, the page exist but the visitor can’t access it.

    Let’s define arbitrary Profile as the new default tab. You can of course define what ever other existing tab on your BuddyBar as default.

    Add this line to bp-custom.php
    define( 'BP_DEFAULT_COMPONENT','profile' );

    Now the mega “open secret” !

    The folowing snippet contains almost any BP menu items you can have on a BuddyBar, and includes also the Forum item, in case you use bbPress.
    You can remove or comment out those you don’t want to use.
    Note also that it is only an example – you have to play with it to fit your need. But at least you have the right syntax to use.
    Note also that some profile menu items are user only, such as message or notice. In other words, these are always private.

    This function goes preferably to bp-custom.php

    function bpfr_hide_tabs() {
    global $bp;
    	 /**
    	 * class_exists() & bp_is_active are recommanded to avoid problems during updates 
    	 * or when Component is deactivated
    	 */
    
    	if( class_exists( 'bbPress' ) || bp_is_active ( 'groups' ) ) :
            
            /** here we fix the conditions. 
            * Are we on a profile page ? | is user site admin ? | is user logged in ?
            */
    	if ( bp_is_user() && !is_super_admin() && !is_user_logged_in() ) {
    
            /* and here we remove our stuff ! */
    		bp_core_remove_nav_item( 'activity' );
    		bp_core_remove_nav_item( 'friends' );
    		bp_core_remove_nav_item( 'groups' );
    		bp_core_remove_nav_item( 'forums' );
    	}
    	endif;
    }
    add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );

    Some other hints for privacy
    if you want to allow only the profile owner to view some tabs, replace
    !is_user_logged_in by !bp_is_my_profile() – this scenario doesn’t need a check for logged in users as it is made by bp_is_my_profile.

    If you want only to make a profile private, read here.

    If you want to remove a sub-nav item (ie. View on Profile), you use something like:
    bp_core_remove_subnav_item( 'profile', 'view' );

    Many other possibilities for navigation are also available, including for groups. Several examples are given on Codex, here.

    And if not enough, RTFM and search the forum ! 🙂

    Have fun !

    #258897
    danbp
    Participant

    They are filters for timestamp.
    To get some text before the ago part, try this:

    function text_pre_timestamp() {
    
    $var = 'custom text %s'; // %s = timestamp
       return $var;
    
    }
    add_filter( 'bp_core_time_since_ago_text', 'text_pre_timestamp' );

    Code references

    #258895
    danbp
    Participant

    What i want is to show view page content in the landing page of buddypress which is home.php . Is there any way i can achieve that?

    bp-templates/bp-legacy/buddypress/members/single/home.php contains dynamic templates and shows by default the member activity template.

    If you use the above code, you’ll get Resume as default content. This is the simpliest way to achieve what you want.

    FYI: the Resume plugin is 4 years old and no more maintained. In 4 years, many things changed in xprofile component and what you actually can do with these fields is much more evoluted than 4 years ago. IMO, you wouldn’t even have to use it, as you can get a similar result directly with BuddyPress.

    #258893
    danbp
    Participant
    #258881
    SunshineMagic
    Participant

    I have this issue too. I can’t believe that no one has responded to you in 4 months!??

    It’s clearly a buddypress issue too as it doesn’t work with the theme I am using nor does it work with the default wordpress theme and apparently while it used to work with your theme, after a reinstall, not anymore.

    So it’s definitely a buddypress issue but no one responds in 4 months?? How on earth are we to get what we need working if the response time is more then 4 months??

    Feeling concerned that buddypress was the wrong choice. This is my first issue and it’s a bad first experience! Unfortunately I put 2 months into building this site and I can’t go back now so it looks like I’m going to have broken pieces and likely have to dump buddypress and maybe even wordpress all together and build a custom PHP site asap, unless someone gets back to yoUs soon.

    I hope they do cause I’ve been having fun w/ WP and BP but functionality clearly comes before fun…

    #258879
    shanebp
    Moderator

    These forums are for BuddyPress.
    Please contact me via the PhiloPress website.

    #258870
    danbp
    Participant

    Hi @kyla123,

    if you use BuddyPress Login widget, you have a “Remember me” checkbox by default.

    If you added an extra page just to let members log in (?), read this WP documentation and check your customization.

    #258866
    danbp
    Participant

    Hi,

    not sure i understand correctly, but if you want the resume page to show as default landing tab (in place of the user activity) when you are on a profile, you can use this:

    define( 'BP_DEFAULT_COMPONENT', 'resume' );

    Add it to bp-custom.php

    Codex reference.

    #258854
    Julia_B
    Participant

    Is there way to @mention all members?

    This is something I’d like to be able to do on the bbpress forum on my buddypress site. I find forum mentions draw more site engagement than emailing all members, but filling a post with all members’ @ names detracts from the post content. So is there a function like @all or @everyone?

    Thanks 🙂

    themichaelglenn
    Participant

    I’ve built a BuddyPress specific menu (using the BuddyPress Logged In links).

    In which file, and what location, do I add the code @socialc provided?

    #258846
    ckchaudhary
    Participant

    The filter you are looking for is bp_get_activity_action. So you’ll need to do something like:

    function SN_member_header( $action ) {	
        return $action . "success!";
    }
    
    add_filter( 'bp_get_activity_action', 'SN_member_header');

    For a better understanding, you can check the code in function bp_get_activity_action in plugins/buddypress/bp-activity/bp-activity-template.php

    #258842
    knowitallninja
    Participant

    Sorry for all the updates, I have found the problem. In bp-settings-actions.php there is a line in the default handling of a password change that says this: $_POST[’email’] = $update_user->user_email;

    By commenting that line out, it fixes the problem and my code works. It’s not ideal though as whenever I update buddypress it’ll change back. So if anyone knows a way around that then that would be great.

    Otherwise I have a working script. For future reference it’s here:

    function action_bp_core_general_settings_after_save() {
    $useremail = $_POST[’email’];
    $userpassword = $_POST[‘pwd’];
    $current_user = wp_get_current_user();

    if(wp_check_password( $userpassword, $current_user->user_pass, $current_user->ID)) {
    if ( $current_user->user_email != $useremail ) {
    delete_user_meta( $current_user->ID, ‘pending_email_change’ );
    $userdata = array(
    ‘ID’ => $current_user->ID,
    ‘user_login’ => $current_user->user_login,
    ‘user_email’ => $useremail
    );
    $result = wp_insert_user( $userdata );
    }
    }
    };
    add_action( ‘bp_core_general_settings_after_save’,’action_bp_core_general_settings_after_save’ );

    #258828

    In reply to: Activate Page

    Venutius
    Moderator

    That’s strange, and you went to settings/buddypress/pages and set the activate page to be the activate page in buddypress?

    #258826

    In reply to: Activate Page

    Venutius
    Moderator

    Ah ok, its the same as for the register page, you create a blank page and link it in the Buddypress page settings.

    #258822

    In reply to: Order posts

    ckchaudhary
    Participant

    Hi,
    BuddyPress has little to do with posts’ order. I can bet its something else. You need to provide more details..

    #258821

    In reply to: Order posts

    Venutius
    Moderator

    I think you need to provide more information about this error, Buddypress does not normally work with posts so I would like to know why you think this is BP? If you unload all other plugins does the issue still appear?

    #258816

    In reply to: Activate Page

    Brajesh Singh
    Participant

    Have you associated the newly created activate page in your BuddyPress settings? You can do it from Dashboard->Settings->BuddyPress->Pages screen.

    If you have already done that then please do post the error message that you are recieving.

    #258810
    danbp
    Participant

    Hi,

    the warnings cames probably because the logout function is called twice.
    Check your theme’s functions.php or see for a specific setting.

    Can you test the standard behave with a Twenty theme and BP, and all other plugins deactivated.
    Remove also the custom code while testing.

    If still an issue, consider this plugin. All is in the title, but it redirects to homepage on logout.

    #258802
    Venutius
    Moderator

    This one should be the answer:

    https://buddypress.org/support/topic/error-404-page-not-found-3/

    However it did not work for me, I’ve raised a thread about it here:

    https://buddypress.org/support/topic/redirect-on-logout/

    It may work for you, since it worked for the other chap

    #258799
    Venutius
    Moderator
Viewing 25 results - 9,301 through 9,325 (of 69,127 total)
Skip to toolbar