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

User group promotion for many users

Discussion in 'General XenForo Discussion and Feedback' started by Fredjo, Mar 6, 2013.

  1. Fredjo

    Fredjo Active Member

    Hello Community !

    I just imported a list of users and I'd want to put them in a new usergroup I just created.
    It seems I can only give them another usergroup one by one.. same goes for usergroup promotion..

    I tried to make a usergroup promotion to every user with a valid status.
    Then, went to Cron Entries and ran the user group promotion manually.

    It don't seems to work.
    Anything I have missed ? :)

    Thanks a lot in advance,

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Promotions are run hourly. You may wish to manually run the cron after creating the promotion:

    Admin CP -> Tools -> Cron Entries -> User Group Promotions -> Controls: Run

    And even if you manually run the cron it only processes users who have been active in the last 3 days. If you want to process all users regardless of activity then you need to use this updated version of the cron:


    That will allow you to remove 'last_activity' => array('>', XenForo_Application::$time - 86400 * 3) from the file to process all users without memory problems.
    Fredjo likes this.
  3. Fredjo

    Fredjo Active Member

    Thanks Jake.

    I'll give it a go tonigh, can't use FTP from here.

    I didn't seem to have memory issue though, when I ran the Cron entry manually it was very fast.
    I'll let you know.

    Thanks a lot for your help !

  4. The Dark Wizard

    The Dark Wizard Well-Known Member

    This does not work for me, it always only does about 100ish even tohugh I have 1511 members, once it does 100 running it each time brings me instantly to the "Cron ran successfully" message.

    I have to delete all the promotions to be able to have it process again, the numbers it does before it stops varies each time, most of the people logged in don't even have it.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Maybe this then:


    If the users were previously promoted then they will not be promoted again. If this situation has occurred then you can run those queries to allow all users to be promoted again.
  6. The Dark Wizard

    The Dark Wizard Well-Known Member


    I've noticed though that it took a while to finish everyone but it kept going on in the server even though the web page timed out, it eventually finished. Any ideas how to make the webpage not time out?
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The Dark Wizard likes this.

Share This Page