Version: 4.3.0, by bananalive
Developer Last Online: Nov 2023
Category: New Posting Features -
Version: 4.0.x
Rating:
Released: 01-27-2010
Last Update: 10-04-2011
Installs: 1410
DB Changes Uses Plugins Auto-Templates
Additional Files Translations
No support by the author.
Easily create forms with no HTML or PHP knowledge. Questions can be made compulsory and are checked before the form is submitted. Forms can be previewed. (You can create multiple forms)
Screenshots
There are two posts full of screenshots of this modification
Upload the contents of upload folder to forum root (Allow Overwrite "YES" for overwrite) clientscript\easyforms.css -> \clientscript\
clientscript\easyforms.js -> \clientscript\
Has anyone else come across the problem with image verification? I've never seen anything about image verification in any of the forms whether I'm logged in or not!
EDIT: After adding the verification question to the form it submits ok for admins however for other users it still returns the "The string you entered for the image verification did not match what was displayed." message even when the image does match exactly.
Has anyone else come across the problem with image verification? I've never seen anything about image verification in any of the forms whether I'm logged in or not!
EDIT: After adding the verification question to the form it submits ok for admins however for other users it still returns the "The string you entered for the image verification did not match what was displayed." message even when the image does match exactly.
Fixed in attached product. This issue would only incur for guests.
Fantastic mod - this is exactly what I've been hoping for!
Two queries though:
1. Guests get the following message "The string you entered for the image verification did not match what was displayed." - however no image verification is displayed.
2. I have a lot of questions in my form so could you add the option to have horizontal scrolling of the results table?
That didn't work either. It's still removing the user from all membergroups and it didn't successfully set the user to the new displaygroup either. My goal is to have them removed only from one group (17).
Is there a way to use one of the questions as a variable for this? I'd like to enter an userID in one of the questions, let's say question 1. When I enter that userID and submit, it will specifically remove that user from group 17 and and them to 18. As well as update their displaygroup to 18.
PHP Code:
if ($complete)
{
/*replace 45 with appropriate question hash*/
$userinfo=fetch_userinfo($qo[45]);
$user=$userinfo;
/*replace 18 with choosen usergroupid you want to add them to*/
$newmembergroupid = '18';
$user['membergroupids']=explode(',',$user['membergroupids']);
foreach($user['membergroupids'] AS $mi => $mii)
{
/*replace 17 with usergroupid you want to remove them from*/
if ($mii=='17')
{
unset($user['membergroupids']['$mi']);
}
}
$display_usergroup = $newmembergroupid;
$user['membergroupids']=implode(',',$user['membergroupids']);
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle($user['customtitle'] ? $user['usertitle'] : '', false, $display_usergroup, true, true);
$userdata->save();
if ($complete)
{
/*replace 45 with appropriate question hash*/
$userinfo=fetch_userinfo($qo[45]);
$user=$userinfo;
/*replace 18 with choosen usergroupid you want to add them to*/
$newmembergroupid = '18';
$user['membergroupids']=explode(',',$user['membergroupids']);
foreach($user['membergroupids'] AS $mi => $mii)
{
/*replace 17 with usergroupid you want to remove them from*/
if ($mii=='17')
{
unset($user['membergroupids']['$mi']);
}
}
$display_usergroup = $newmembergroupid;
$user['membergroupids']=implode(',',$user['membergroupids']);
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle($user['customtitle'] ? $user['usertitle'] : '', false, $display_usergroup, true, true);
$userdata->save();
Hey Banana, I appreciate your time and effort on this. Still not working though. I did add the missing } at the end, so that wasn't my issue. Did it work for you? I changed the 45 to 1 and nothing. The form gets submitted, but the user doesn't get removed or added to anything. On a side note, don't enter anything but a number into the question you choose for this code. I tried that and WOW. The magnitude of data returned was never ending.
Hey Banana, I appreciate your time and effort on this. Still not working though. I did add the missing } at the end, so that wasn't my issue. Did it work for you? I changed the 45 to 1 and nothing. The form gets submitted, but the user doesn't get removed or added to anything. On a side note, don't enter anything but a number into the question you choose for this code. I tried that and WOW. The magnitude of data returned was never ending.
Just tested this following code, it works:
PHP Code:
if ($complete)
{
/*replace 45 with appropriate question hash*/
$userinfo=fetch_userinfo($qo[45]);
$user=$userinfo;
/*replace 18 with choosen usergroupid you want to add them to*/
$newmembergroupid = '18';
$user['membergroupids']=explode(',',$user['membergroupids']);
foreach($user['membergroupids'] AS $mi => $mii)
{
/*replace 17 with usergroupid you want to remove them from*/
if ($mii==17)
{
unset($user['membergroupids'][$mi]);
}
}
$user['membergroupids'][]=$newmembergroupid;
$display_usergroup = $newmembergroupid;
$user['membergroupids']=implode(',',$user['membergroupids']);
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle(
$userinfo['usertitle'],
true,
$vbulletin->usergroupcache["$newmembergroupid"],
false,
true
);
$userdata->save();
}
Awesome stuff Banana, I love this mod. That definitely removes the selected userid from the selected usergroup and adds them to the other one. The display title still isn't changing. Did that part work for you?
I would like to display a user profile field (field7) in the title. I tried {field7} but no such luck. Is it possible and if so do you have any suggestions?