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

Trophy is not issuing to all people

Discussion in 'XenForo Questions and Support' started by kingston, Jan 1, 2011.

  1. kingston

    kingston Well-Known Member

    I have people who are not getting issued a trophy the deserve. From preliminary tests it seems to affect those that have been registered for more than a year (but don't let this notion cloud thinking).

    Any ideas?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. kingston

    kingston Well-Known Member

    It is affecting users who are recently active. :/
     
  4. Mike

    Mike XenForo Developer Staff Member

    "Recently" active would refer to active in the last 24 hours.
     
    Darkimmortal likes this.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    If they are recently active then it should update their trophy points if you run that cron:

    Admin CP -> Tools -> Cron Entries -> Update User Trophies
     
  6. kingston

    kingston Well-Known Member

    Yeah I have been. I did transfer my database from vB4. The registration dates of people having trouble seem to be from Dec 2009...
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The cron also excludes users who are banned or awaiting moderation or email confirmation:

    library/XenForo/CronEntry/Trophy.php

    Code:
    		$users = $userModel->getUsers(array(
    			'user_state' => 'valid',
    			'is_banned' => 0,
    			'last_activity' => array('>', XenForo_Application::$time - 86400)
    
    If that doesn't explain your problem then I can take a look if you want to give me access to your forum and database.
     
  8. kingston

    kingston Well-Known Member

    If you wouldn't mind I could use some help.
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Sure. Send me a personal conversation with your info. I will take a look.
     
  10. kingston

    kingston Well-Known Member

    Thanks for your help today!
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Did you manage to get it sorted?
    Can you post what the issue was for future reference?
     
  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It was the user activity dates. The problem users had not been active within the last 24 hours so the cron wasn't processing them.
     
    Brogan likes this.

Share This Page