Quote:
Originally Posted by amykhar
what do mean by moderated public group? A group where the leader must approve the members? This mod is not intended to work with such groups.
|
I'm also getting a parse error when I activate the account of the registered user. It seems that a lot of people are getting the same thing when using this hack. I read that Paul was having similar problems and Amy, you fixed it...But that was in the secondary one. Is there anything I can do to fix mine because it seems to be a similar problem that I am having. Cheers.
btw, I have checked all the userids and options of the custom field. I am using custom groups which are not public and emails must be verified by users. Here is the php code from the plugin...
Code:
Plugin PHP Code
// Get the value for field 5
$user = $db->query_first("
SELECT field5
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field5'] == 'Year 9')
{
$userdata->set('usergroupid', 9);
if ($user['field5'] == 'Year 10')
{
$userdata->set('usergroupid', 10);
if ($user['field5'] == 'Year 11')
{
$userdata->set('usergroupid', 11);
if ($user['field5'] == 'Year 12')
{
$userdata->set('usergroupid', 12);
}