Leaderboard according batches

Home Forums WPLMS AddOns WPLMS Batches Leaderboard according batches

Viewing 15 posts - 46 through 60 (of 88 total)
  • Author
    Posts
  • #238917
    Scott Lang
    Moderator
    Also, you don't need to create File Api.php > connect database > fetch members; Please refer to our code which we have written.
    #238946
    ratlsadmin
    Spectator
    Hi Scott, I understand that you have updated the API code I just want to understand how will I be able to sort the users according to their current marks/points. Earlier I was able to get the data the problem was the sorting, but thank you for improving the code, I only need the sorting part done now and everything else is set. Thank you.
    #238960
    Scott Lang
    Moderator
    Can you tell me which are the actual points for the particular user then we will sort it? If possible share a screenshot or something else. The issue we get only: We are unable to determine which is the actual point for user.  
    #238968
    ratlsadmin
    Spectator
    This reply has been marked as private.
    #238975
    Scott Lang
    Moderator
    We have sorted the array please check again api hit . We have commented the some API data.You can enable if need . refer this:http://prntscr.com/qlsxlp
    #238980
    ratlsadmin
    Spectator
    This reply has been marked as private.
    #238985
    Scott Lang
    Moderator
    you just need to pass batch_id and get students sorted by my_cred_balance.
    #238987
    ratlsadmin
    Spectator
    Hi Scott, Thank you so much for the help Scott.
    #239121
    ratlsadmin
    Spectator
    This reply has been marked as private.
    #239182
    Scott Lang
    Moderator
    Yes you can do anything . You can fetch details for all bach_members or fetch only single user data. just you have to use specific part of your code . In your  API: We first fetch batch members then for fetch data for single members . Just you have to manipulate with the code in php or reuse some part. Please read the API function.
    #239186
    ratlsadmin
    Spectator
    This reply has been marked as private.
    #239265
    Scott Lang
    Moderator
    We have created different API for batch_id and user_id, Batch_id:  http://prntscr.com/qnd5gz    js code:https://ctxt.io/2/AABANsptFA user_id: http://prntscr.com/qnd5y1    js code :https://ctxt.io/2/AABAGk9jEQ Wplms app uses javascript. You can javascript the fetch method.  
    #239271
    ratlsadmin
    Spectator
    This reply has been marked as private.
    #239293
    Scott Lang
    Moderator
    In-App src/services/group.ts file you will get each API hit for the batch page like this Please read the code which use to make API hit in angular js. Also, you can see inspect>network for batch/group API hit  
    #239363
    ratlsadmin
    Spectator
    This reply has been marked as private.
Viewing 15 posts - 46 through 60 (of 88 total)
  • The topic ‘Leaderboard according batches’ is closed to new replies.