Forum Replies Created
-
AuthorPosts
-
Malas RedaParticipant@malasreda
- 13 Topics
- 28 Posts
Hello,
I used this snippet you gave me and it works perfectly,
add_filter( 'bp_get_the_profile_field_name', 'gwangi_change_profile_field_name' ); function gwangi_change_profile_field_name( $field_name ) { if ( bp_is_user_profile() && ! bp_is_my_profile() ) { switch ( $field_name ) { case 'What are you looking for': return 'Is looking for'; break; case 'Other field': return 'New name for other field'; break; } } return $field_name; }
If i want to change the fields name in the search profile directory filters which snippet should i use ?
Thank you
February 4, 2019 at 11:43 #5048Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Oh thank you it works !
Under the “active il y a 3 min” we see the recent activity of every profile. I need to replace this by the bio field of every member! and if i am the user logged in and don’t have a bio yet,by default i want to show a link : “No bio yet, describe yourself here ” and on click they will land on the profile section to modify the bio field (the page in the screenshot).
Is this possible ?
January 31, 2019 at 12:38 #4993Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
This step is done.
Now i need to show this fiels on the profile page of each member under the profile section. And if i was the logged in user i should be able to modifie this field like the other registration field.
Is it possible ?
January 30, 2019 at 20:06 #4981Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
January 30, 2019 at 16:04 #4969Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Perfect it works !
Thank you
January 30, 2019 at 15:32 #4960Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Perfect it is working !
I need to put a new field wich is “Bio”. The user will fill text for his profile.
This field is only visible on the profile page and not on the registration page.
How can i do this ?
January 30, 2019 at 13:27 #4938Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Hello,
I am using this code snippet to show on the member directory some fields. Everything is working fine but the field “vos fantasmes” won’t diplay. It shows array instead. The field in question is a check box ! how can i make it work ?
if ( ! function_exists( 'gwangi_custom_buddypress_member_xprofile_custom_fields' ) ) : /** * Print the HTML for the custom XProfile fields in the BP Member Header. * * @since 1.0.0 */ function gwangi_custom_buddypress_member_xprofile_custom_fields() { if ( function_exists( 'xprofile_get_field_data' ) ) : $allowed_html = array( 'a' => array( 'href' => array(), 'rel' => array(), ), ); // TODO: Repeat for each field to display. $êtes_vous = xprofile_get_field_data( 'Êtes-vous', bp_get_member_user_id() ); if ( ! empty( $êtes_vous ) ) : ?> <div class="bp-member-xprofile-custom-field bp-member-my_field"><?php echo wp_kses( $êtes_vous, $allowed_html ); ?></div> <?php endif; $vos_fantasmes = xprofile_get_field_data( 'Vos fantasmes', bp_get_member_user_id() ); if ( ! empty( $vos_fantasmes ) ) : ?> <div class="bp-member-xprofile-custom-field bp-member-my_field"><?php echo wp_kses( $vos_fantasmes, $allowed_html ); ?></div> <?php endif; // TODO: End repeat. endif; } endif; add_action( 'gwangi_buddypress_member_xprofile_custom_fields', 'gwangi_custom_buddypress_member_xprofile_custom_fields', 20 );
January 30, 2019 at 12:47 #4935Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Hello,
How can i change, add or remove items from those two menus on the profile page ?
Thank you
January 29, 2019 at 20:36 #4918Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Thank you it works.
On the profile page, profile informations how can i show the age rather than the date ?
January 29, 2019 at 20:26 #4916Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Hello,
I have many fields on the register page. We can find those informations in the profile section for logged-in user also.
When the logged in user see other members profile, he can also see those information but i would like to change the name of the fields only for other members when logged in.
Exemple:
– On registration page : “what are you looking for ?”
– On Logged-in user profile page : “what are you looking for ?”
– When the logged-in user check other members profile : “Is looking for”Is it possible ?
Thank you,
January 29, 2019 at 20:22 #4914Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Hello,
I have tried to copy and past this snippet, it shows me only male although i have selected i am searching for females.
The website is in french, so i have two fields aded :
Field-1 : what are you looking for ? “5 options”
Field-2 : What gender are you ? “same 5 options as field 1”exemple: the user logged in is looking for a female and he is a male, he should only see females. If she is a female looking for females she should only see females. ( the options are : female, male , female/female couple, male/female couple, male/male couple)
So the field 1 of the logged in user must be equal to the field 2 of the members to be shown in the member directory.
Is it posssible ?
Thank you in advanced.
January 29, 2019 at 00:38 #4888Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Hi,
It works great for me, i prefer EONET live notifications.
It would have been great if the notificaiton icone of the theme would work with the plugin as well.
Must be for the next upgrade.Thank you.
January 29, 2019 at 00:15 #4884Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
hello,
By updating the theme, the fileds also appeared in the swap section ! Wich is great !
But when i add a codeWhen i add a code snippet to display the member age on the member directory, it shows the date format d/m/year.
How can i show only the age not the date ?
Thank you
January 29, 2019 at 00:07 #4881Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Hey,
I have found another issue regarding the members swap page, the profile card does not show the same items as on the search results like matching hearts on the right bottom corner and other fields.
I have used the snippet plugin to show some fields on the members page but does not appear on the swap members page. How can i make them appear as well as the matchmaking button ?
Best regards,
January 26, 2019 at 14:03 #4728Malas RedaParticipant@malasreda- 13 Topics
- 28 Posts
Thank you for the reply, i have one more question.
In the registration form, i have included a field “what are you looking for”. If the user selected “male”, he must have access to only male members and the other genders are restricted.
How can i make this possible ?
And how can i run notification using ajax, so i dont need to reload to see new notifications ?Thanks in advance.
January 25, 2019 at 14:01 #4725 -
AuthorPosts