![]() |
Lil Request...
I want to be able to run a query to update all users who have more than "x" posts into a new usergroup... then i want to add a script to a page somewhere so that if a user reaches "X" amount of posts then they're automatically upgraded to the usergroup...
Thanks in Advance - miSt |
[sql]UPDATE user SET usergroupid=y WHERE usergroupid=2 AND posts>x[/sql]
scriptquestion: well normally you should add this to newreply.php and newthread.php look for the code line where the user postcounter is increased and add usergroupid=y to it if $bbuserinfo[usergroupid]==2. |
two more questions...
is greater than and equal to allowed in sql queries? Would it look like this: [sql] UPDATE user SET usergroupid=y WHERE usergroupid=2 AND posts>=x[/sql] Second thing... could you give me some more advanced steps as to what to change in newreply.php and newthread.php :) Kindest Regards - miSt |
first:
yes is allowed :) second: in newreply for example find this: PHP Code:
PHP Code:
|
thanks xenon ^... ill give it a try..
- miSt |
that should work i requested that too :D
|
All times are GMT. The time now is 07:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|