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

XF 1.4 Trophy points not getting added

Discussion in 'XenForo Questions and Support' started by Pavan, Mar 9, 2015.

  1. Pavan

    Pavan New Member

    Hi All

    It seems the trophy points are not getting updated. I have manually run the cron. It says successfull. Yet, I see points not getting updated. I have set trophy points of 5 on getting like on user post.

    can you guide me here ?

    Xenforo version: 1.4.1
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Note the restrictions on user matching for the trophy cron:

    library/XenForo/CronEntry/Trophy.php

    Code:
    		$users = $userModel->getUsers(array(
    			'user_state' => 'valid',
    			'is_banned' => 0,
    			'last_activity' => array('>', XenForo_Application::$time - 2 * 3600)
    		), array(
    			'join' => XenForo_Model_User::FETCH_USER_FULL
    		));
    
    It processes valid users (not moderated or awaiting email confirmation) who are not banned who have been active within the last 2 hours.
     
  3. Pavan

    Pavan New Member

    @Jake Bunce Ok that means the trophy points get updated for users who were active in last 2 hours. How do i update trophy points for all existing users. Trophy points seems to be wrong . E.g. User has 8 Likes (40 points) yet those are not considered.

    1. How do i manually update the trophy points for all users ?
    2. Once update is done, what should be my next step ( Will cron do things automatically ? Because i dont see points updates for most users) . ?
    3. How do i validate if cron is running ? ( Even though in xenforo it says successfull ) ?

    Thank you for your reply. Your guidance is much appreciated.

    Regards,
    Pavan
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I have replied to your ticket but just to reiterate, to award them to all members, you can run the Rebuild Trophies task in the ACP -> Tools -> Rebuild Caches
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page