Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private message button'

Viewing 25 results - 201 through 225 (of 331 total)
  • Author
    Search Results
  • #168900

    In reply to: BuddyPress 1.8 Issue

    GhostPool
    Participant

    Nobody else has had the same issue? Lets try a different tact. Has there been any changes made to private message, add friend and public message buttons in 1.8?

    #168708
    GhostPool
    Participant

    Hi there,

    The private message, add friend and public message buttons have disappeared from the user profile pages once I upgraded to BuddyPress v1.8 on my custom theme designed to work with BuddyPress.

    I’ve compared the code in my BP functions.php with the default BP theme’s functions.php and cannot see anything that is omitted. I’ve updated all the BP templates file and tried a whole bunch of other things to get these buttons back but I’ve had no luck.

    I’m starting to think this may be a BuddyPress bug, any help is appreciated.

    #167336
    designweb
    Participant

    @bphelp Thank for your reply. my question is simple. i need to show member header item which include (add friend, send private message etc). which are not showing when user are not login. i need to remove login to see header item button condition . any way to do this.

    designweb
    Participant

    when i was not login in buddypress the header item buttons in user profiles is not show up and i was trying to show user header item buttons like add friend, follow and send private message in buddypress but it will need required to user login to add add friend, follow and send private message just like this Link . there is any way to do this in buddypress.

    #167154
    Henry
    Member

    @kizmark

    I’m still scratching my head with this one. It must be my install playing games. In the end I got it working with

    Anyway I thought why not just build the link and throw it directly in the friends template?

    #167112
    kizmark
    Participant

    BP 1.7
    WP 3.5

    URL: http://testbed.offsourcing.us/zqgame/members/demo/messages/compose/
    admin : offsourcing

    login:

    demo:demo

    What might be wrong or missing with this, Can’t even send a message. And also I’m having trouble displaying the “send private message” button. How will I do that?>

    #167111
    kizmark
    Participant

    @Henry, Did you got it solved?

    I’m having the same question.. I want to get the link to have a send private message button

    #162886
    Henry
    Member

    @shanebpdev

    For the life of me I cannot figure out why it doesn’t work for the friends loop. Am I missing something glaringly obvious?

    Anyway I thought why not just build the link and throw it directly in the friends template?

    echo wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( bp_get_member_user_id() ) );

    #162881
    shanebp
    Moderator

    @henrywright-1

    I’m not going to spoon-feed this to you.
    But you’re on the right track.
    ( I should have said ‘ The clue is in your reply…’ )
    You’ve found what is the same in those two situations.
    So what is different about them ?

    Sometimes it’s easier to start anew.
    For example – instead of ‘how to I change this to do that’, start with ‘how do I do that’.

    Use echo to confirm the required variables.
    Use var_dump to expose all the fields in objects.

    #162878
    Henry
    Member

    @shanebp you mean the bp_directory_members_item is different? That is the same in both the members directory and the friends list (both use the members loop)…

    #162876
    shanebp
    Moderator

    @henrywright-1
    What’s different? The answer is in your reply “Thanks for that… ”

    @valuser
    That usage makes sense and has been mentioned by others.
    But it’s not a simple tweak.
    And would require an admin screen so you could choose to show / not show the button in loops.
    And etc. etc.
    I’ll write an article in the next week or so on
    PhiloPress

    #162868
    valuser
    Participant

    Thanks for function https://gist.github.com/shanebp/5391229

    works bp 1.7, wp 3.5.1, bbPress 2.3.1 Theme: Child of bp Befault

    Any chance that it might call up your BP Profile Message UX 1.1.3

    #162865
    Henry
    Member

    Interestingly I just tried this outside of the members loop. It doesn’t work on the friends list page. What is different about the friends loop and the members loop for this not to work? Humm…

    #162863
    Henry
    Member

    Thanks for that! I can see now you’ve created a new function display_private_message_button which hooks on to action bp_directory_members_item in the members loop. Sorry for being slow, i got there in the end :}

    #162849
    shanebp
    Moderator

    Start with the add_action and follow the function calls.
    If you see a function that isn’t defined in the gist, then that function is in the codebase.
    Find and study it.

    The add_action calls a function that calls bp_send_message_button() which creates the button.
    Part of creating the button is creating the link.
    The link can be filtered – so look for apply_filters in that context.

    #162830
    Henry
    Member

    @shanebp

    Is it possible to explain how the code works?

    David Cavins
    Keymaster

    Hi Modemlooper-

    My theme is a child theme of Twenty Twelve, so my style.css declares Template: twentytwelve.

    I followed your suggestion then took it a step farther and included slightly modified version of the js setup functions from the template pack in my `functions.php` file. I’ll post them here in case somebody else has the same problem I’m having:

    `function bp_support_theme_setup() {
    global $bp;

    // Load the default BuddyPress AJAX functions if it isn’t explicitly disabled or if it isn’t already included in a custom theme
    if ( ! function_exists( ‘bp_dtheme_ajax_querystring’ ) )
    require_once( BP_PLUGIN_DIR . ‘/bp-themes/bp-default/_inc/ajax.php’ );

    // Let’s tell BP that we support it!
    add_theme_support( ‘buddypress’ );

    if ( ! is_admin() ) {
    // Register buttons for the relevant component templates
    // Friends button
    if ( bp_is_active( ‘friends’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_add_friend_button’ );

    // Activity button
    if ( bp_is_active( ‘activity’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_public_message_button’ );

    // Messages button
    if ( bp_is_active( ‘messages’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_private_message_button’ );

    // Group buttons
    if ( bp_is_active( ‘groups’ ) ) {
    add_action( ‘bp_group_header_actions’, ‘bp_group_join_button’ );
    add_action( ‘bp_group_header_actions’, ‘bp_group_new_topic_button’ );
    add_action( ‘bp_directory_groups_actions’, ‘bp_group_join_button’ );
    }

    // Blog button
    if ( bp_is_active( ‘blogs’ ) )
    add_action( ‘bp_directory_blogs_actions’, ‘bp_blogs_visit_blog_button’ );
    }
    }
    add_action( ‘after_setup_theme’, ‘bp_support_theme_setup’, 11 );

    /**
    * Enqueues BuddyPress JS and related AJAX functions
    *
    * @since 1.2
    */
    function bp_support_enqueue_scripts() {

    // Add words that we need to use in JS to the end of the page so they can be translated and still used.
    $params = array(
    ‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
    ‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
    ‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
    ‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
    ‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
    ‘comments’ => __( ‘comments’, ‘buddypress’ ),
    ‘close’ => __( ‘Close’, ‘buddypress’ )
    );

    // BP 1.5+
    if ( version_compare( BP_VERSION, ‘1.3’, ‘>’ ) ) {
    // Bump this when changes are made to bust cache
    $version = ‘20120412’;

    $params[‘view’] = __( ‘View’, ‘buddypress’ );
    $params[‘mark_as_fav’] = __( ‘Favorite’, ‘buddypress’ );
    $params[‘remove_fav’] = __( ‘Remove Favorite’, ‘buddypress’ );
    }
    // BP 1.2.x
    else {
    $version = ‘20110729’;

    if ( bp_displayed_user_id() )
    $params[‘mention_explain’] = sprintf( __( “%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.”, ‘buddypress’ ), ‘@’ . bp_get_displayed_user_username(), bp_get_user_firstname( bp_get_displayed_user_fullname() ), bp_get_user_firstname( bp_get_displayed_user_fullname() ) );
    }

    // Enqueue the global JS – Ajax will not work without it
    wp_enqueue_script( ‘dtheme-ajax-js’, BP_PLUGIN_URL . ‘/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );

    // Localize the JS strings
    wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
    }
    add_action( ‘wp_enqueue_scripts’, ‘bp_support_enqueue_scripts’ );
    `

    Which is identical to installing the template pack only for the JS, I think. Everything’s working as expected, so I think we can consider this problem resolved. Thanks for your attention, Hugo and Modemlooper.

    -David

    #161746
    shanebp
    Moderator
    #161737
    funmi omoba
    Participant

    @shanebp,

    Your link is not working anymore

    #161708
    shanebp
    Moderator

    Try this in your functions.php or bp-custom.php file

    https://gist.github.com/shanebp/5388770

    #161683
    azchipka
    Participant

    I am hoping to add a private message button in the members list loop. Any one have any guidance?

    #161535
    shanebp
    Moderator

    Please provide a username and password so we can login without having to create an account.

    Do you have Private Messaging selected on the Components page under Settings -> BuddyPress ?

    #161531
    LadyCaisa
    Participant

    I’m running the latest WP and BP on http://www.mypearloyster.se/
    When I look at another user’s profile I only see the public message button not the private message. I have two users presently, me as admin and second user to interact with the site as an ordinary user. I’d like to solve this before I announce my eminent site to the world. šŸ™‚

    #159823
    XCast3D
    Participant

    Hi!

    I need help finishing a Buddypress site. I am a fairly experienced php/wordpress developer but this is the first time using Buddypress and I need help finalizing some of the more advanced features.

    http://vettingzoo.definitionad.com/

    Setup:
    (Most plugins are up-to-date by todays date 4/3/2013)

    – WordPress 3.5.1
    – Buddypress 1.6.5
    – BP Media Plugin 2.7.5
    – BP Media Kaltura Add0on 2.0
    – GEO My WP 1.7.1
    – BP User Account Type PRO 1.0.3.1
    – Custom designed Buddypress theme

    The site is essentially a Job/Service directory site a la “Angie’s List”. The twist is that users can send vendors questions and Vendors, in turn, reply with video replies to the user. If a user wants to proceed with hiring the vendor, they “vet” them which is like making a friendship connection that can then be displayed to other users. The more “vets” a vendor has, the more you should be able to trust them. There is no reviews on this site.

    Using BP User Account Type PRO, I created two types of users, regular users and vendors. I then used GEO My WP with Buddypress integration to allow users to search for vendors by zip code/category.

    Need:

    1. Ability for users to “vet” (make connection) with a vendor and then have the ability (via a function) to pull how many times a vendor has been “vetted”. Ideally, this is its own separate function than “friends” but if the quickest way is to re-purpose “friends” then I’m fine with that as long as we can restrict it to only friending/vetting vendors since that’s the important part. Users shouldn’t be able to “vet” other users. The vet button should display on the vendor profile page but ideally, this is built in a way where I can call a function and plug in the “vet” button into other templates.

    2. I need to modify Buddypress private messages to be able to include videos. Right now, it only allows for plain text messages. The idea is that if a user poses a question to a vendor that requires specific and personal answers, it should go only directly to that person as oppose to just posting a video on that vendor’s profile. Keep in mind, videos are being posted using Buddypress Media plugin and we purchased and installed the Kaltura add-on to make sure vendors can upload any video type and have it convert to the right type.

    Goal:

    I am looking for the main features/functionality to be developed, any css/styling/design that needs to be done, I will take care of.

    Budget:

    Looking to keep development cost between $300-500 but I’m flexible. Hopefully a skilled Buddypress developer won’t find these additions too challenging.

    Contact Info:
    xavier@xcast3d.com
    I check my e-mail frequently and generally reply quickly.

    Payment:
    PayPal.

    Timeline:
    Within a few days would be nice.

    Thank you for reading this.

    #159195
    aldereteka
    Participant

    Hey @Chouf1

    Can your code be modified for private messaging? I’m trying to make the private message button on profiles visible when someone is logged out, but redirected to log in/register when a logged out/unregistered user attempts to contact someone. Can anyone point me in a general direction?

    Thanks.

Viewing 25 results - 201 through 225 (of 331 total)
Skip to toolbar