Random Members Swap

Tagged: 

This topic contains 5 replies, has 5 voices, and was last updated by  Olivier 2 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8818

    Bill Django
    Participant
    • 47 Posts
    @billdjango

    Is it possible to have a random Members swap. Not a ‘last active’ member swap.

    The random member is more interesting than last active.

    But maybe it’s to difficult to implement.

    PS : Vote for this features guys !

    #8829

    Olivier
    Moderator
    • 1751 Posts
    @themosaurusrex
    Themosaurus Support

    Hi @billdjango,

    Thank you for your great feedback. 🙏
    It would be indeed very nice to let users browse through random members or to be able to set the sorting order via a theme option.

    So, we will implement this feature if other community members upvote this request. Others have requested improvements of our Member Swap page. This request could be included in our task list if it becomes popular.

    We’ll keep you informed. Thank you very much for contributing to Gwangi!

    Cheers,

    #8840

    LALLEMAND
    Participant
    • 26 Posts
    @icharme

    ok for me

    #10288

    Gilles Deron
    Participant
    • 66 Posts
    @gillesderon

    Seems very interesting.

    I vote for this feature 🙂

    Cheers

    #12976

    Dominik
    Participant
    • 36 Posts
    @dominik

    Yes i really need that function too.

    But only for members swap.

    If anybody needs a random order at the members directory then use this code an put it to your bp-custom.php file:

    add_filter (‘bp_user_query_uid_clauses’, ‘random_order’, 10, 2);
    function random_order ($sql, $object)
    {
    $request = bps_get_request (‘search’);

    if (count ($request) > 1)
    $sql[‘orderby’] = ‘ORDER BY rand()’;

    return $sql;
    }

    (found at dontdream.it – creator of BP Profile Search )

    #12999

    Olivier
    Moderator
    • 1751 Posts
    @themosaurusrex
    Themosaurus Support

    Hi @dominik,

    Thank you for supporting this request! Thank you also for sharing this bit of code with the rest of us! That very kind of yours! #SharingIsCaring

    We’re working on refactoring and improving the Member Swap pages. No release date can be disclosed yet as we’re currently facing a shortage on staff with current COVID-19 sanitary lockdown and running late with development tasks.

    You can rest assured that this will be back on track as soon as we’re fully operational again!

    We’ll keep you updated.

    Best,

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

You must be logged in to reply to this topic.