Skip to:
Content
Pages
Categories
Search
Top
Bottom

  • About
  • Plugins
  • Themes
  • Documentation
  • Blog
  • Support
  • Download

BuddyPress.org


  • Register
  • Lost Password
  • Log In

@nebril active 2 years, 8 months ago
  • Personal
  • Mentions
  • Favorites
  • Profile picture

    Mack started the forum topic Custom add avatar form. in the group How-To and Troubleshooting: 2 years, 8 months ago

    Hi

    I want to make custom avatar upload form. How should it’s code look like? I mean, how to properly set bp_get_avatar_admin_step() function return value, or should I really do it and so on. Maybe there is tutorial somewhere on the net? I didn’t find any, but maybe I wasn’t looking hard enough.

    Cheers,
    Maciej

  • Profile picture

    Mack posted on the forum topic User uploaded avatars in the group How-To and Troubleshooting: 2 years, 8 months ago

    Bump? :D

  • Profile picture

    Mack started the forum topic User uploaded avatars in the group How-To and Troubleshooting: 2 years, 8 months ago

    Hi, I am working on heavily tweaked wp+bp now, and some things seems to be missing now. Can you tell me, where can I find example code of avatar change form and function, that processes the avatar uploading and setting? I see there is such option on this site, and from what I read, it [...]

  • Profile picture

    Mack started the forum topic Getting friends. in the group How-To and Troubleshooting: 2 years, 8 months ago

    Hi. I need to write a function, which would return friends of current user. Is there some bp function to do it, or should I just get this data directly from database? Also, where can I read format of arguments is bp_has_members()? Maybe there is arg like ‘friends=id’ and I just don’t know it :P . [...]

  • Profile picture

    Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 2 years, 9 months ago

    Thanks a lot, my function now works. Maybe I made sth wrong with these parameters. Messages now appear in database, the problem is that PMs are enabled in buddypress settings. I guess I will have to implement inbox myself, as it would be faster :P

    Thanks for your responds again :) .

    Cheers,
    Maciej

  • Profile picture

    Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 2 years, 9 months ago

    At first I tried to send arguments the way you suggested in last post, but it didn’t work, so I tried to do it in url-style. None of these worked so far.

    Can you tell me how to enable PMs?

    Thanks for replies!

    Cheers,
    Maciej

  • Profile picture

    Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 2 years, 9 months ago

    The function I wrote is as following – function send_msg($user_id, $title, $message){ $args = “recipients=$user_id&sender_id’=11&subject’=$title&content’=$message”; messages_new_message( $args ); } I pass only recipients id, sender id, subject and content, due to call to wp_parse_args in messages_new_message, which fills message parameters which…[Read more]

  • Profile picture

    Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 2 years, 9 months ago

    Thanks for quick respond :) . I try to call this function, but it doesn’t seem to be working. Nothing is inserted into the bp_messages tables in wordpress db. BTW, how to open my inbox? I can’t find it even here on buddypress.org, and on the site I am working on it’s also invisible. Should I [...]

  • Profile picture

    Mack started the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 2 years, 9 months ago

    Hi, I need to write a script to send private messages on buddypress site. It would take user id, title and message text and then call buddypress function to send. The problem is, I can’t find this function on codex docs, not even in svn. Maybe I’m not a good searcher :P Can anybody tell [...]

  • Profile picture

    Mack joined the group How-To and Troubleshooting 2 years, 9 months ago

Profile picture of Mack
  • Activity
    • Personal
    • Mentions
    • Favorites
  • Profile
    • View
  • Sites 0
    • My Sites
  • Forums
    • Topics Started
    • Replies Created
    • Favorites

See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS

Follow BuddyPress on Twitter • GPL • Contact Us • Terms of Service

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
  • BuddyPress.org
    • Log in
  • Anonymous
    • AnonymousNot Logged In
    • Register
    • Lost Password
    • Log In
Log Out