Search Results for 'private'
-
AuthorSearch Results
-
June 23, 2012 at 10:03 am #136273
Mathieu Viet
Moderator@creaturis you’re welcome & thanks
June 22, 2012 at 4:44 pm #136242creaturis
ParticipantI always make stupid mistakes like these.
. I really should start reading “php for dummies” .works amazingly well now, and thank you for explaining the function the 9 and 2 has. you got great coding skills.
June 22, 2012 at 9:44 am #136230creaturis
Participantthanks a lot. yup that was pretty much what i had in mind. a profile that only friends can see
.I tried the function. but doesn’t seem to work. Probably my fault. anyways I changed the 9 and 2 id to the categories I wanted removed from activity but they still show up. do I have to change something else in this code also?
I really appreciate that you wrote and/or shared this code btw.
June 22, 2012 at 2:00 am #136213In reply to: Users can’t upload their avatar when on Mac
tjbrewers
Participant@shanebp I’m working on using Aurigma Up on our private site for the change-avatar.php file. If you don’t mind me asking you:
1. How did you handle ‘uploadUrl’ request? Did you send it to an upload file and process it there? Or did it bring it back to the change-avatar.php file?
2. Then when you redirected it back to change-avatar, how did you get image processed?Thanks for your help. Once I get it working, I’ll writing it so everyone can see how to do it.
June 21, 2012 at 6:23 am #136150i25sa
MemberHi, I found the problem – the plugin WP Buddypress private community was conflicting with it, so I deactivated the plugin and now the link goes through.
Thanks Mercime, Queenieb & Odofincaleb for all your help, really appreciate it!
June 20, 2012 at 7:14 pm #136117In reply to: Improved Support for BuddyPress
Hugo Ashmore
Participantactually didn’t take it as criticism, it’s just a difficult area support forums for OS apps are run by volunteers, the ones that can answer questions effectively are more than often working pros so haven’t that much time for in depth help.
There are a few private forums or sites dedicated to BP you could try buddydev or bp-tricks? but not sure of the level of support those can offer.
June 18, 2012 at 10:36 pm #136034In reply to: Groups private messages?
frostdawn
MemberAlmost forgot:
WordPress v 3.3.1
BuddyPress v 1.5.4June 16, 2012 at 11:35 am #135901In reply to: question about Group filtering
83 Oranges .com
MemberHi Boone!
I used your code to show only Public groups on the groups directory page however my issue is that when people use the search box on the directory, even private groups show up! Can you please help me stop private groups from showing up in the search results as well?
June 15, 2012 at 3:39 am #135803aces
ParticipantYour welcome…..
June 15, 2012 at 1:37 am #135795admin25
ParticipantHello aces,
I ran across the code and I thought it was a “this will work with any bp install kind of thing” clearly I was wrong.Your code worked perfectly.
Thank you.June 15, 2012 at 12:38 am #135793aces
ParticipantYou don’t say what your add action is hooked to ( or what the line number refers to ). Do you have a `’walled_garden’` hook in your template?
I would suggest trying the following (I use something similiar but allow access to groups and forums):
`function sh_walled_garden()
{
global $bp;if( bp_is_register_page() || bp_is_activation_page() )
return;if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( bp_get_signup_page() );
}add_action( ‘bp_init’, ‘sh_walled_garden’ );
`
I also substitute `add_action( ‘wp_loaded’, ‘sh_walled_garden’ );` on a different site….
`bp_init` and `wp_loaded` are “native” to buddypress/wordpress so you don’t need to create your own template hook….This is in a bp-custom-php file – using buddypress v1.5.5 as I haven’t upgraded to 1.5.6 yet….
June 13, 2012 at 11:32 pm #135748In reply to: function to send a private message
kodestar
MemberIgnore that, I had a look at the messages_new_message function and realised it should be sending a notification so I guessed the issue was I was testing using the same id for uploader and denyer, i changed to another uploader and it worked perfectly
June 13, 2012 at 11:25 pm #135747In reply to: function to send a private message
kodestar
MemberThanks so much for that, it’s used within a plugin so I used:
`
function bp_send_image_denied_message($sender_id, $recip_id, $subject, $message) {
global $bp;
if ( $thread_id = messages_new_message( array(‘sender_id’ => $sender_id, ‘subject’ => $subject, ‘content’ => $message, ‘recipients’ => $recip_id ) ) ) {
bp_core_add_message( __( ‘Image Denied Message was sent.’, ‘buddypress’ ) );
} else {
bp_core_add_message( __( ‘There was an error sending that Private Message.’, ‘buddypress’ ), ‘error’ );
}} `
and pass the required bits, the only thing it’s not doing is adding a notification item, is there an easy way to add that?Again, thanks a lot, I would have spent ages trying to figure that out.
June 13, 2012 at 10:19 pm #135744In reply to: function to send a private message
shanebp
ModeratorThe function is messages_new_message()
> when an image is denied an email is sent out to the user
So you have a function or some code that does that, yes?
Then you could use parts of the below in that code or call it as a function`
function bp_send_image_denied_message() {
global $bp;//check_admin_referer(message_check”); // adjust if needed
$sender_id = $bp->loggedin_user->id; // moderator id ?
$recip_id = $bp->displayed_user->id; // denied image user id ?if ( $thread_id = messages_new_message( array(‘sender_id’ => $sender_id, ‘subject’ => ‘Image Denied, ‘content’ => ‘why it was denied], ‘recipients’ => $recip_id ) ) ) {
bp_core_add_message( __( ‘Image Denied Message was sent.’, ‘buddypress’ ) );
bp_core_redirect( $bp->displayed_user->domain ); // adjust as needed
} else {
bp_core_add_message( __( ‘There was an error sending that Private Message.’, ‘buddypress’ ), ‘error’ );
}}
add_action( ‘wp’, ‘bp_send_image_denied_message’, 3 );
`June 8, 2012 at 11:46 pm #135593thirstcard
MemberThanks once again Hugo, you always have the solution!
I was doing the sort of digging you describe yesterday in fact and was able to find out how to add a “Follow” button which may interest users of Andy’s plugin BuddyPress Followers:
bp_follow_add_follow_button( bp_displayed_user_id() );
June 8, 2012 at 10:51 pm #135590Paul Wong-Gibbs
KeymasterI don’t think this is very easy to do, if at all. The reason being groups are pretty much hardcoded to three types of membership status: public, private, hidden. You could add some checks to only permit display of the activity list page, but you’d need to somehow keep track of if the user has “joined” the group.
I say “joined” because the user will have already joined the group — but you need a secondary type of group membership. You could store such a setting in group meta.
June 8, 2012 at 10:43 pm #135588In reply to: Can’t send a message without a Subject
Paul Wong-Gibbs
KeymasterThis is the first time I’ve ever heard anyone ask to send messages without a subject. It’s mandatory.
As a workaround, you could edit the messages templates, and replace the input text box (for the subject) with a input type of “hidden”, and set value to something like e.g. “private message”. It’s not foolproof, as a smart user could still change the subject, but I get the impression you wouldn’t be that bothered in that case
June 8, 2012 at 1:30 pm #135581Hugo Ashmore
Participantbp_member_add_friend_button() you would find that by looking in the bp-friends-tamplate.php and to find it was in that file meant looking at the members loop to see how the action buttons are handled and tracing the do_action handle back to that template file you’ll then realise ‘bp_member_add_friend_button()’ echoes bp_get_add_friend_button() with passed args so you then need to trace that function to see further how the friends button works.
In the profile we trace back to functions.php and find ‘bp_add_friend_button()’ that traces to various files, bp-friends-template.php the one of interest again.
June 8, 2012 at 11:06 am #135579thirstcard
MemberOK i have managed to find
bp_send_private_message_link and bp_send_private_message_link()
This covers points 1 and 3 above.
Does anyone know if there is a template tag for Add Friend button?
June 8, 2012 at 5:05 am #135563@mercime
ParticipantLooks like JS hiding all the buttons from this test user – though I can see all those links in source.
June 7, 2012 at 5:30 pm #135555smackmathew
ParticipantThanks for replying
1. here is a test user account. Username: user1 Password: user1
2. Not sure where the public message button went, although my thoughts are that its also overlapping with the others. In this theme they’re not buttons, but text links. so you can see a bunch of text on top of text. if that makes sense.
When you log into http://www.writerscubed.com the home page won’t have much on it. click on a user image to the right and you should see the jumbled text on the top right of the profile page.
Thanks for your help it’s much appreciated
June 7, 2012 at 12:53 pm #135547In reply to: Private profile fields
differentflies
MemberJohn – have you resolved this question? I’m interested in doing the same thing… would be grateful for guidance if you’ve been able to achieve what you described.
June 6, 2012 at 2:37 am #135508@mercime
Participant== ‘cancel friendship’ & ‘private message’ buttons overlap each other ==
1. If you want volunteers to actually check out the issue, please provide test user username and password which you can delete later.
2. What happened to the ‘public message’ button which in bp-default theme shows up between ‘cancel friendship’ and ‘private message’ buttons?
3. In all probability, you would just need to add styles in your theme’s style.css file. something like:
`#item-buttons a { margin-right: 15px; }`
The above will work in bp-default theme. No guarantees this will work on your theme.June 3, 2012 at 10:25 pm #135437Paul Wong-Gibbs
KeymasterWe should. Please make an enhancement ticket on https://buddypress.trac.WordPress.org/. You can use your username and password from this site.
June 3, 2012 at 4:42 pm #135424In reply to: Issues with Private Group Updates
Paul Wong-Gibbs
KeymasterThis was cross-posted on BP trac, and the answer was provided at https://buddypress.trac.wordpress.org/ticket/4232
-
AuthorSearch Results