-
Mack started the forum topic Custom add avatar form. in the group How-To and Troubleshooting: 14 years, 2 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 -
Mack posted on the forum topic User uploaded avatars in the group How-To and Troubleshooting: 14 years, 2 months ago
Bump? 😀
-
Mack started the forum topic User uploaded avatars in the group How-To and Troubleshooting: 14 years, 2 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 […]
-
Mack started the forum topic Getting friends. in the group How-To and Troubleshooting: 14 years, 2 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. […]
-
Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 14 years, 3 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 😛
Thanks for your responds again :).
Cheers,
Maciej -
Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 14 years, 3 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 -
Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 14 years, 3 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]
-
Mack posted on the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 14 years, 3 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 […]
-
Mack started the forum topic Which function should I call to send private message? in the group How-To and Troubleshooting: 14 years, 3 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 😛 Can anybody tell […]
-
Mack joined the group How-To and Troubleshooting 14 years, 3 months ago
@nebril
Not recently active