This topic has 10 replies, 3 voices, and was last updated 10 years by alberhd.

  • Author
  • #24785
     Mycoach
    Participant

    Hello,

    I searched on the forum and saw few topics but I didn’t find the solution about how to create a page with only members online ? I’d like to create a page (results, number of pages) with only member’s online and if possible with filters (distance, newest, active…) or a search form in member search results. Of course, I have used the buddypress widget who’s online on the sidebar but I can not see too much members and it’s not clean. Can you explain me how I can do it or if they are others solutions except a widget ? Thanks for your help.

    #25295
     alberhd
    Participant

    I’m interested on this too,thanks!

    #25322
     Catalin
    Moderator

    Hello,

    The members loop file can be found here:

    ..\themes\sweetdate\members\members-loop.php

    to be able to show only online users please take a look at this link:

    http://codex.buddypress.org/developer/loops-reference/the-members-loop/#code-examples

    the line of code that filters the online users is this:

    COPY CODE
    
    <?php if ( bp_has_members( 'type=online' ) ) : ?>
    

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #25455
     Mycoach
    Participant

    Hello,

    I read the subject, trying the code but I really don’t understand how I can create only one page with members online without changing my page with top members including search form. The best could be also to include a filter with newest or active members (online) at the bottom of this page ! Thanks

    #25456
     alberhd
    Participant

    about this,some shortcode to do a page with just the popular users?

    #25672
     Catalin
    Moderator

    Hello,

    Please make sure you have the latest version of the theme installed. You can create a page with online members by selecting the template from the page template drop down menu. Please take a look at my screenshot.

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #25692
     Mycoach
    Participant

    Hello,

    Ok, that’s great. When I edit the page,I can only see online members. I tried to put shortcode as “member carousel” but I always see only online member. Is it possible to add filter as we can see with “top members” (newest-alphabetical-active) ? Tks

    #25693
     alberhd
    Participant

    Perfect! thank you!

    #25705
     alberhd
    Participant

    i’m trying to put limitation to this page,just for users with membership,but does not work,is open all the time

    #26069
     Catalin
    Moderator

    please take a look in (Sweetdate > Members)

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #26072
     alberhd
    Participant

    Yes, I restricted the access but the page continue available for all the users.

    I already answer here: https://archived.seventhqueen.com/forums/topic/important-problem-uploading-photos

    Thank you!

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?