Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private message button'

Viewing 25 results - 176 through 200 (of 232 total)
  • Author
    Search Results
  • Ok @hnla thanks, I mean where it says :`<a href="” title=””>`

    Not the functions. I have checked member-header.php but not there.

    what am trying to do is list mention and private message under Add friend button as li .

    I know how to do it but dont know where to locate the file anymore.

    Regards

    Hugo Ashmore
    Participant

    functions.php ?

    Aventador
    Participant

    Oh Sorry, I understand that the link is not used.

    So this:

    (a) href = “/ news / pmaction newmessage = & to = ” target = “_blank”> send message (a)

    Aventador
    Participant

    Hallo @talha8877

    Excuse me, my English is not so good, unfortunately.

    I used the plugin Cartpauj PM Plugin from Mingle, as I have found as yet no viable solution to the buttons (message etc) of the BuddyPress insertion into posts / Articels.

    So now I turn off the message part of BuddyPress and linking all the Cartpauj PM, which works wonderfully, except out of BuddyPress. There does not work.

    Of Cartpauj in single.php just the link:

    <a href = "/ news / pmaction newmessage = & to = “> Send

    . put But as I said, the link works in BuddyPress indeed, but does not with the member users, which I will write. Since I’m still looking for a solution. Evtentuell with: bp user id, funktioiert might not.

    So who has a solution to integrate Cartpauj PM in buddybress, bring it on.

    That´s it

    Thank you

    talha8877
    Participant

    Hi @strangerrj,
    How do you generate the /the_messaging_page/ part in php?

    @chouf1,
    I used it just like that inside the template but it didn’t return anything. But if I only use an action hook like
    `add_action( ‘the_content’, ‘bp_add_friend_button’, 5 );`
    Then the same button appears in all the posts. First I thought this worked but when I clicked the button all the buttons in all the posts became ‘cancel friendship request’

    Aventador
    Participant

    Hello, I received the solution from houseofstrauss: https://wordpress.org/support/topic/get-the-user-id-for-pm-plugin?replies=2

    Thanx @houseofstrauss

    Is it also possible to integrate in buddypress the member header? The link work, but he does not detect the user from buddypress, the user I want to mail.

    And is it possible in the same window e.g. in Thickbox to open Colorbox or Lightbox?

    this link is:

    a href=”the_messaging_page/?pmaction=newmessage&to=<?php the_author_ID(); PM me

    the_author_ID is not correctly for Buddypress.

    Thanx Greetings R.

    myladeybugg
    Participant

    Looking to do something similar, but I’m using the buddypress follow me plugin. I would like to display the “follow” button on my childsite’s sidebar.

    danbpfr
    Participant

    By default, add as friend works only on the profile template or on the member template. So if you want to add this button into a post or in the post meta, it won’t work, i believe.
    You should call the good template part first and probably need to add the appropriate action hook, yes.

    Did you use the statement if ( bp_is_active( ‘friends’ ) ) before `bp_add_friend_button ?
    `

    talha8877
    Participant

    Hi Chouf,

    Thanks for the response. Although I’m having hard time connecting the dots.
    I’d already used
    `bp_add_friend_button( $user_ids[‘users’][$i]->id ) ?>`

    directly in my code but it didn’t return any results.
    Do I need to use an action hook to display it in posts?

    danbpfr
    Participant

    hi @talha8877,

    i think the answer is in bp-friends/bp-friends-templatetags.php:145

    https://codex.buddypress.org/developer/developer-docs/action-reference/friends/

    talha8877
    Participant

    Hi!

    I’m wondering if anybody figured out how to add a template tag for Add Friend button?

    Cheers

    Aventador
    Participant

    Hello Henry, my Englisch is not so good. Sorry.

    I do have 2 Problems, maybe you can help me: 1. send private message and 2. send public message doesn’t work but not like on the buddypress page itself. If for example click the private message, the message page opens without the address User name field, but it appears only an mempty field. Where is the mistake? And this could be handled and dissolve in an jquery colorbox or fancybox manner?

    Thanks R.

    Brajesh Singh
    Participant

    There was a bug with bp-default theme shipped with bp 1.6+ and any theme which is based on bp-default or copies functions from it has the same bug.

    Here is a way to fix that.

    First look for this code(or similar) in your themes functions.php

    
    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',           5 );
    
    // Activity button
    if ( bp_is_active( 'activity' ) )
    add_action( 'bp_member_header_actions',    'bp_send_public_message_button',  20 );
    
    // Messages button
    if ( bp_is_active( 'messages' ) )
    add_action( 'bp_member_header_actions',    'bp_send_private_message_button', 20 );
    

    and change this line

    
    if(!is_admin()){
    

    to this

    
    if ( !is_admin()||(is_admin()&&defined('DOING_AJAX')) ) {
    

    and it will work.

    #138911
    broniors
    Member

    Hi .. I think I am having the same problem

    I am running Buddypress 1.6 and WordPress 3.4.1

    I am finding the Add Friend feature is not working and the reply to message functionality (when I try and reply to a message it isn’t working.)

    When I click on Add friend it just appears to remove the button and the friend pending button doesn’t appear and it doesn’t active the friend request

    When I try and reply to a message I type in the message and click on the send reply and it just clears the message window.

    I am not sure how to uninstall/remove the CDN version of jQuery. Can you please point to some instructions on how to do this?

    #138856
    Joseph8th
    Member

    I’m having a similar problem. I’m running BP 1.6 on WP 3.4.1 network.

    I can write new PMs to any member and it all works great, but when I hit ‘Send Reply’ button the text box empties itself out and the reply is never actually sent as a message.

    I used Firebug and discovered that the POST data is all there, but the AJAX/jQuery isn’t doing it’s job. Here’s why I see in the Firebug console:

    `POST http://bannedatheists.us/wp-admin/admin-ajax.php`

    which is supposed to be handled by `http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?ver=3.4.1`

    Moreover, I just noticed that the jQuery ‘Friend’ buttons aren’t working, either… URG! I’ve been disabling plugins like a madman but so far nada. HELP!

    #136807
    Roger Coathup
    Participant

    If you are using the bp-default theme —

    All you have to do is login, visit someone’s profile, and the send message buttons are there

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

    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?

    @mercime
    Participant

    Looks like JS hiding all the buttons from this test user – though I can see all those links in source.

    smackmathew
    Participant

    Thanks 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

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

    #132651
    @mercime
    Participant

    == it looks so rubbish in IE. ==
    Yup, IE < 9 is bane of designer/developer :-) There are still at least 2 solutions as I pointed to above if you want to pursue the buttons later.

    == But please is there a way to wrap the Edit Profile link which is in the item-header so that it shows on your own profile alone and not when viewing others profile. instead of hiding it under private message button. ==

    Saw your new topic and answered you there https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-link-show-on-your-profile-alone/

    #132614

    @mercime, thanks so much for your help so far, have given up on the button. it looks so rubbish in IE. i dont even check it until you call my attention to it.

    But please is there a way to wrap the Edit Profile link which is in the item-header so that it shows on your own profile alone and not when viewing others profile. instead of hiding it under private message button.

    The code am using is :
    `<a class="edit-my"<a href="profile/edit”>Edit Profile`

    I mean may be a wrap to declare something like if is_ user_profile

    Regards

    #132578

    @mercime, thanks so much. the problem has been solved. what i did was i declare them seprately and it works.

    div#item-header #send-private-message a{background: url(_inc/images/plus-icon.png)no-repeat 0 2px transparent;padding-left:16px;
    }
    div#item-header #send-private-message {background:#ededed;background:-webkit-gradient(linear, left top, left bottom, from(white), to(#ededed));background: -moz-linear-gradient(top, white, #ededed);filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#ffffff’, endColorstr=’#ededed’);}

Viewing 25 results - 176 through 200 (of 232 total)
Skip to toolbar