2006-12-07, 08:51 AM
2006-12-07, 09:33 AM
You can use usergroups for that purpose: http://community.mybboard.net/showthread.php?tid=6297
2006-12-07, 01:51 PM
So i have to add this code in the global.php?
And i did not understand this part where do i have to put this code?
PHP Code:
## Update Usergroup ##
// Usergroup-ID Group 1 (old group)
$gid1 = "2";
// Usergroup-ID Group 2 (new group)
$gid2 = "4";
// Minimal number of posts
$minposts = "5";
// Update user
if ($mybb->user['postnum'] == $minposts)
{
// Update usergroup
$update_group = $db->query("UPDATE ".TABLE_PREFIX."users SET usergroup = '".$gid2."', displaygroup = '".$gid2."' WHERE uid = '".$mybb->user['uid']."' AND usergroup = '".$gid1."'");
}
## Update Usergroup ##
And i did not understand this part where do i have to put this code?
Code:
UPDATE mybb_users SET usergroup = 'x', displaygroup = 'x' WHERE postnum >= 'y' AND usergroup = 'z'
2006-12-07, 02:39 PM
You have to run that second part using phpmyadmin........it says so in the other thread
2006-12-07, 02:49 PM
I think i better not do this cause it is abit confusing me.
2006-12-07, 05:00 PM
What I do is just create different user groups and then monitor my member's posts. If they reach a certain level, I manually upgrade them to the next usergroup. That also keeps members from spamming your board to access the next automatic level!
2006-12-09, 06:47 PM
DragonLord Wrote:I think i better not do this cause it is abit confusing me.
There a tutorial on how to run a SQL query in phpMyAdmin: here
All it does is promote the existing users who already qualify to be in the "higher" usergroup.