![]() |
post count and user group
Sorry if this already exists, but i'm looking for a hack for vbulletin 2.2.9 that will change a user's post count automatically when he reaches a certain post count.
Thanks. |
if ($post[posts] >= 300) {
$DB_site->query("UPDATE user SET posts='XXXX' WHERE userid='$post[userid]'"); } something like that? |
ok, where does that go? I am very new to Vbulletin and hacking it (2 days) .
|
hmm, put that before the ending ?> tag in global.php:
PHP Code:
|
that's it? then it'll all work out?
How do I find a groupid? |
yes that's it :)
by highlighting the edit group link in the acp you can see it :) |
dude, arggg, okay, i'm an idiot, explain it to me like I am retarded, because I really have no idea what I should change in what you gave me.
|
i don't know the usergroupids of your board....
you have to find out yourself which usergroupid the new usergoup has. if it's the first custom group it would be 8 or 9 depending if there's the banning group already.. |
I want it so that if the number of posts a user has 5 or more posts then he assigned to groupid 8 .
|
PHP Code:
|
All times are GMT. The time now is 11:17 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:
|