Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,901 through 1,925 (of 3,456 total)
  • Author
    Search Results
  • #136439
    frostdawn
    Member

    Anyone at all?

    #136428
    frostdawn
    Member

    Checking 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?

    #136426
    Paul Wong-Gibbs
    Keymaster

    Sounds like you’re might have found a bug. Please would you make a report on http://buddypress.trac.WordPress.org ? thanks

    #136402
    Bruce
    Member

    Thanks. I had an old plugin — wordpress private. Switched to Private Buddypress. Works now.

    #136368
    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;
    else

    valuser
    Participant

    Many Many thanks. Thrilled to bits.

    Mathieu Viet
    Moderator

    @creaturis you’re welcome & thanks :)

    creaturis
    Participant

    I always make stupid mistakes like these. :D. 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.

    creaturis
    Participant

    thanks 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.

    #136213
    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.

    i25sa
    Member

    Hi, 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!

    :)

    #136117
    Hugo Ashmore
    Participant

    actually 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.

    #136034
    frostdawn
    Member

    Almost forgot:
    WordPress v 3.3.1
    BuddyPress v 1.5.4

    #135901

    Hi 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?

    aces
    Participant

    Your welcome…..

    admin25
    Participant

    Hello 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.

    aces
    Participant

    You 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….

    #135748
    kodestar
    Member

    Ignore 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 :)

    #135747
    kodestar
    Member

    Thanks 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.

    #135744
    shanebp
    Moderator

    The 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 );
    `

    thirstcard
    Member

    Thanks 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() );

    Paul Wong-Gibbs
    Keymaster

    I 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.

    #135588
    Paul Wong-Gibbs
    Keymaster

    This 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 :)

    Hugo Ashmore
    Participant

    bp_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.

    thirstcard
    Member

    OK 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?

Viewing 25 results - 1,901 through 1,925 (of 3,456 total)
Skip to toolbar