Search Results for 'private message button'
-
AuthorSearch Results
-
February 6, 2013 at 11:24 am #152477Hugo AshmoreParticipant
functions.php ?
January 24, 2013 at 7:02 pm #151655AventadorParticipantOh Sorry, I understand that the link is not used.
So this:
(a) href = “/ news / pmaction newmessage = & to = ” target = “_blank”> send message (a)
January 24, 2013 at 7:00 pm #151654AventadorParticipantHallo @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
January 22, 2013 at 11:37 pm #151518talha8877ParticipantHi @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’January 21, 2013 at 1:57 pm #151299AventadorParticipantHello, 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.
January 20, 2013 at 4:51 am #151192myladeybuggParticipantLooking 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.
January 20, 2013 at 1:57 am #151177danbpfrParticipantBy 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 ?
`January 20, 2013 at 1:25 am #151175talha8877ParticipantHi 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?January 20, 2013 at 12:02 am #151165danbpfrParticipanthi @talha8877,
i think the answer is in bp-friends/bp-friends-templatetags.php:145
https://codex.buddypress.org/developer/developer-docs/action-reference/friends/
January 19, 2013 at 10:40 pm #151159talha8877ParticipantHi!
I’m wondering if anybody figured out how to add a template tag for Add Friend button?
Cheers
January 15, 2013 at 1:17 pm #150690AventadorParticipantHello 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.
November 23, 2012 at 10:25 pm #145559Brajesh SinghParticipantThere 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.
August 9, 2012 at 12:43 am #138911In reply to: Answering Private Messages Isn’t Working
broniorsMemberHi .. 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?
August 8, 2012 at 6:31 pm #138856In reply to: Answering Private Messages Isn’t Working
Joseph8thMemberI’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!
July 4, 2012 at 5:26 pm #136807In reply to: Theme to support private messaging
Roger CoathupParticipantIf 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
June 8, 2012 at 11:46 pm #135593thirstcardMemberThanks 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 1:30 pm #135581Hugo AshmoreParticipantbp_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 #135579thirstcardMemberOK 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@mercimeParticipantLooks 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 #135555smackmathewParticipantThanks 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 6, 2012 at 2:37 am #135508@mercimeParticipant== ‘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.April 8, 2012 at 4:29 am #132651In reply to: How to add a background image icon to a button
@mercimeParticipant== 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/
April 7, 2012 at 4:34 pm #132614In reply to: How to add a background image icon to a button
Prince Abiola OgundipeParticipant@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
April 6, 2012 at 11:42 pm #132578In reply to: How to add a background image icon to a button
Prince Abiola OgundipeParticipant@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’);}April 6, 2012 at 11:23 pm #132575In reply to: How to add a background image icon to a button
@mercimeParticipantThere can only be normally one background image per element in CSS2 so when you add the icon, it will override the gradient background created in parent theme. You could add extra bg-img using pseudo-elements but that’s good for modern browsers and IE8+ only.
You can use multiple background images for one element with CSS3 compatible with most modern browsers incl. IE9 above. But if you have users who use IE8 below, it will note show up at all.
One solution for cross-browser compatibility down to IE7 is to create an image with the icon and the gradient background, e.g. activity-time-since-with-gradient-background.png, together and hook that to the link:
`div#item-header #send-private-message a {
background: transparent url(_inc/images/activity-time-since-with-gradient-background.png) left center no-repeat !important;
padding-left: 25px;
}`
Of course your image name won’t be that long.The other solution is this: http://www.norestfortheweekend.com/2011/02/26/css3-gradients-multiple-backgrounds-and-ie7/ This is more involved but a great learning experience if you have the time.
-
AuthorSearch Results