Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

    @imath

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi,

    could you share a gist with the code you’re using to add the activity to the group ?

    Profile photo of imath
    imath
    Moderator

    @imath

    Hi,

    if the message “That photo is too big” appeared on avatar upload and not on cover image upload for the same image, i guess it’s possible a plugin/script/function or something i can’t have an idea of at the moment is either:
    – using define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', x );
    – using `add_filter( ‘bp_core_avatar_original_max_filesize’, function( $size ) {
    return x;
    } );`
    – using `add_filter( ‘bp_attachments_get_max_upload_file_size’, function( $size, $type ) {
    if ( ‘avatar’ === $type ) {
    $size = x;
    }
    return $size;
    } );`

    where x is an int for the max filesize.

    Profile photo of imath
    imath
    Moderator

    @imath

    @danielmariveles

    Just tested on a fresh install (regular config & multisite one).

    When a user registers from the front-end registration form on both configs, i can’t manage to reproduce your issue.

    first_name/last_name user meta are created
    display_name field in table wp_users is created
    value for the xProfile Name field is created in wp_bp_xprofile_data table

    Title of the page is looking like this FirstName LastName - Site Name for profile’s page.

    So everything works fine for me.

    Are you sure it’s happening when a user registers ?
    Have you tried without any other plugin activated than BuddyPress ?

    Profile photo of imath
    imath
    Moderator

    @imath

    @aldin_abdagic thanks for your enthousiasm about the suggestion plugin :)

    Profile photo of imath
    imath
    Moderator

    @imath

    @djpaul i’m not sure it’s linked to xprofile sync it could be something going wrong during the signup process. I will check 4.4.1 changelog and run some tests this week end. Is it a multisite config or a regular one ?

    Profile photo of imath
    imath
    Moderator

    @imath

    yw @sm60 :)

    Profile photo of imath
    imath
    Moderator

    @imath

    Thanks a lot for your feedbacks @joost-abrahams & @jpospina :)

    Profile photo of imath
    imath
    Moderator

    @imath

    Thanks for your feedback

    For the shortcuts, you can try this plugin: https://github.com/imath/modal-buddy

    I’ll keep in mind the 2 other points.

    Profile photo of imath
    imath
    Moderator

    @imath

    You can do it without the cover image settings.

    if ( ! $cover_image_url ) {
        $cover_image_url = 'http://mysite/link-to-default-coverimage.jpg';
    }
    Profile photo of imath
    imath
    Moderator

    @imath

    Profile photo of imath
    imath
    Moderator

    @imath

    yw @venutius

    if you’re overridding templates, i advise you to update them according to the changes we introduced in 2.4.

    Profile photo of imath
    imath
    Moderator

    @imath

    FYI there’s a codex page you can read in case of problem. By default, the Cover Images feature is adding an inline style to bp-legacy-css, you can see it in the head tag of your pages:

    inline style

    I’ve just tested with a child theme, your problem should only happen if you are overriding buddypress.css within your child theme. In this case you’ll need some extra work as explained here:
    https://codex.buddypress.org/themes/buddypress-cover-images/#about-buddypress-css-overrides

    Profile photo of imath
    imath
    Moderator

    @imath

    Are you using pretty links ?

    I advise you to check > WordPress Administration > Settings > Permalinks and make sure to use something else than default.

    Profile photo of imath
    imath
    Moderator

    @imath

    Thanks for your feedbacks @henrywright & @freakyy85 :)

    Profile photo of imath
    imath
    Moderator

    @imath

    @utahman1971

    I’m really sorry to read this thread. I think we’ve done our best to prevent this kind of situation by including some easy ways to deactivate the cover images if the theme you are using haven’t upgraded to support it.

    On september 3Oth, more than a month ago, we’ve posted on our blog to explain to everyone how the Cover Images could impact themes, see https://bpdevel.wordpress.com/2015/09/30/buddypress-2-4-0-will-introduce-cover-images-for-members-groups/

    At the end of this post i’ve insisted on this point :

    If you are a theme designer or the author of a plugin managing Cover images, we recommend that you don’t forget to test that everything works fine for you during the 2.4.0 beta period.

    Then, a month ago, we’ve added a codex page to explain to everyone how to implement cover images for specific themes : https://codex.buddypress.org/themes/buddypress-cover-images/

    Then we published a beta and a release candidate to let people test it, to make sure everything was working fine.

    I understand your frustration, but be sure we’re always trying to do our best. BuddyPress is free, open source and is maintained by volunteers like @r-a-y and me. We’ve been testing as much themes as we could, unfortunately your particular theme wasn’t available for us. I’m convinced the TagDiv team will soon implement the cover images feature into their themes, and if they have any question, i’ll be happy to help them.

    Best wishes.

    Profile photo of imath
    imath
    Moderator

    @imath

    Thanks a lot @r-a-y @hnla & @mercime :)

    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.

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