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\
I have this installed and an excellent product and exactly what I need, but for the life of me I can't get it to do what I want it to.
I want it so that the form is available to be viewed and completed by members, but those members not having permission to edit, add, update, install .xml etc, like admins can do. I've tried all different settings in options and I either get it that I can see all options as a member or none at all including not being able to see the form.
Can anyone please help if this is possible and if so what is the right settings?
Thank you..
Can View Form List: Everyone
Can Edit Forms: Administrators
Can View Forms: Everyone
When selecting usergroups, it is the highlighted ones which you will be enabling the feature for. use ctrl to select more than one usergroup.
Ok, thanks for the code to add secondry usergroup, it works well. However, how do you make ti that the submitter of the form is added, rather than a numbered user. For example, you wrote
PHP Code:
/*alter this userid*/ $a_userid = 2; $userinfo = fetch_userinfo($a_userid); if (empty($user['membergroupids'])) {
I tried adding {userid} but that didnt work. That was a bad guess, its not php :P
What would you put to fetch the id of the person who filled in the form?
Ok, thanks for the code to add secondry usergroup, it works well. However, how do you make ti that the submitter of the form is added, rather than a numbered user. For example, you wrote
[PHP.../PHP]
I tried adding {userid} but that didnt work. That was a bad guess, its not php :P
What would you put to fetch the id of the person who filled in the form?
Use this:
Form Hook: Before Submit
PHP Code:
if ($complete) { $userinfo = $vbulletin->userinfo; if (empty($userinfo['membergroupids'])) { /*alter this number below*/ $user['membergroupids'] = '4'; } else { /*alter this number below, but leave the comma*/ $user['membergroupids'] .= ',4'; } $userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD); $userdata->set_existing($userinfo); $userdata->set('membergroupids', $user['membergroupids']); $vbulletin->userinfo['membergroupids'] = $user['membergroupids']; $userdata->save(); }