Skip to:
Content
Pages
Categories
Search
Top
Bottom

  • About
  • News
  • Codex
  • Develop
  • Make
  • Forums
  • Download

BuddyPress.org


  • All Members
  • RSS
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 10 years, 5 months ago

    Thanks for sharing @jimme595. bp_core_get_userlink is useful to know!

  • Profile picture of Tickera

    Tickera's profile was updated 10 years, 5 months ago

    Tickera

    @webtickera

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 10 years, 5 months ago

    Not that I’m aware of. As far as I know you have to filter each type of action individually. The best way to do that is to go through your activity stream and list all of the different types of action. I doubt there will be many, perhaps ~10. Then search the codebase for the static portion of the string to find the right hook.

    Anyone else here…[Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 10 years, 5 months ago

    Right, I see! Sorry about that.

    The X created the group X text (and link around the first X) can be changed via the groups_activity_created_group_action filter.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 10 years, 5 months ago

    You’ll need to use a different filter hook to change the user profile links. The bp_core_default_avatar_user filter is just for changing the image src attribute.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Suddenly Unable to Upload Avatars or Cover Images in the forum How-to & Troubleshooting 10 years, 5 months ago

    I am new to using W3 Total Cache. Are there any guides out there to setting that up for BuddyPress?

    Not that I know of. Is there anything in the W3 Total Cache documentation?

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Set Users and Profiles to Private in the forum How-to & Troubleshooting 10 years, 5 months ago

    @imath just built a plugin which looks pretty great. Try BP Restricted Community.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 10 years, 5 months ago

    You’re not quite using the bp_core_default_avatar_user filter properly. The function you hook to it can take 2 parameters, the 2nd of which is $params.

    function _bp_core_get_user_domain( $avatar_default, $params ) {
    // You get the user ID here with $params['item_id']
    }
    add_filter( 'bp_core_default_avatar_user', '_bp_core_get_user_domain', 10,…

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Suddenly Unable to Upload Avatars or Cover Images in the forum How-to & Troubleshooting 10 years, 5 months ago

    The key to finding a solution to this is investigate what has changed. If it was once working, then what has been introduced since then? Or, what have you deactivated since then etc.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 10 years, 5 months ago

    If I deleted notifications, would people lose the ability to accept friend requests?

    If you deleted friend request notifications, members would still be able to accept those friendship requests, they’d just have to go to their friend requests page and click accept or reject as usual.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 10 years, 5 months ago

    Is there a table in the DB that deals specifically with notifications?

    Yes. That’d be bp_notifications

    If so, I guess I could just empty it before I emptied the stream and stream meta tables.

    Shout up if anyone thinks that could be a problem.

    Instead of deleting directly from the database, you should use these…[Read more]

  • Profile picture of Manas Mitra

    Manas Mitra's profile was updated 10 years, 5 months ago

    Manas Mitra

    @manas666

    View Profile
  • Profile picture of George Notaras

    George Notaras replied to the topic How to get the value of a profile field of specific profile field group? in the forum How-to & Troubleshooting 10 years, 5 months ago

    @sbrajesh

    Hi Brajesh,

    Thank you very much for the insight. Your reply clarifies a lot of things for me. Really enlightening.

    I was planning to make my plugin able to understand the following field notation:


    some field name @ some field group

    for easier/friendlier association of xprofile fields to profile properties, for which the plugin…[Read more]

  • Profile picture of Brajesh Singh

    Brajesh Singh replied to the topic Private Pages Glitch? in the forum How-to & Troubleshooting 10 years, 5 months ago

    This may be considered as bug in current behavior. Currently, BuddyPress only looks for published pages when looking for component associated pages in bp_core_get_directory_pages().

    You may want to report it on the BuddyPress trac and the core developers and weigh their opinions on this.

  • Profile picture of Brajesh Singh

    Brajesh Singh replied to the topic How to get the value of a profile field of specific profile field group? in the forum How-to & Troubleshooting 10 years, 5 months ago

    Hi George,
    No, There is no API function to fetch field group id from field group name and you will need to write your own sql query for the purpose.

    Also, In your example you have passed the profile_group_id to the bp_get_profile_field_data. Please note, it does not take that as a valid argument. It only accepts user_id and field. group id is not…[Read more]

  • Profile picture of George Notaras

    George Notaras started the topic How to get the value of a profile field of specific profile field group? in the forum How-to & Troubleshooting 10 years, 5 months ago

    Hi,

    I’m trying to figure out what is the most efficient way to get the value of a ‘profile field’ that belongs to a specific ‘profile field group’.

    Knowing the ‘field name’ and the ‘profile group name’ I’m thinking of the following:


    $field_value = bp_get_profile_field_data( array(
    'field' => $field_name,
    'user_id' => $user_id,…
    [Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Changing avatar images and profile links in the forum How-to & Troubleshooting 10 years, 5 months ago

    bp_core_default_avatar_user will fire only if you have disabled Gravatar via the bp_core_fetch_avatar_no_grav hook.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Having a spring clean – most efficient way to clean up the activity stream? in the forum How-to & Troubleshooting 10 years, 5 months ago

    So is the general consensus that you never purge the stream?

    Personally I wouldn’t, because members might ask where their old status updates have gone if they ever decide to look back over them. But that’s just my opinion rather than a consensus. Whether it’s a good idea will depend on many things:

    Are old items out of date (contain lots of…[Read more]

  • Profile picture of alexda mon205

    alexda mon205's profile was updated 10 years, 5 months ago

    alexda mon205

    @alexdamon205

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Dynamically Display HTML depending on User in the forum Creating & Extending 10 years, 5 months ago

    Yes, that sounds right. Getting the user ID is slightly different in BuddyPress depending on the context. See the Playing with the user’s ID in different contexts article for details.

  • Load More

WordPress.org bbPress.org BuddyPress.org Matt Blog RSS

GPL Contact Us Privacy Terms of Service X

Skip to toolbar
    • WordPress.org
      • About WordPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • bbPress.org
      • About bbPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • BuddyPress.org
      • About BuddyPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
  • Log in
  • Anonymous
    • AnonymousNot Logged In
    • Register
    • Log In