Quote:
Originally Posted by trigon
If i activate the plugin, then this error comes: Fatal error: Call to undefined function: outgroup() in /home/********l/public_html/forum/global.php(349) : eval()'d code on line 86
If i deactivate, everything looks good.
Btw, the plugin doesnt work for me, maybe you can take a look on it:
I have three fields, one for women (written in german/turkish)
one for men, and one for "no i dont want to give this info", also in german/turkish. The only with a new usergroup is the first (groupid 20)
|
Sorry, this is my fault. In 1.04 I changed the function names but failed to update to the new names in the code that called them. Replace the 'Do the work' section with:
PHP Code:
// Do the work
// Proceed only if there is a user choice
if ($fieldval != '')
{
if($ug[0] != '')
{
$iii = 0;
// Check user choice against possible options
foreach ($choice_text as $value)
{
// If we have a match, add to usergroups
if ($fieldval == $choice_text[$iii])
{
$ugarr = IntoGroup($ugarr, $ug[$iii], $userid);
}
// If we have no match, remove from usergroups
else
{
$ugarr = OutOfGroup($ugarr, $ug[$iii], $userid);
}
$iii++;
}
}
}
I've edited all three scripts in the first and second posts in the thread with this correction.
Also note that you have a problem with the third option you entered. That should be
Code:
// THIRD radio button option
// Text shown in radio button for option
$choice_text[2] = 'keine Angabe/Bilgi yok';
// Associated usergroup number
$ug[2] = '2';