Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Malas Reda

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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 ?

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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 ?

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    PS: The field will be created in another group field.

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    Perfect it works !

    Thank you

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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 ?

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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 );
    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    Hello,

    How can i change, add or remove items from those two menus on the profile page ?

    Thank you

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    Thank you it works.

    On the profile page, profile informations how can i show the age rather than the date ?

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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,

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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.

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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.

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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,

    Malas Reda
    Participant
    • 13 Topics
    • 28 Posts
    @malasreda

    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.

Viewing 15 posts - 1 through 15 (of 15 total)

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.