![]() |
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:
|
thank you for helping the stupid. :D
|
:)
you're welcome :) you will get experience when you work on more. |
Hi -
I saw this thread as well and posted in this one here and I see this time its says to put it in globals. Which way will work? As you can see from the posted link above, I ran into a weird quirk. I really would love to apply this - it will simplify my life :) Thanks - |
you have to set up the permissions correctly for each new usergroup.
the thread here does exactly explain how to code it, but the perms are up to you :) |
All times are GMT. The time now is 01:53 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:
|