Search Results for 'private'
-
AuthorSearch Results
-
June 26, 2012 at 8:39 pm #136439
In reply to: Groups private messages?
frostdawn
MemberAnyone at all?
June 26, 2012 at 6:20 pm #136428In reply to: Groups private messages?
frostdawn
MemberChecking back in- my original post got lost several pages in the jumble and I hadn’t heard anything. Anyone have any feedback about PMing groups?
June 26, 2012 at 5:44 pm #136426In reply to: Numeric Usernames and Private Messaging
Paul Wong-Gibbs
KeymasterSounds like you’re might have found a bug. Please would you make a report on http://buddypress.trac.WordPress.org ? thanks
June 26, 2012 at 12:58 am #136402In reply to: Warning: Cannot modify header information
Bruce
MemberThanks. I had an old plugin — wordpress private. Switched to Private Buddypress. Works now.
June 25, 2012 at 8:55 am #136368In reply to: How do I disable adminbar for all users?
foobool
Member<?php
/**
* Admin Bar
*
* This code handles the building and rendering of the press bar.
*//**
* Instantiate the admin bar object and set it up as a global for access elsewhere.
*
* To hide the admin bar, you’re looking in the wrong place. Unhooking this function will not
* properly remove the admin bar. For that, use show_admin_bar(false) or the show_admin_bar filter.
*
* @since 3.1.0
* @access private
* @return bool Whether the admin bar was successfully initialized.
*/
function hide_admin_bar() {
return false;
}
add_filter( ‘show_admin_bar’, ‘hide_admin_bar’ );function _wp_admin_bar_init() {
global $wp_admin_bar;if ( ! is_admin_bar_showing() )
return false;/* Load the admin bar class code ready for instantiation */
require( ABSPATH . WPINC . ‘/class-wp-admin-bar.php’ );/* Instantiate the admin bar */
$admin_bar_class = apply_filters( ‘wp_admin_bar_class’, ‘WP_Admin_Bar’ );
if ( class_exists( $admin_bar_class ) )
$wp_admin_bar = new $admin_bar_class;
elseJune 23, 2012 at 5:11 pm #136297valuser
ParticipantMany Many thanks. Thrilled to bits.
June 23, 2012 at 10:03 am #136273Mathieu 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?
-
AuthorSearch Results