Search Results for 'private message button'
-
AuthorSearch Results
-
March 12, 2016 at 2:07 am #251134
Topic: Disable or Hide Private Message Button
in forum How-to & Troubleshootingnamrons
ParticipantIn an effort to prevent spam I would like to hide the “private message” button only if you are not already friends with someone. Can anyone suggest any code to achieve this?
March 4, 2016 at 11:26 am #250628Mark
Participant@djpaul Hi Paul,
I have no clue what that means! Will copy my details from this ticket into a bug report when I get a chance. It’s 3:22AM so I will do so probably tomorrow.
So I just pieced some code from Buddypress 2.5.0 (previously used code from 2.4.0 files during testing) files together using class-bp-core-whos-online-widget.php and bp-members-widgets.php to create a generic widget containing a generic loop in it. After putting that generic widget into a dynamic sidebar and then calling that sidebar above the cover image header the loop displays and doesn’t break the private message button. Weird way about getting my custom loop to display above the cover image header on a member’s profile but works for some reason. Thought I’d let you know just in case the info helps.
Not sure why the code I pieced together from Buddypress 2.4.0 (bp-members-widgets.php) didn’t work also when I first tried this random workaround. During that round of testing the loop displayed as intended but still broke the private message button. I’m not a coder so I have no clue what is happening, I just figured it was something to do with the loading of the code so I tried random things to try and get it to work. Noticed you no longer just use bp-members-widget.php for 2.5.0 so maybe that has something to do with my workaround working now. Weird.
Anyways, thanks for all your help. Will be great to have one of you experts take a look and remedy this quirk.
Have a great night.
Regards,
markFebruary 8, 2016 at 3:07 pm #249592regvg
ParticipantHave the same problem: new wp install 442 + buddypress 2.5.8, first on theme 2016, then theme quest, both all the links in profile but no “add friend” button,
in bp settings all functions are enabled,
sending private messages works fine,
group owner invite people works, toochanging theme didn’t help.
Has anyone pls a suggestion?January 6, 2016 at 8:56 pm #248453In reply to: Location of bp_member_header_actions ?
Hastig
ParticipantThanks very much guys!
Is it just my blind eyes or is hookr.io impossible to read? Font size is tiny, color is invisible. A fantastic resource though, bookmarked it, thanks again!
For anybody interested, I just wanted a ‘send private message’ button that I could place anywhere on the page.
The simple way seems to be to use this..
<?php bp_send_private_message_button(); ?>On click it will open the send message page with the person you want to message already set.
bp_send_private_message_buttonis a function that echosbp_get_send_message_button
bp_send_private_message_buttonis located in /bp-messages/bp-messages-template.phpsource http://hookr.io/plugins/buddypress/2.4.3/functions/bp_send_private_message_button/
if you’re wanting to change the text of the link you can add this to functions.php or bp-custom.php
function custom_change_send_private_message_text($args) { $args[link_text] = 'send message'; return $args; } add_filter( 'bp_get_send_message_button_args', 'custom_change_send_private_message_text', 1, 1 );..thats courtesy of shanebp..
https://buddypress.org/support/topic/private-message-button-label-change/another version i was playing with if its of use to anyone..
function custom_change_send_private_message_text($args) { $userName = bp_get_displayed_user_username(); $args[link_text] = 'send ' . $userName . ' a private message'; return $args; } add_filter( 'bp_get_send_message_button_args', 'custom_change_send_private_message_text', 1, 1 );..you would have to figure out how to remove the hyphen from the username.
January 6, 2016 at 7:56 pm #248447In reply to: Location of bp_member_header_actions ?
shanebp
ModeratorIt doesn’t handle the avatar.
It creates Friend, Public & Private messages buttons.
And provides a hook for you to add another call.See
function setup_actions()in this file for where it is hooked to create the default buttons:
buddypress\bp-templates\bp-legacy\buddypress-functions.phpNovember 13, 2015 at 4:50 am #246705In reply to: Customization questions
scoobs2000
ParticipantHi
in short everything you have asked can be done.But I’m a little bias as I honestly believe regarding technology there is nothing that can’t be achieved it just comes down to how much time and budget you have to invest… 🙂
Below is a bit of a ramble…. But might provide insight. after you organize your coffee and come back.
I have nearly completed a project that sounds similar in nature (few weeks from launch in final beta testing), however it was a highly customised solution (private membership site) .
With nearly 70 plugins, 100’s hours coding integration code (lots of trial and error) between the plugins and also compatibility tests with multiples of plugins to ensure no issues, because of slow load times the project requires deploying from CDN,fast servers and customised caching solutions.
most of work load appeasr to be bbpress – so an near out of the box solution, you prob don’t need to go that far.But not to scare you. Here are some pointers that might answer your questions, based on my understanding of the OP.
In my case I spent many months researching solutions with many platforms (open source / paid / managed premium) – buddy press was selected simply because is built on WordPress that’s already has the core abilities you need, you just need to “hook in to’em” and take advantage of this concept – you can keep working on bettering and adding separate components / features as time goes by, great for client, works out a bit cheaper in the startup phase and great for developer – land ya self a permanent support / ongoing development contract……
Is it possible to update profile content/meta? : In general yes, buddy press allows this out of the box
Either the user or the admin can update, you can have admin only fields (the user doesn’t access them – but the admin can)
if you use a membership plugin eg, s2member – you can extend this idea much further eg, only require email on signup, then all other fields are accessible from profile and can set fields on a per membership level,In your case, you might have different profile fields for students, teachers, Parents and only require a couple of basic fields to be completed on signup and all other fields can still be “required” when they reach their profile page.
For profile field management I recommend the s2membership pro plugin (free version available) http://s2member.com/My project has a “todo list” for each and every member – however I’m still to this day unable to find a plugin that interacts with a completed wp/bbp/buddypress site. So I had to code one. The todo list was designed / engineered in a way that interacts with “wordpress” in general, by storing a completely unique data feed much like the activity feed with time stamps and can be programmed to be linked to any site link, media download, page view, forum post, reply any activity on the site can be logged and applied to the feed which the to-do-list interacts with and auto completing (crossing of the item) each item also has dependencies, so you rattle off a list of activities before the task is crossed off and each to-do-list also has dependencies so it is not seen by a user until certain tasks are completed, eg, purchase a course from the store, or complete a previous to-do-list.
In short: Yes it can be done, however I’m not aware of any 3rd party plugin that does this successfully.
In my case I have the to-do-list shown in the sidebar so as a member goes through the tasks the list is also available to them no matter what page they are on. But possible to publish it in the profile page if required.
Regarding email notices, I recommend looking into the woo commerce sensei http://www.woothemes.com/products/sensei/ plugin for your courses that way you have management of email notices, in fact prob most of the things you require will be available via sensei – note this is a premium paid plugin with yearly ongoing licence costs.
Without a free trial version to try before you buy.But maybe gravity forms developer licence might be fine in your case as it has, gateway plugins, qiz and survey plugins – it would be possible to build certain simple courses on the gravity framework including delivery of custom emails – if building a form based system than certainly worth a look into – but would require a developers licence to get all the plugins you would prob require.
In fact what I do is use gravity forms email chimp plugin to send the members email address to an email list (automation campaign) in mail chimp (paid account) that auto sends a welcome emails that I have customize to suit the activity they have completed, this way I can send pretty html + marketing emails + scheduled follow up emails and take the work load off WordPress other than a quick API connect on demand.
Regarding: is it possible to have multiple logins or users access the same account/profile?
In simple: Yes, but it all comes to context of the profile, will each member be able to see other members profiles or will parents be able to edit a child profile etc.Although my project does not require the need for 2 or more members to edit a single profile, I do have multiple levels of context (horizontal and vertical memberships) all with their own set of rules who profiles they can see and what buddypress features are available to them – some members don’t have activity feeds or messages, But I needed to ensure that members that do have access to these features can’t access the features of cross membership and so on.
This is 100% custom code (no plugin) but while coding this up I recall thinking I’m 100% confident it is possible to add another level of check “if current user can edit displayed user” and go from there, all you would need is a profile field / meta that links multiple accounts together –
Eg, a parent account has a profiled field “child user name” – they just enter the child username / user ID – and now we would add the profile check if a parent is viewing the child’s profile.Regarding paying a deposit, and payment, this is my findings.
There was no single one membership / payment plugin that integrated perfectly into what I wished to achieve – I have tested many. please note I’m suggesting there are no plugins that do this stuff just none that achieved the outcomes I needed for my project.
– Tips: – start the project design based on the payment systems / gateway (the complete project and direction of development is 100% dependent on this) because the simple reason every feature you implement needs to check “is a paid member and what level (cap / role) ” – including free membership with paid features “is not a paid member” but has paid for… this includes recurring and non-recurring subscriptions with consideration of what you intend to do if a subscription expires.
Eg, a recurring subscription will either just auto subscribe and pay for the next time frame (or fail)
A non-reoccurring subscription will auto expire after a given time frame (or X cycles)The difference between to the two –
Is generally on a recurring subscription when it expires it also linked to a member account to “do something” eg downgrade membershipA non-recurring subscription is generally used for a onetime payment you have access forever feature- eg, a course and resources, you pay once on a deposit, subscription over several weeks when the subscription expires the member still has access to the course as long as they remain at minimum a free member on the site. (anyhow that’s how I have implemented things)
These two concepts are completely different in the way they interact with the member as well at many levels although on the surface appear to be almost the same, add in a deposit feature you are also opening another level of context to play with, mostly limiting the available options regarding the payment gateway service you will need to use or more so which services have this feature on offer.
As mentioned – my suggestion is start with the gateway solutions first and reverse the design back to the front end. – this is the big lesson I took away with this project (4 rewrites in total) as it was always a block relating to the gateway limitations (and laws relating to online subscriptions in my country).
My project:
Woo commerce (free) for shopping cart system including purchase of courses, subscription to site and deposit/ subscription to courses, plus all other products, deliverable products, workshops, webinars, one on one sessions, resource downloads from pdf to videos. Anything you can think off can be sold through wooWoo commerce quick cart – plugin (paid)– now I can add a buy now button on any page for any product including subscriptions – the membership info page has a standard 3 column price comparison chart with nothing more than a “sign up now” button – clicking the button auto adds the subscription to cart and opens the checkout popup with one click and without leaving the page (no need to send to store)
Sensei (paid)– for courses and fits well into woo commerce system (but requires a couple more plugins and custom integration code if implementing paid / subscription based courses )
Groups plugin (free) to easily manage roles and caps (as I have to teach client staff how to do this and manage the site) WordPress has this capability built in if your a coding ninja (I’m not)
Groups Woo commerce (paid plugin) to link groups to a purchase – apply a role / cap or groups of, to a user based on the purchase.
Then some custom code is required – to perform a check and if a user has a particular role or cap than apply the s2membership level – this check is done at the store level so if a member cancels or defaults on a payment – the membership level is auto adjusted depending on what role or cap is supplied to the user from the groups woo commerce automation. groups plugin manages non-recurring subscriptions so a expired subscription does not remove the users caps and roles (but a default on payment does)
S2member pro – for membership level management including profile fields management and most importantly complete site access management – I can apply access to each and every competent of the site this includes , forums, topics, replies, posts, pages, media, courses, and content within pages eg, home page displays different content based on the membership level / logged in or general public. s2member pro is also used to override default bbpress / buddy visibility settings eg, hidden forums only available to certain member levels – but requires custom code to apply or traverse access levels on submitting topics / replies to ensure widgets and other snippets don’t display private areas to members that don’t have access. (it allows you to write custom queries with zero concern or consideration to access levels)
For subscriptions (paid)– I use woo commerce Subscriptions plugin – this manages on its own site access based on paid recurring subscriptions (or in simple turns on or off user account based on payment) – pay x amount monthly to access certain site features, courses and resources, forums, pages, blog articles etc.
However – woo commerce subscriptions does not manage deposit / time based subscriptions (non-recurring subscriptions) eg, pay a deposit for a course and gain instant access then pay off on a subscription for x amount of weeks / months –
I was not able to find any plugin (free or paid) that does this, so I had to write a plugin currently under experimental concept stage.Other tips: often it’s better to find compatible, well supported and pay for premium plugins that have overlapping features and disengage these features you don’t want to achieve your goals and do as little integration code as possible, but anything you do needs to be well planned and though out as to not to touch core code in any platform, framework or plugin.
At the end of the day you want the ability to upgrade all systems as time go by.Eg, s2member plugin has its build in membership system that is “required to be active” for the plugin to work. – all I did was setup a single paid (never to be used membership) on a paypal sandbox store this includes setting up all the s2membership registration pages etc – then put a simple redirect in the .htaccess on any of these pages. Now to purchase membership you must go to the store (woo commerce) and purchase a subscription via woo – s2member has now has nothing to do with membership registration / payment systems.
And of course I have “force account creation” turned on at the store – you cannot make a purchase without signup at a minimum free site membership.
by disengaging the buddy, bbp, Wp, and all other means of registering (by redirect) but only leaving the woo commerce customer account registration available – The pop up registration form I use for free members is just a woocommerce customer account registration form (with no products attached) with a fallback to the s2membership cut down reg form (in case ajax / jquery etc not working on client side)And now all purchases, subscriptions, shop account, courses etc are now available from the buddy press profile page also via a “woo to buddypress” plugin (or in my case built into the theme)
May sound complicated but as mentioned I would really suggest starting with payment solutions and nut out this part of the project first as this will most likely force development direction,
one of my project goals was a solution that can cater for anything…. so,
Regarding variable deposit / costs amounts based on user input – if using similar approach as I did – you would just setup woo commerce discount codes per variable outcome / result and would just reveal the correct coupon code to the user on the checkout page. they just cut and paste this code into the discount field and click apply.
or setup up multi products – one product per price base. – have the user input their details first and the result would be – apply a groups cap / role then only offer the courses products in the store with the associated price base based on user caps / role –
woo discount coupons can be setup on multiple bases – eg, deposit amount / on going subscription amount or total amount or per product or per cart total etc.
for me was plenty of research into this including concept builds of other community platforms and as above is only a bit of a sample of features used relating to the OP.
I was under very strict key point goals and achievements requiring very specific outcomes many of these affected development direction how / why I implemented the above.There may be better simpler ways to suit your specific project, but thought it might be worth a mention for some direction. or at least insight into some of the plugins I use / ideas and concepts.
my usual disclaimer – if there is something in there for you, that’s great! if not that’s fine too!
enjoy!
September 5, 2015 at 7:08 am #244067djsteveb
Participant@ajaysingh-1
man – there is post_comment, post_update – and a bunch of others on the hookr io page
http://hookr.io/plugins/buddypress/#index=anot sure what you mean post button comment section..
hmm.. section on the site-wide activity page?
via private message emails / replies?hmm.. group replies?
I don’t know anything about the functions and code actually – but hopefully the hookr info will help ya, or this comment will help you detail what exactly you are looking for – so if someone does know about this code they will know more about what you mean..
August 27, 2015 at 10:02 pm #243730danbp
Participantis there an other setting ? No other setting in BP.
Deactivate the child and use original Fifteen while testing.
– no error message ? No JS error in console (browser tool) ?
A similar topic here, with other advice
https://buddypress.org/support/topic/private-message-button-only-appears-sometimes/July 23, 2015 at 3:15 pm #242164modx
ParticipantHi, sorry if I ask a question here but it is also with regards to adding a Send Private Message button/link.
I would like to add it on the user profile. For example when a user views my profile, he/she can send me a private message through my profile page.
Any help is greatly appreciated. Thank you!
May 6, 2015 at 12:36 pm #238740In reply to: Button that links to the Private Message (compose)
Henry Wright
ModeratorOops, I just noticed I supplied you with an add friend button; nothing to do with private messages, so sorry about that. Let me take a look to see if I can find something.
May 6, 2015 at 11:54 am #238738In reply to: Button that links to the Private Message
Henry Wright
ModeratorClosing as a [duplicate]
March 7, 2015 at 1:36 pm #235598In reply to: [Resolved] Friend button styling
KS
ParticipantThanks Dan.
I did search across every file (using Brackets), so I found the .js and .php files where it’s used, but those classes were not found in any CSS file in my installation. Sorry, ‘looking’ was probably misleading. I meant I had searched thoroughly, using any one of a number of appropriate tools 🙂
I did find *some* of the attributes of the button, but not, for example, where the ‘Add friend’ button is getting its colour from, which is different to the ‘Send private message’ button for example. Some CSS has to be differentiating those two buttons, surely? And the colour in mine doesn’t appear anywhere in any CSS except for a class that isn’t applied to these buttons at all.
March 5, 2015 at 8:40 am #235488In reply to: Actifity feed, Note vs message
whoaloic
ParticipantThank you Henry for your answers.
Note is what I call “What’s new” message in Activity Stream.
That’s why you called public message or mentions?
It’s like a tweet finally ?For private messages, I notice that user could send a message to all users so I was wondering what’s the point of Friends connexion.
I was thinking that only users who are friends could send messages.Than you for the “favorite” button trac. It looks encouraging.
February 16, 2015 at 5:07 am #234546In reply to: Private messaging user blocking/ignoring?
majecdad
ParticipantHey,
@shanebp as I understand it, your plugin serves as sort of a ‘blacklist’ where you can block any user in a variety of ways. Have you considered making it the other way around? Whereby ALL other users were blocked from sending a Public or Private Message *unless* the User clicked on a button that added the other user to a ‘whitelist’?If the user B clicked on a ‘Message’ button, they would be precluded from sending a message to User A unless User B had already been whitelisted by the recipient/User A. Maybe with the attempt generating a prompt to User B to submit a whitelist approval request to User A.
Maybe something like this already exists?
Something for consideration. Thoughts?
Thanks.
February 4, 2015 at 9:56 am #233545In reply to: How to get user id of activity
ARCangelGIRL
ParticipantThank you for your answers! Looks like that I did not describe clear what is my problem, because what I tried from you suggestions it did not work.
There is the code that I’m using to generate “Give a point” button”
function one_star_points() { if ( ! function_exists( 'mycred' ) ) return; $current_id = get_current_user_id(); $profile_id = bp_displayed_user_id(); if ( $current_id == $profile_id ) return; echo '<div class="award-star-rating-img">'; echo do_shortcode( '[mycred_send to="' . $profile_id . '" amount="1" ref="tip" log="Tipping"]Give a point[/mycred_send]' ); echo '</div>'; } add_action( 'one_star_points_button', 'one_star_points' );To give points in user profile I used
$profile_id = bp_displayed_user_id();
To give points in forum I used$profile_user_id = bbp_get_reply_author_id();But i bumped into a problem when I want to give points to user in activity stream. I placed the button near every activity stream entry, so the user could give a point if the like what other user posted in activity stream. I used this code
$profile_video_id = bp_get_activity_user_id();There is no error or warning, but it’s not working, not giving points.Also I would like to give a point if I like private message answer that other user send me. I used this
$profile_message_id = bp_get_the_thread_message_sender_id() ;, but it says that “Missing the recipient for this shortcode.”.Looks like that in the last two cases (activity stream and messages) something is wrong with indicating user id.
Any recommendations on this? I have tried many functions, but still can’t grab user ID in those last two..January 7, 2015 at 7:41 pm #231597In reply to: deleting private messages
Henry Wright
ModeratorWhen in doubt, back up your database! You’ve probably heard that lots of times but in situations like this where the outcome is uncertain, it is definitely worth being prudent.
searched a bit and apparently, the word on the forum-street is: there is no way to delete PM except through the DB. is that still true?
Are you referring to an individual private message, or a whole thread? There should definitely be a way to delete an entire thread via the front-end. It will depend on your theme but by default, there should be a delete button available.
November 26, 2014 at 7:48 pm #229735In reply to: Send Private Message in HTML
elpix
ParticipantI’ve found by myself 🙂
To send HTML private message, you must add :
[
edited – Please use the ‘code’ button when you post code.
Please note that removing that filter creates a major security risk.
It means user input WILL NOT BE SANITIZED.
So some very bad things can happen to your database.
]
remove_filter( 'messages_message_content_before_save', 'wp_filter_kses', 1);To the bp-custom.php file.
I hope it will helps !
August 13, 2014 at 12:09 pm #186525In reply to: Change "private message link"
b2marketing
ParticipantThanks Henry. Will download the plugin and see if it works with some other customisations I got. It might not so that is why I am looking at doing this filter thing similar to this code I am trying to get to work.
function override_button() {
return apply_filters( ‘bp_get_send_private_message_link’, wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/compose/test/?r=’ . bp_core_get_username( bp_displayed_user_id() ) ) );}
add_filter(‘bp_get_send_private_message_link’,’override_button’);May 8, 2014 at 12:39 am #182636In reply to: Filtering bp_get_send_message_button()?
modemlooper
Moderatorchange whatever you want in the arguments
function filter_send_message_btn() { $args = array( 'id' => 'private_message', 'component' => 'messages', 'must_be_logged_in' => true, 'block_self' => true, 'wrapper_id' => 'send-private-message', 'link_href' => bp_get_send_private_message_link(), 'link_title' => __( 'Send a private message to this user.', 'buddypress' ), 'link_text' => __( 'Private Message', 'buddypress' ), 'link_class' => 'send-message', ); return $args; } add_filter('bp_get_send_message_button_args', 'filter_send_message_btn');March 15, 2014 at 4:57 am #179827In reply to: Help! button "post update" is not present
Patryk
ParticipantI have the same thing to me and not display private message button, etc
March 5, 2014 at 8:40 pm #179350Doremdou
ParticipantI tried to create a shortcode to show the join/leave button using the buddypress-functions but can’t make it to work… 🙁
What am I doing wrong?I would like a shortcode like this :
[groupbutton name=”party1″]
I tried with this code for a join button only at first:
add_shortcode( 'groupbutton', 'groupbutton_check_shortcode' ); function groupbutton_check_shortcode( $attr ) { extract( shortcode_atts( array( 'name' => 'read' ), $attr ) ); $current_group_id = BP_Groups_Group::get_id_from_slug($name); $group = groups_get_group( array( 'group_id' => $current_group_id ) ); if(bp_loggedin_user_id()) { if( 'public' == $group->status ) { echo '<a id="group-' . esc_attr( $current_group_id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>'; } } }I am not a developer at all so I dont understand everything but I am trying… :/
Cant figure what I am doing wrong… and why it does not display anything at all.Thank you for your help and sorry for my bad english 🙂
PS: I would like to use all cases of buttons like here on the buddypress-functions.php:
function bp_legacy_theme_ajax_joinleave_group() { // Bail if not a POST action if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) return; // Cast gid as integer $group_id = (int) $_POST['gid']; if ( groups_is_user_banned( bp_loggedin_user_id(), $group_id ) ) return; if ( ! $group = groups_get_group( array( 'group_id' => $group_id ) ) ) return; if ( ! groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) { if ( 'public' == $group->status ) { check_ajax_referer( 'groups_join_group' ); if ( ! groups_join_group( $group->id ) ) { _e( 'Error joining group', 'buddypress' ); } else { echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; } } elseif ( 'private' == $group->status ) { // If the user has already been invited, then this is // an Accept Invitation button if ( groups_check_user_has_invite( bp_loggedin_user_id(), $group->id ) ) { check_ajax_referer( 'groups_accept_invite' ); if ( ! groups_accept_invite( bp_loggedin_user_id(), $group->id ) ) { _e( 'Error requesting membership', 'buddypress' ); } else { echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; } // Otherwise, it's a Request Membership button } else { check_ajax_referer( 'groups_request_membership' ); if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id ) ) { _e( 'Error requesting membership', 'buddypress' ); } else { echo '<a id="group-' . esc_attr( $group->id ) . '" class="membership-requested" rel="membership-requested" title="' . __( 'Membership Requested', 'buddypress' ) . '" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Membership Requested', 'buddypress' ) . '</a>'; } } } } else { check_ajax_referer( 'groups_leave_group' ); if ( ! groups_leave_group( $group->id ) ) { _e( 'Error leaving group', 'buddypress' ); } elseif ( 'public' == $group->status ) { echo '<a id="group-' . esc_attr( $group->id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>'; } elseif ( 'private' == $group->status ) { echo '<a id="group-' . esc_attr( $group->id ) . '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_send_membership_request' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>'; } } exit; } /** * Close and keep closed site wide notices from an admin in the sidebar, via a POST request. * * @return mixed String on error, void on success * @since BuddyPress (1.2) */ function bp_legacy_theme_ajax_close_notice() { // Bail if not a POST action if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) return; if ( ! isset( $_POST['notice_id'] ) ) { echo "-1<div id='message' class='error'><p>" . __( 'There was a problem closing the notice.', 'buddypress' ) . '</p></div>'; } else { $user_id = get_current_user_id(); $notice_ids = bp_get_user_meta( $user_id, 'closed_notices', true ); $notice_ids[] = (int) $_POST['notice_id']; bp_update_user_meta( $user_id, 'closed_notices', $notice_ids ); } exit; }November 10, 2013 at 6:37 pm #174037In reply to: No all-in-one event calendar plug-in for Buddypress?
Marc K.
ParticipantHi Seth!
Interesting, I didn’t know that you had a BP integration in place for EE. With which BP version was it compatible?
I know that the BP core developers have their hands full of work, so I won’t blame them for not taking on a complete events module in the core.
For me the question now is, which plugin takes the least effort to extend on our own. And yes, I know about your crowdfunding like offer to fund extensions to EE. But I need to meet certain deadlines and I don’t think you can guarentee a certain development until then.
BTW, isn’t the “I’ll attend’ and ‘Maybe’ a pretty simple code addition? A user presses a button which captures that users user id and writes it into a custom field of the event page. The plugin then fetches those ids and shows avatars of those people who attend.
I found an interesting tutorial (http://wp.smashingmagazine.com/2012/01/27/limiting-visibility-posts-username/) which might lead the way for my other request, specific event visibility/privacy:
1. Only friends of events creator (again, write all the user ids of the event creator into a custom field thats not visible/accessible to users and then restrict visibility of event page to those users)
2. Only invited (would require more work. First have a way to notify other users of the event by private message or BP notification. Write the user ids of those into yet another custom field, rest see above)
I am pretty much a PHP noob. But are these things really so hard to do? More than a week of work for an experienced BP developer?
November 5, 2013 at 5:16 pm #173863In reply to: Private Message button only appears sometimes
Anonymous User 13302461
InactiveOK I’ll try the workarounds.
Thanks a lot for the feedback.
November 5, 2013 at 4:57 pm #173861In reply to: Private Message button only appears sometimes
Paul Wong-Gibbs
KeymasterHi @welshdemo
The theme’s fine. The problem is actually caused by a bug in our widgets (you’re using the Members list and the “Who’s online?” widgets). We’re tracking the bug here https://buddypress.trac.wordpress.org/ticket/5170 and currently aiming to fix it by the 2.0 release, which is probably 4 months away. If we get a fix before then, we’ll put it into a 1.9.x small release.
A workaround is to make sure that no BuddyPress widgets are rendered before the main content of the page. i.e. try moving the widgets to the right-hand column, or a widget area at the bottom of the page, or just removing the widgets.
November 5, 2013 at 4:52 pm #173859In reply to: Private Message button only appears sometimes
Paul Wong-Gibbs
KeymasterThis was cross-posted to https://wordpress.org/support/topic/private-message-and-button-doesnt-always-appear-empty
-
AuthorSearch Results