1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Promotion on Profile Update 1.1.2

Faster user promotions on profile updates

  1. Xon

    Xon Well-Known Member

    RoldanLT likes this.
  2. Shiro

    Shiro Well-Known Member

    @Xon

    Does this addon perform well on larger boards?
     
  3. Xon

    Xon Well-Known Member

    Standard Xenforo behaviour is that this user promotion code runs on login.

    This add-on's shouldn't make a noticeable difference on a large forum, as it only runs after a profile update occurs (ie changing email address, custom fields). Which should be reasonably rare occurrence.

    SpaceBattles has ~1.4k members online at peak and my monitoring hasn't picked up any changes in worse-case load-times, or average load-times.
     
  4. electrogypsy

    electrogypsy Active Member

    would this work to promote a user after they upload an avatar?
     
  5. Xon

    Xon Well-Known Member

  6. Xon

    Xon Well-Known Member

  7. Sunka

    Sunka Well-Known Member

    And set signature?
    I need something that move users to verified group after they upload avatar, set signature and (if possible) write post in one thread
     
  8. Xon

    Xon Well-Known Member

    Yes, both of those cause the user record to be updated and thus this add-on will cause a user promotion occurs.
     
    eva2000 and Sunka like this.
  9. Sunka

    Sunka Well-Known Member

    Sorry, but can not find anything related to this addon in ACP. Nor for notices criteria, nor for usergroup promoting criteria.
    Any screenshot?
     
    trapped_soul likes this.
  10. Xon

    Xon Well-Known Member

    It doesn't change any UI.

    Supose you have the custom field, and a user promotion; you require something like this;

    example_without.png

    With this add-on you can instead remove the "enabled" and just match on the option not being set. ie;
    example_with.png
     
    CyclingTribe and Sunka like this.
  11. Xon

    Xon Well-Known Member

    CyclingTribe likes this.
  12. CyclingTribe

    CyclingTribe Well-Known Member

    Xon likes this.
  13. electrogypsy

    electrogypsy Active Member

    I would like to use this addon to move users to a user group when they add an avatar. My thinking is that then I could prevent posting until a user uploads an avatar.

    Since the avatar isn't a custom field, how would that work? Is there a criteria for when there is no avatar and now there is? What happens if they remove the avatar?

    Thanks!
     
  14. Xon

    Xon Well-Known Member

    @electrogypsy this add-on triggers a user promotion check when their account if modified via profile/settings and admincp. It should work as expected when the avatar changes.

    You may need extra user criteria (see the paid add-on; User Criteria by Xon) to narrow it down on the type of avatar or if they have no avatar.
     
    electrogypsy likes this.
  15. Amin Sabet

    Amin Sabet Well-Known Member

    I've been looking for this so long. Didn't know it existed.

    Note to self: read through all Xon's addons next chance I get...
     
    CyclingTribe and Xon like this.
  16. Tealk

    Tealk Active Member

    Hi,

    does it run with Notice?
    I have set up a empty row but the notice does not get shown.
    upload_2017-3-28_10-16-30.png
     
  17. Xon

    Xon Well-Known Member

    That isn't a tested scenario, especially for an empty text field.
     
  18. Tealk

    Tealk Active Member

    I thought the plugin would do just that? Check whether a field is empty.
     
  19. Xon

    Xon Well-Known Member

    It mostly does this, but the primary test cases was radio buttons, checkboxes in the context of user promotions. Different inputs and code paths may not be captured or aren't being captured correctly.

    I'll add this to the queue, but it might be a little while before I can fix this.
     
    Last edited: Mar 28, 2017

Share This Page