Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 240 total)
  • Profile photo of imath
    imath
    Moderator

    @imath

    Hi @milenushka,

    I see you are also filtering bp_blogs_record_comment_post_types to track comments about the “projects” post type. I’ve changed my mind :) I think we should wait to have this ticket fixed first.

    Since 2.3 your code should work fine.

    Profile photo of imath
    imath
    Moderator

    @imath

    hi @brianbws

    Here are some advices :
    1/ I wouldn’t “mix” a cover photo into the avatar UI, it’s not the same need
    2/ I would create a new profile tab “Change cover photo”
    3/ From there, i’ll use a regular upload/crop experience or build a new UI using Backbone like i’m doing in the next version of this plugin https://github.com/imath/buddydrive/tree/1.3 > follow the buddydrive_editor() function to see how to do this.
    4/ I’ll extend the BP Attachment class > the codex page should help you.

    To extend the avatar UI, you can have a look at the plugin BP Avatar Suggestions 1.3, i’ve updated it to add a new tab to the UI because : it is to set an avatar :)
    This plugin also creates an upload UI and extends the BP Attachment class.

    I think watching the codex page, the 2 plugins, will help you. Bye.

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi @milenushka,

    Using your old code means using the old filters, i guess. If you do so right now, it will not be ok, 2.3 will include a fix to make this works. But you must know these filters will be deprecated, so it might Be a good idea to use the new way of registering activity support for your post types. Could you share the code you were using and i’ll share with you the code that Will mimic your old code using the new way of registering activity support.

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi there,

    There’s a chance your theme hasn’t updated its templates. In order to have the activity dropdowns populated, please check your templates are up to date see https://codex.buddypress.org/themes/activity-dropdown-filters-in-templates/#use-bp_activity_show_filters-within-your-bp-default-child-theme

    Profile photo of imath
    imath
    Moderator

    @imath

    Well, i think they are complicating their task.

    It seems to me that to be sure BuddyPress will do all what it needs to do, you simply need to use :

    do_action( 'bp_core_activated_user', $user_id );

    eg:

    function on_user_registration( $user_id, $userdata, $form_id ) {
           $this->update_user_data( $user_id, $form_id );
           do_action( 'bp_core_activated_user', $user_id );
    }

    Because we hook to this action to :
    – clear the member count cache
    – create the ‘new_member’ activity
    – Sync WP/BP profile if the xProfile component is active

    If that doesn’t fix the issue. A BuddyPress plugin should always launch itself hooking ‘bp_include’ to be sure every active BuddyPress parts are loaded.

    So instead of add_action( 'plugins_loaded', 'wpuf_bp_init' );
    the plugin developer can try add_action( 'bp_include', 'wpuf_bp_init' );

    Profile photo of imath
    imath
    Moderator

    @imath

    @aaronkin

    First ‘text-domain’ or ‘custom-domain’. When you build a plugin, to make it an “international” plugin so that it can be translated in any language, you choose a text domain. See: https://codex.wordpress.org/I18n_for_WordPress_Developers#Text_Domains

    Then Using post type activities. You were actually missing one of the functions i’ve shared in this thread. So here’s a gist that will work for the WP Job Manager plugin, you’ll have to observe, learn some WordPress/BuddyPress developing stuff (such as the Plugin API) by yourself to understand it and be able to apply for any post types.

    Profile photo of imath
    imath
    Moderator

    @imath

    You’re welcome :)

    Profile photo of imath
    imath
    Moderator

    @imath

    Thanks for the ping @mercime, and sorry for this annoying behavior about BP Checkins @akecheta1983. I need to find the time to improve this plugin.

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi @mat2010,

    I’m not sure to completely understand the need. What i’ve understood: it looks like, you want to use bp_nav_menu() to :
    #1- output the displayed user’s menu when a user is displayed as a replacement of bp_get_displayed_user_nav() in the buddypress/members/single/home.php template of your active theme (which corresponds to the use described in this codex page – and means, you’ll need to include in your theme the different templates relative to the user in order to not output the options nav twice.
    #2- output the displayed single group menu when a single group is displayed as a replacement of bp_get_options_nav(), which means, you need to include the buddypress/groups/single/home.php into your theme.

    Is this correct ?

    I have a doubt because in the description of your topic you are hooking ‘bp_group_options_nav’, and it seems to me that this kind of function is theme related and should directly be used inside a template overriding the legacy one.

    If i’m correct about point #2, then you simply need to add a filter on the bp_get_nav_menu_items() function in order to only keep the menu items that are related to the single group’s context. Then you can create the buddypress/groups/single/home.php template into your theme and inside it replace <ul><?php bp_get_options_nav() ;?></ul> by <?php bp_nav_menu() ;?>.

    See this gist for the filter part: https://gist.github.com/imath/980751372693ee0b652d

    Profile photo of imath
    imath
    Moderator

    @imath

    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 ?

    Profile photo of imath
    imath
    Moderator

    @imath

    Removed the gist as it’s not fixing the issue

    Profile photo of imath
    imath
    Moderator

    @imath

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

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi,

    the trouble seems to be that _bp_strip_spans_from_title() is declared by another plugin or a theme or a code in bp-custom.php or in a mu-plugin…

    You should try to find the place were this function is already declared.

    In the meantime you can create a bp-custom.php file at the root of /wp-content/plugins/ and use this gist in it to see if it solves the issue :

    https://gist.github.com/imath/1db3ac2e95c1ce3eb681

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi @svenl77,

    It’s the case, just tested it and the function does what it intends to do : remove the group-avatar && the delete-group manage tabs.

    I don’t manage to reproduce your issue. If i go to groups/GROUP-SLUG/adminthen i’m automatically redirected to groups/GROUP-SLUG/admin/edit-details so no 404.

    My config is :
    fresh install
    WordPress latest trunk
    BuddyPress latest trunk
    twentytwelve

    I don’t think we’ve played in this area since 2.2.1

    FYI : if i add the edit-details to the list of restricted tabs, then the group admin cannot access to any manage page without knowing the url of the allowed tabs. So i’d say the edit-details should always be there.

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi @aglekis

    I can imagine why setting the Members directory page as a Parent of the groups directory page is not working: the built url must Be in this case site.url/members/groups and then BuddyPress is looking for a member having the username “groups” and do not find it :)

    Instead of using the Parent attribute, you can use wp_nav_menus đŸ˜‰

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi Grégoire,

    Thanks for the ping :) To make sure i understand well :
    When the directory page for the group is a child of another page then you get a 404, is that correct ?

    Profile photo of imath
    imath
    Moderator

    @imath

    Very strange.

    Have you tried to deactivate all plugins except BuddyPress to see if that wasn’t a problem with another plugin ?

    Have you tried to activate a WordPress default theme to see if it wasn’t a problem with the active theme ?

    Do you have custom function in bp-custom.php, if so try to remove them temporarly.

    If all of the above is not changing anything to your trouble, if you deactivate BuddyPress is the problem still there (you can actually begin by this step, if you prefer) ?

    Profile photo of imath
    imath
    Moderator

    @imath

    @alice-claire

    I don’t think it’s the same issue as you’re getting the register page even if signups are not allowed. So i advise you to remove the code of the gist if you are using it.

    If i understand well, your issue is when you save the general settings having the “anyone can register” option checked, this option is not saved and you keep having the message “User Registration is Currently Not Allowed” when a user tries to register. Is that correct ?

    Profile photo of imath
    imath
    Moderator

    @imath

    Adding a trailing slash is fixing the issue : http://kompanio.de/register/

    Profile photo of imath
    imath
    Moderator

    @imath

    Thanks a lot @gina yes we need to test this fix on 2.2.0 so you’ll need to backup your database (and wp-content files just in case) and upgrade again. Once done paste the script in a bp-custom.php file you will put in your plugins directory. The test patch will only be run If BuddyPress 2.2 is activated. If it’s fixing the issue with invite anyone you can choose to keep it till 2.2.1 is released or If you are afraid to Forget to remove it by then, revert once again to 2.1.1.

    Profile photo of imath
    imath
    Moderator

    @imath

    @gina

    As i told you we’ve been working on a patch and i would like to have your feedback on what we’re planning to do to be sure it’s the right fix to your problem.

    Simply put the content of this gist https://gist.github.com/imath/07e79c2244c5ab2e0a1b in a file you will name bp-custom.php and that you will put at the root of your plugins directory.

    Thanks a lot for your help.

    Profile photo of imath
    imath
    Moderator

    @imath

    @r-a-y is right, pages will come back as soon as signups are allowed.

    But if you are using a plugin like invite anyone, you might need to set these pages. We’re currently working on a patch and if you are in this case please consider testing/giving your feedback about this script https://gist.github.com/imath/07e79c2244c5ab2e0a1b (simply add it in a bp-custom.php file at the root of your plugins directory)

    Profile photo of imath
    imath
    Moderator

    @imath

    @gatelli

    So the question is ‘How can i edit the action string eg: someone wrote a new event, if the event was posted having a race tag or a training session tag ?’

    is this correct ?

    If so, you’ll need to filter ‘bp_activity_custom_post_type_post_action’, get the secondary item id which is the post type id, fetch the tag for this post type id and override the action string.

    Profile photo of imath
    imath
    Moderator

    @imath

    @rossagrant you’re very welcome :)

    Profile photo of imath
    imath
    Moderator

    @imath

    If you define a contexts argument in the bp_activity post type parameter, it allows you to controle the front dropdown filters where the option will be output : see https://codex.buddypress.org/developer/function-examples/bp_activity_set_action/ for a full explanation.

    If this is still not working, i can see 2 explanations :
    1/ The active theme is a standalone BuddyPress theme or a theme that overrides some templates without being ready for the way of fetching activity filters introduced in BuddyPress 2.1 see : https://codex.buddypress.org/themes/activity-dropdown-filters-in-templates/
    2/ Or the post type is registered within a subsite scope and not registered network widely.

Viewing 25 replies - 1 through 25 (of 240 total)
Skip to toolbar