[Semi-Tutorial] Adding paged clan list

Results 1 to 4 of 4
  1. #1
    Moderator GigaToni is offline
    ModeratorRank
    Aug 2009 Join Date
    GER / FRLocation
    2,329Posts

    [Semi-Tutorial] Adding paged clan list

    search (2x):
    ApiClanGetLeaderboard()
    replace with (2x):
    ApiClanGetLeaderboard(int sortID, int page)
    search:
    CWOBackendReq req(&gUserProfile, "api_ClanGetInfo.aspx");
    req.AddParam("CharID", gUserProfile.ProfileData.ArmorySlots[gUserProfile.SelectedCharID].LoadoutID);
    req.AddParam("func", "lb");
    under it add this:
    req.AddParam("page", page);
    req.AddParam("sorting", sortID);
    search this:
    void FrontendWarZ::eventRequestClanList(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
    replace everything until:
    //async it
    with:
    r3d_assert(argCount == 2);

    int sortID = args[0].GetInt();
    int page = args[1].GetInt();

    gfxMovie.Invoke("_root.api.Main.Clans.clearClanInfo", 0);

    if(page == 0)
    m_currentClanPage = 0;
    else if(page == 1)
    m_currentClanPage -= 1;
    else if(page == 2)
    m_currentClanPage += 1;
    search this:
    void updateSurvivorTotalWeight(int survivor);
    under it add:
    // clan stuff
    int m_currentClanPage;
    Only ASPX & MSSQL Stuff needs to be done because I'm using PHP & MySQL.

    If you're using my PHP API replace ClanGetInfo.php with this:

    http://pastebin.com/L6kP4GYy
    Last edited by GigaToni; 30-06-14 at 01:12 AM.


  2. #2
    Account Upgraded | Title Enabled! AlexRedd is offline
    MemberRank
    Jan 2014 Join Date
    310Posts

    Re: [Semi-Tutorial] Adding paged clan list

    Please share ASPX

  3. #3
    Banned MUIT0L0K0 is offline
    BannedRank
    Jan 2014 Join Date
    Colorado V2Location
    110Posts

    Re: [Semi-Tutorial] Adding paged clan list

    Nice Very Good :)

  4. #4
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Semi-Tutorial] Adding paged clan list

    some screenshot?



Advertisement