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.

Sorting by default

This topic is resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Gilles Deron
    Participant
    • 31 Topics
    • 97 Posts
    @gillesderon

    Hello dear Themosaurus experts,

    In this topic, I searched help to change the members directory defalut sorting to ‘Newest’.

    Olivier @themosaurusrex, kindly gave me clues, but I do not have the desired effect.
    I changed the code of members-loop.php in Legacy and Nouveau:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    to
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&type=newest' ) ) : ?>.
    But the sorting by default is always on last active…

    Could you help me with this?

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @gillesderon,

    When you say:

    I changed the code of members-loop.php in Legacy and Nouveau

    Did you change this inside BuddyPress code? Did you write an additional code snippet? Did you add custom code to your child theme?

    Thank you.

    Gilles Deron
    Participant
    • 31 Topics
    • 97 Posts
    @gillesderon

    Hi Olivier,

    I change the code in the Buddypress files.

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @gillesderon,

    Ok, I hope it’s only for testing purposes. Otherwise, it’s considered bad practice as your changes will be erased with the next updates. ?

    To add this code snippet to your site, we always recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    Furthermore, I add to place your code using the following BP filter: bp_ajax_querystring
    For more, please read the following post:

    bp_ajax_querystring()

    If your code doesn’t apply, it’s probably due to another function added to that filter and taking priority over yours. So, you could consider applying your new function with the lowest priority possible, to make sure is triggered last. Something like a 9999 priority should work.

    I hope this will help.

    Please don’t hesitate to try to reach the BuddyPress authors also. They will be more informed and better suited to help you.

    You can post also your request on their support forums:
    https://buddypress.org/support/

    We remain available for all support requests related with the use of your theme.

    Best,

    Gilles Deron
    Participant
    • 31 Topics
    • 97 Posts
    @gillesderon

    Hi Olivier @themosaurusrex,

    Of course, it was for testing. My question is : is the change I made correct?

    And the problem with Buddypress support is they do not answer….

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @gillesderon,

    We’re sorry about that. Unfortunately, we cannot provide answer all questions related with BuddyPress as it is outside the scope of the support we will provide for our theme and plugins.

    In any case, adding your snippet with the suggested plugin to the suggest filter should do the trick. ?
    Playing with the priorities for your function should ensure that your code will be executed after any code from a third party plugin or our theme.

    Cheers,

Roboraptor 🦖
Themosaurus Topic Closer

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

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

The topic ‘Sorting by default’ is closed to new replies.

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.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site