The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi,
Anyone have an idea on how can I automatically set to promote users when his/her thread count on a certain section has been reached? vBulletin only allows promotion based on post count. Thanks |
#2
|
||||
|
||||
![]()
Create a PHP function that will basically
SELECT user.userid AS userid, count(thread.*) AS numthreads FROM user, thread WHERE user.userid=thread.postuserid AND NOT FIND_IN_SET($usergroupid, user.membergroupids) AND user.usergroupid!=$usergroupid AND numthreads>=$numthreads Then with the result set, do your promotion stuff. This probably is not the EXACT MySQL you'd use, but it should get you started. When all is said and done, save it into your cron folder, and set a cron job. ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|