MyBB Community Forums

Full Version: Weird question about registering
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

I was wondering about if I can 'create' a link for some 'special' users.

I'm meaning: A register-link, that I can give to people, and when they register via that link, they are automatically placed in group 'special' (for example).

So only via that link, registering with the forum's link should be stay like it is.

Is that possible? Could someone create some plugin etc. for me?

Thanks.

Ow also this: When they have registered, they may online see ONE 'big' forum. (For example: special). (Also the other features, like member viewing etc. they may only view members from that forum). So: ONLY things related to their forum, not to others... if you understand me.

My forum is devided into 3 pieces... So it would be fantastic if that's possible !!!!!!
well the easiest thing to do , is make a copy of member.php ,

inside it search for.

if($mybb->settings['regtype'] == "verify" || $mybb->settings['regtype'] == "admin")
	{
		$usergroup = 5;
	}
	else
	{
		$usergroup = 2;
	}

make the usergroup as the one u want, so u will have to make a new group, make special permissions for the, and then put its gid in this code.

regards
Which usergroup should I edit, there are 2 of them.

Also, which link should I give them than?
EDIT: Where do I find the group id :s
well put them both , we dont want to make long modification!

and u give the the link with the new file name
http://ursite.net/member2.php?action=register

regards


the usergourp id can be found in the db under mybb_usergroups > GID

regards
mybb_usergroups` VALUES (9, 2

It it now 9 or 2?
it's 9 Smile the gid

regards
Weird, it doesn't workSad

A registration comes into the 'registered'-group
umm
alright

find

"email" => addslashes($email),
			"usergroup" => $usergroup,

replace it by

"email" => addslashes($email),
			"usergroup" => "9",


and make sure u are using the new file
regards
It still puts the users in 'registered'.
Pages: 1 2