User Group Promotions not promoting users.

WaddleJrJr

Member
I've been trying to make a User Group Promotion, but when I'm done and try to test the promotion, it does not work. Then, when I manage promoted users, I notice that not a single person got promoted. No matter what I set it to, no one seems to get promoted. Even if I put it at 'User is logged in' or 'User is a registered user' no one gets promoted. I'm not sure what's going on here. There are no errors or anything, it all saves fine.

Thanks!
 
It only processes users who have been active in the last 3 days. You can edit this file to change that:

library/XenForo/CronEntry/UserGroupPromotion.php

Remove the red:

Rich (BB code):
		$users = $userModel->getUsers(array(
			'user_state' => 'valid',
			'is_banned' => 0,
			'last_activity' => array('>', XenForo_Application::$time - 86400 * 3)
		), array(
			'join' => XenForo_Model_User::FETCH_USER_FULL
		));

If you have a lot of users to process then you might encounter memory problems in which case you can use this file:

http://xenforo.com/community/thread...cron-running-out-of-memory.31541/#post-362657
 
Removed that line of code. It didn't seem to make a difference.

Is it possible that I'm just not giving it enough time to run and promote users, or should that happen right when I save the promotion?
 
Promotions are handled by a cron that runs hourly. But you can run it manually if you don't want to wait:

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