• Resolved melchi2

    (@melchi2)


    I wanted to ask you if you had found a solution for saving searches in the member directory. I noticed when you do a search using the filters, if you click on a profile then on the back arrow of the browser, your search is saved but if you go to a page and you click again on directory of members faded away. I had imagined a modal when you click on a profile that would allow you to have a back button. My question was to know if you have already found a solution to this problem.
    Thank you in advance for your answer

    My projetc
    https://mega.nz/file/GZpx1S5K#SGYmwbmWeO97EdHixUmaOpCiIQaFsiEYe08djk8R_Fo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @melchi2

    Ultimate member currently does not have a feature to open a user profile on the modal. But you can try to force open the user profile on a new tab so that search history stays on the member directory page.

    To force the user profile to open on a new tab, you can try some custom javascript or you can edit the template to make it open on a new tab.

    Please try following code snippets:

    add_action('wp_footer',function(){
    ?>
    <script>
        (function($){
            $(document).on('click','.um-members .um-member .um-member-name a',function(e){
                e.preventDefault();
                var link = $(this).attr('href');
                window.open( link , "_blank");
            });
        })(jQuery);
    </script>
    <?php
    });

    The above code snippet will only work if the user clicks on the Display name but this is just to give you an idea of what you can do.

    Thread Starter melchi2

    (@melchi2)

    Thank you very much, I just tested it’s a good start

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘modal ultimate member directory’ is closed to new replies.