Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 13,251 through 13,275 (of 68,915 total)
  • Author
    Search Results
  • #237692
    danbp
    Participant

    I suppose you know where to upload WordPress and where to upload BuddyPress.

    Download BP and reload to site by FTP. No need to uninstall BP, simply deactivate, upload new copy and reactivate.

    There is no mysql file !

    If you have access to your DB, see what is in bp_activities table.

    Are you on a MS or single WP install ?
    Where is WP installed, as you linked to a sub-domain…

    Is the assigned activity page empty, without any parent page or template ?

    #237683
    Anonymous User
    Inactive

    I’ll look at it soon, but in the meantime is there any reason why you are not using the buddypress-activity support/custom labels when registering the post type. As far as i can remember this code was shared because the post type was registered by another plugin. Is it the case of your “job” post type ?

    #237676
    danbp
    Participant

    hi @norek,

    perhaps you did it wrong… No worry, download directly the patched file and add/replace it into buddypress/bp-core/

    Trac reference is Branche 2.2.2 > bp-core/bp-core-filters.php r9741

    #237675
    Henry Wright
    Moderator

    Hi @antipole

    This is the kind of thing you’ll want to do. The my_redirect() function hooks to template_redirect so bp_core_redirect() executes at exactly the right time you need it to.

    You’d put it in your theme’s functions.php file.

    function my_redirect() {
    
        // Conditions go here.
    
        $location = 'http://example.com';
        bp_core_redirect( $location );
    }
    add_action( 'template_redirect', 'my_redirect' );

    Be careful when setting your conditions to avoid seeing the dreaded ‘redirect loop’ error.

    Also, the Template Tag Reference will help you. For instance, bp_is_register_page() will help you determine if the current page is the register page.

    Hope this info helps.

    #237673
    Paul Wong-Gibbs
    Keymaster

    Bug ticket is https://buddypress.trac.wordpress.org/ticket/6369.

    I am going to close this thread because we have a similar discussion happening over here: https://buddypress.org/support/topic/fatal-error-after-update/#post-237672

    Thank you.

    #237672
    Paul Wong-Gibbs
    Keymaster
    #237662
    andrew55
    Participant

    This works great in member-header.php:

    But when I insert the same code in…

    \buddypress\bp-templates\bp-legacy\buddypress\groups\single\members.php,

    right after…

    <?php bp_group_member_link(); ?>

    …it won’t print the role out when viewing the group member list. Any suggestion on how to accomplish this?

    Thanks for any help.

    #237659

    In reply to: Title

    Hugo Ashmore
    Participant

    Technically you’re on the wrong forum, you have no instance of BuddyPress running only bbPress and they are two different plugins.

    You might try any of the Title tag plugins out there such as Yoast WP SEO also look at how your theme is handling the title tag in the header and search the WP codex for any guides on filtering the WP title tag to modify the title strings.

    #237658
    Anonymous User
    Inactive

    You can try to see if the gist here https://buddypress.org/support/topic/groups-function-not-working/#post-237657 is fixing the issue

    #237655
    danbp
    Participant

    See from here how you can publish on Trac

    Participate and Contribute

    Cannot redeclare _bp_strip_spans_from_title() means generally that 2 functions with the same name are running at the same time.

    This can came from a plugin or a theme.
    For example BP is using bp_strip_spans_from_title, but if your theme use the same function, this provides a colision and you got a php fatal error.

    Activate 2015 and see if the issue still occurs.

    Meanwhile, I just updated all my BP installs (with different themes) without any errors.

    #237654

    In reply to: Title

    danbp
    Participant

    Hi,

    Usually, site name is defined during WP install and can be changed from within WP settings.

    dashboard > general > site name

    If it’s already done, see if your theme has a specific setting for such and change accordingly from there.

    Please read also:
    https://buddypress.org/support/topic/when-asking-for-support-2/

    #237645
    danbp
    Participant

    hi @julia_b,

    you can try to apply patch 8. See here:
    https://buddypress.trac.wordpress.org/ticket/6107

    Will probably be solved in BP 2.2.2

    #237644
    danbp
    Participant

    Hi @fpvtv, @norek,

    it’s actually an obvious issue which maybe solved in next update.
    For now you could try to apply patch #8.
    See ticket here:
    https://buddypress.trac.wordpress.org/ticket/6107

    #237640
    Martin
    Participant

    I have same problem, when I go to ” members ” or ” groups ” page I see
    Fatal error: Cannot redeclare _bp_strip_spans_from_title() (previously declared in /xx/wp-content/plugins/buddypress/bp-core/bp-core-filters.php:552) in /xxx/fpv.tv/public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 552

    Also register page is blank. When i back to 2.2.1 everything is ok.

    Best regards

    #237633
    sophiats
    Participant

    Hey, this

    “I took made a buddypress template, just a copy of the page.php template, and changed the voyager loop out for a simplified loop”

    is actually taken from the theme support from someone who fixed this issue but without further explanation, this is why I asked here, see if I have any chances. 🙂

    #237624
    aaronkine
    Participant

    @imath thanks for the above code which “adds the post type title into the link in replacement”

    But i need to change one small thing in that code but i dont know how.

    Here is my code in bp-custom.php —

    add_post_type_support( 'job_listing', 'buddypress-activity' );
    function customize_page_tracking_args_job() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
     
        bp_activity_set_post_type_tracking_args( 'job_listing', array(
    			'component_id' => 'activity',
            'action_id'                => 'new_job_listing',
            'bp_activity_admin_filter' => __( 'Published a new Job', 'text-domain' ),
            'bp_activity_front_filter' => __( 'Job', 'text-domain' ),
            'contexts'                 => array( 'activity', 'member' ),
            'activity_comment'         => true,
            'bp_activity_new_post'     => __( '%1$s posted a new Job: <a href="%2$s">Job</a>', 'text-domain' ),
            'bp_activity_new_post_ms'  => __( '%1$s posted a new Job: <a href="%2$s">Job</a>, on the site %3$s', 'text-domain' ),
            'position'                 => 100,
        ) );
    }
    add_action( 'init', 'customize_page_tracking_args_job', 999 );
    

    Here is the result…
    PathPoint-SSB posted a new Job: Job 5 hours, 53 minutes ago

    Here is what it looks like after I use your code to insert the Title of the Job
    pathpoint posted a new Receptionist/Administrative Assistant 5 hours, 49 minutes ago

    As you can see, it changes the Users name and also I cant change this part “posted a new”. I would like it to read “posted a new Job: ”

    Any ideas?

    Thanks for any insight on this,
    Aaron

    #237621
    rosyteddy
    Participant
    #237620
    rosyteddy
    Participant
    #237613
    Henry Wright
    Moderator

    Yes, sorry I didn’t see your latest post.

    Great to see you got it working! 😀

    #237607
    ch1n3s3b0y
    Participant

    Ok, I have this working! For anyone else struggling with this, these are the steps I took:

    1. I created a custom registration form ( I needed more than one form for my setup) using the tutorial from Brajesh Singh http://buddydev.com/buddypress/show-buddypress-user-registration-form-everywhere-buddypress-site/

    2. I added a hidden input field to my form:

    <input type="hidden" name="user_type" id="user_type" value="your_role" />

    3. I added a user_meta during the registration to store the role for later use during the activation process:

    function store_user_role($user_id) {
        $user_type = $_POST['user_type'];
        $user_role = $user_type;
        switch($user_role) {
            case "your_role":
                add_user_meta( $user_id, '_member_role', 'yourrole');
                break;
            case "my_role":
                add_user_meta( $user_id, '_member_role', 'myrole');
                break;
    	default:
                add_user_meta( $user_id, '_member_role', 'defaultrole');
        }
    }
    add_action( 'bp_core_signup_user', 'store_user_role', 20, 1);

    4. Then during the activation process you check to see which user role is stored in the user_meta, and assign that as the actual WP user role:

    add_action('bp_core_activated_user', 'bp_custom_registration_role',10 , 3);
    function bp_custom_registration_role($user_id, $key, $user) {
       $userdata = array();
       $userdata['ID'] = $user_id;
       $key = '_member_role';
       $single = 'true';
       $userRole = get_user_meta( $user_id, $key, $single );
       
       if ($userRole == 'yourrole') 
          $userdata['role'] = 'yourrole';
       
       if ($userRole == 'myrole') 
          $userdata['role'] = 'myrole';
    
       if (($userdata['role'] == "yourrole") or ($userdata['role'] == "myrole"))
          wp_update_user($userdata);
       
      }

    That’s it. I used a few different examples from these support forums so credit goes out to those who got this stuff working in the first place. Hope this helps someone else.

    #237598
    danbp
    Participant

    Many topics about this where already answered on the forum.

    https://buddypress.org/support/search/Registration+redirects+to+home+page/

    Mac
    Participant

    @jordanerollin There is a group e-mail plugin called “BuddyPress Group Email”. I have never used it therefore have no working knowledge of it.

    I can see from the website there is a tab it says “Send Mail”, but you could possibly change that via a language file edit if you wanted it to say “Messages.”

    From the quick read it says:

    Allow group admins and moderators to send emails

    BuddyPress Group Email

    The plugin itself has been around for a good while. I found it in a post from 5 years ago, so maybe somebody with some knowledge of the plugin could better advise.

    https://buddypress.org/support/topic/groups-send-internal-message-to-all-group-members/

    Note: It is not free.

    danbp
    Participant

    Welcome on BuddyPress !
    You’re on the wrong forum.
    bbPress has it own support forum.

    danbp
    Participant

    Why would you uninstall BP and reinstall it, you even don’t know where the issue came from ?

    Take a breath and stay calm. 😉

    Activate Twenty Fifteen theme.
    Deactivate all plugins except BP.

    check for anything is correct. If it is, you can reactivate your plugins one by one, checking after each for an issue, untill you find eventually a culprit.

    If all is correct, the only thing who may bring an issue at this stage is your theme.

    Activate it and see the result. If you get the same issue, you should contact the theme support.

    We cannot help you for this, as it is a premium theme and we have no free access to it’s code.

    Please read also here, where some basics are explained.
    https://codex.wordpress.org/Debugging_in_WordPress

    #237580
    danbp
    Participant

    hi @mrgiblets,

    what about a show/hide toggle comment button ?
    https://buddypress.org/support/topic/how-to-show-comments-only-when-i-click-on-comment-button/

    Or disabling comments selectively ?
    https://buddypress.org/support/topic/blog-forum-comments/

    See this filter bp_activity_can_comment in:
    bp-activity-template.php
    bp-blogs-activity.php

Viewing 25 results - 13,251 through 13,275 (of 68,915 total)
Skip to toolbar