• Resolved magicwand

    (@magicwand)


    I’ve added a new ‘category’ of Achievements: Awards. Once I’ve added the Awards, they appear correctly on the User’s Profile page. However, I’d like to change the order in which they appear on the User Profile.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @magicwand !!

    I just ran a test on my WordPress and it does change the order of the achievements in the user’s profile.

    You have to configure it from GamiPress-> Settings-> Add-ons-> Ultimate Member-> Achievements and modify the “order” and “order by”
    https://imgur.com/uq0pWei

    Thread Starter magicwand

    (@magicwand)

    Hi @pacogon

    That section orders the Achievements in “Achievements Tab Display Options”; this is not the section I’m referring to.

    I’m using “Where Place User Achievements?” setting: “At top (before username)” https://cln.sh/S29ucD

    I want to arrange the order of Achievements here: https://cln.sh/OTZPy8

    gamipress-ultimate-member-integration/includes/ultimate-member-profile.php
    Line 352, Section ‘Achievements’, this foreach() loop does not have the option for sorting

    Hi @magicwand !!

    For achievements placed at top you can only order the types, but not the achievements for each type, since there are no options to change the order of the achievements of each type.

    To reorder the types, you only need to drag and drop the types options (where you enable/disable the options to display).

    Hope it helps!

    Thread Starter magicwand

    (@magicwand)

    Hi @pacogon

    My question is not about ordering the types, it is specifically about ordering the achievements for each type as each achievement has a ‘priority’ that I must use.

    Is it not possible to use an “asort” function before the foreach() loop?

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @magicwand

    I’m sorry but as @pacogon mentions, actually there are settings to order by type but not to order the achievements in the top area.

    We will have this in mind for future updates for this add-on, but actually there is no way.

    Best regards

    Thread Starter magicwand

    (@magicwand)

    Thanks @rubengc

    I’ll need to find a workaround then.

    I take it that the ordering of the items would take place in function gamipress_get_user_achievements in gamipress/includes/users.php?

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @magicwand

    I will better recommend to override the function from Ultimate Member since you can remove the action and add you own again

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ordering Achievements’ is closed to new replies.