WordPress LMS for Web and mobile Forums Ionic App Support I Want to Change my app homepage

I Want to Change my app homepage

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #20084

    Manovee
    Participant

    Hi,

    In my homepage i removed popular and featured courses. Instead of that I want to display my courses which is showing in My profile tab. Like the below screenshot

    http://prntscr.com/mkw4bf

    Please help me how to do this.

    #20090

    Scott Lang
    Keymaster

    Hi,

    My courses are coming from profile  page.html -> id(mycourses)

    page->profilepgage.ts->onslidechange()

    sevices->user.ts->getProfileTab()            : use for api hit

    You can

    Api example: http://192.168.31.20/wordpressnew/wp-json/wplms/v1/user/profile/?tab=courses&per_page=5&paged=1

    GET

    Header:   Authorization: uFwru^4k1)bFD0tjmVcK()[email protected])wjI6M#

     

     

     

    #20113

    Manovee
    Participant

    Could you please explain step by step..

    #20456

    Manovee
    Participant

    Hi,

    I am waiting for your response…

    #20461

    Scott Lang
    Keymaster

    Hi,

    You can use this function to get profile tabs   http://prntscr.com/mo61u9

    sevices->user.ts->getProfileTab(user_id,profile_tab_name,false)  

    User id you can get from authorization token and profile tab is ‘course’

     

    Api example: http://192.168.31.20/wordpressnew/wp-json/wplms/v1/user/profile/?tab=courses&per_page=5&paged=1

    GET request

    Header:   Authorization: uFwru^4k1)bFD0tjmVcK()[email protected])wjI6M#

     

    After getting data you can do whatever you want.

    For Api hit you can use postman app : https://www.getpostman.com/

    #20548

    Manovee
    Participant
    This reply has been marked as private.
    #20887

    Scott Lang
    Keymaster

    You can find to click that link , refer this : http://prntscr.com/mqrz08

     

    function  getProfileTab   ‘s    return _value  using as profile  page to show data ..

    from here

    My courses are coming from profile  page.html -> id(mycourses)

    page->profilepgage.ts->onslidechange()

    #20888

    Scott Lang
    Keymaster

    You have to see code from  profile.html  and profile.ts

    which they are using service function of  user.ts -> getprofiletab()

    #20901

    Manovee
    Participant
    This reply has been marked as private.
    #20905

    Scott Lang
    Keymaster

    Here : http://prntscr.com/mqtc7w

    It will trigger this api : http://prntscr.com/mqtcl6

    #20919

    Manovee
    Participant

    Thanks scott…

    I have one last doubt.

    where to replace from user.ts (Header:  Authorization)

    #20926

    Scott Lang
    Keymaster

    You do not have to add any authorization key , It works only when user is logged_in
    Refer this : http://prntscr.com/mqtpu8

    You have just to use this code after login .

    After login this function will work, for specific user ,
    It will detect user_id at server side by using ‘Authorization’ header key which we have send from this function
    as api hit.

    #20939

    Manovee
    Participant
    This reply has been marked as private.
    #20942

    Manovee
    Participant
    This reply has been marked as private.
    #21428

    Alex
    Keymaster

    Well these errors are related to typescript version conflict .

    To resolve please try : https://wplms.io/forums/topic/app-install-documentation/#post-20450

     

    #21434

    Manovee
    Participant
    This reply has been marked as private.
    #22322

    Manovee
    Participant

    I am waiting for your response

    #22332

    Scott Lang
    Keymaster

    Sorry we are not able accept custom request. But We can guide you for this thing.

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.