The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
[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. |
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
first:
yes is allowed second: in newreply for example find this: PHP Code:
PHP Code:
|
#5
|
||||
|
||||
thanks xenon ^... ill give it a try..
- miSt |
#6
|
|||
|
|||
that should work i requested that too
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|