• Resolved bmoreau92

    (@bmoreau92)


    Hi !

    Here is the result obtained after searching among my members using BP Profile Search.

    This works fine, but I would like to have this in reverse order:
    1 – Search Criteria
    2 – followed by the selected criterion
    3 – then the “Vider” option (=”Clear” in English)

    I would also like to find a way to replace the text “Vider“, which seems to be an automatic translation of “Clear”, but which means nothing in French.
    The correct translation would have been “Réinitialiser” (=”Reset” in English)…

    Thank you for your help!
    Best regards.
    Bruno

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Bruno,

    You can try adding this code to your bp-custom.php file:

    add_action ('bp_before_directory_members_content', 'move_filters', 5);
    function move_filters ()
    {
    	remove_action ('bp_before_directory_members_content', 'bps_add_filters');
    	add_action ('bp_before_directory_members_tabs', 'bps_add_filters', 20);
    }

    The translation of ‘Clear’ comes from your platform (BuddyPress or BuddyBoss), therefore you have to change it there.

    Thread Starter bmoreau92

    (@bmoreau92)

    Thank you so much Andrea !

    It works fine ??

    Kind Regards.

    Bruno

    Thread Starter bmoreau92

    (@bmoreau92)

    Andrea,
    Here is the HTML code for my page.
    Are you sure this wording comes from BuddyPress?
    I couldn’t find where…
    Kind Regards.
    Bruno

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Bruno,

    The translation comes from the BuddyPress translation file, but if you wish you can modify it adding this code to your bp-custom.php file:

    add_action ('bps_before_filters', 'alter_filters');
    function alter_filters ($F)
    {
    	foreach ($F->links as $path => $label)
    		if ($label == 'Vider')  $F->links[$path] = 'put your translation here';
    }
    Thread Starter bmoreau92

    (@bmoreau92)

    Thank you so much Andrea !

    It works fine, but you shouldn’t work on a Sunday !

    Kind Regards.

    Bruno

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Bruno,

    You are welcome! All the best

    Andrea

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘changing the presentation of search results’ is closed to new replies.