Forum Replies Created
-
In reply to: Create a new Extended Profile (xProfile) field type
Thanks for the link @tenaciousblindgirl but in this case more than shortcodes, we should need some specific hooks to attach our functions via add_filter or add_action.
In reply to: Create a new Extended Profile (xProfile) field typeThanks for the link 🙂
By the way, really are there no official documentation about it? Someone have to search all the BuddyPress code (ora a third party plugin code) trying to understand how to do it? 😐
In reply to: Get all values of a XProfile fieldThanks a lot, the final code is:
$values = xprofile_get_field(xprofile_get_field_id_from_name('MY_CUSTOM_FIELD_NAME'))->get_children();In reply to: Get all values of a XProfile fieldI’ve found a solutin using:
$values = xprofile_get_field(MY_CUSTOM_FIELD_ID)->get_children();But using a field “name” instead of an ID would be easier… are there any function for it?
In reply to: New activity tabHi!
I know that there are @mentions but I got a specific request to have a custom Activity tab dedicated only to manage particular user-to-user communications, something like “let’s talk with A about argument X”.I’m looking to add this subtab beside “Personal”, “Mentions”, “Favorites”… inside Activity.
In reply to: New activity tabI retry… simplifying the question: “How can I create a new activity tab?”
Yes, it’s like @youmin is saying.
If role equal A show in profile B and C
If role equal X show in profile Y and Z.With
user_can()I can check for user capabilities but what BuddyPress template files or hooks I have to use to edit the user profile page? (I’m talking about the ‘website.tld/users/NAME_OF_THE_USER/profile/’ page)In reply to: Add tab to user profile from pluginI’ve found a solution directly adding the HTML using the ‘bp_member_options_nav’ hook.
In reply to: Add tab to user profile from pluginA new question strictly related with my previous one:
using the above methods I’ve been able to add a tab/subtab to the user profile that display the content inside the profile, under the tabs.
But is it possible to insert in the tabs a “direct link” to an external page?
Something not like “http://mywebsite.tld/user/username/slug” but “http://anyurlhere.tld”?In reply to: Add profile fields groups to registrationThanks @mercime for the link, I’ll follow the progress of the issue.
In the meantime do you know if there are any plugins that permit to edit the BuddyPress registration page?
Thanks again.
In reply to: Add profile fields groups to registrationI know that Base group are shown in the Registration Form, but I have to add over 30 fields during registration so if they could be logically separated from the base group during registration and inside the user profile would be of great help for the customer.
In reply to: Edit registration and activationThanks for the links,
I’ve already modified the design/template of the registration page but I don’t know how to edit the messages shown and the redirect after the registration form is sent.In reply to: Add tab to user profile from pluginThanks,
I had to change the way ‘screen_function’ and ‘add_action’ are linked to their functions because I’m working in a Class, then all is working as expected 🙂In reply to: Add tab to user profile from pluginThanks a lot!
In the example the tabs content is hardcoded, is it possible to retrieve the “currently shown user profile id” inside the XYZ_screen_content() function?
In reply to: Social loginI don’t know if it works for every service, but at least in my case for Facebook, Google and Twitter it’s working 😉
In reply to: Customizing emails templateNice one! 🙂
In reply to: Customizing emails templateJust a note: in BuddyPress
bp_core_signup_send_validation_emailfunctionwp_mailis called only with the required parameterswp_mail( $to, $subject, $message ), but the function could accept also two optional parameterswp_mail( $to, $subject, $message, $headers, $attachments ).So if you want to edit also the headers and/or attachments you have to edit the BP core file adding the parameters and the corresponding filters.
In reply to: Social loginIf anyone needs an advice, at the end I’ve chosen this one:
https://wordpress.org/plugins/wordpress-social-login/
because it works as needed and doesn’t to connect to a third party website to be managed.In reply to: Social loginThanks for the reply,
I’ve found these 2 plugins that are BuddyPress compatible and looks regularly updated:
– https://wordpress.org/plugins/oa-social-login/
– https://wordpress.org/plugins/wordpress-social-login/
I’ll give both a try and I hope that at least one will fit my website needs 🙂In reply to: Customizing emails templateThanks @henrywright,
I’ve added the filter just before sending the mail and I immediatly remove it onbp_core_sent_user_validation_emailto avoid problem on other WordPress mail that needstext/plain.I’ve also found in the code inside
bp_core_signup_send_validation_email( $user_id, $user_email, $key )function these three hooks that I used to change the message as needed by my website:$to = apply_filters( 'bp_core_signup_send_validation_email_to', $user_email, $user_id ); $subject = apply_filters( 'bp_core_signup_send_validation_email_subject', $subject, $user_id ); $message = apply_filters( 'bp_core_signup_send_validation_email_message', $message, $user_id, $activate_url );In reply to: Registration hooksThanks for the info,
it addressed me to the code I was looking for 🙂I decided to use the
bp_signup_pre_validatehook instead and directly modify the$_POSTbecause on thebp_signup_usermetaBP has already made some edits and some data are missing in$usermeta.