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\
..Or am I missing the point of this mod - apologies if I am...
I'm trying to create a 'contact us' form.
ie If a 'non' admin wants to email, there is a contact form with a prescribed layout with mandatory fields for them to complete.
I don't want anyone (except me) to be able to create or edit forms...
Also, if someone clicks on the 'Forms' tab (shown in pics) then I just want them to be presented with the 'Contact Us' form...
I have attached a couple of pics - of the settings I have selected for Easyforms - and also the resulting look when I'm signed in as an 'admin'
(If I don't sign in as an admin - I see the 'no forms' message).
Hopefully I am doing something pretty basic wrong - or maybe I'm jumping the gun 'cos I know this is still 'beta' - If someone can let me know I'd appreciate it.
Give registered users permission to 'View Forms List'
Quote:
Originally Posted by Cleveregg
..Or am I missing the point of this mod - apologies if I am...
I'm trying to create a 'contact us' form.
ie If a 'non' admin wants to email, there is a contact form with a prescribed layout with mandatory fields for them to complete.
I don't want anyone (except me) to be able to create or edit forms...
Also, if someone clicks on the 'Forms' tab (shown in pics) then I just want them to be presented with the 'Contact Us' form...
I have attached a couple of pics - of the settings I have selected for Easyforms - and also the resulting look when I'm signed in as an 'admin'
(If I don't sign in as an admin - I see the 'no forms' message).
Hopefully I am doing something pretty basic wrong - or maybe I'm jumping the gun 'cos I know this is still 'beta' - If someone can let me know I'd appreciate it.
The problem is there is so much to learn and read with 4.0 suite. It would really be helpful for a small doc file explaining each feature.
Here is part of the old help file, it may be useful for you.
Editing Form
Are all fields compulsory?
No, only the questions proceeded by a * are compulsory. What does each field do?
Title: This is the title at the top of the page when viewing the form. BB code allowed.
Description: (optional) This is displayed at the top of the form. It can be used to explain the form's purpose, give guidance, etc... BB code allowed.
Display Order: This controls the order the form is displayed in the form list. The higher the number (in comparison to other forms) the lower down the form list the form will be displayed.
Usergroups: (optional) This controls the usergroups allowed to view the form - this does not override permissions to view forms. Blank is all usergroups allowed.
Form Submit Message: (optional) This is the message display once the form has been submitted succesfully. If blank default will be used. This is also the redirect message (if checked)
Thread/ PM/ Email Title: (optional) This allowed you to use a different title for the thread/ pm/ email being created than the form title. If left blank then the Thread/ PM title will be the same as the form title. You can use the following macroses in the title: {username}, {userid} and {q_*}.
Category: (optional) All forms with the eaxct same category name will be grouped together in the form list under that name.
Allow attachments: (optional) Only avaliable for form creating new thread. Checked/ticked = yes, blank = no. Follows user's attachment rules.
Post a Poll: (optional) Creates a poll with the thread.
Allow multiple choice: (optional) Allows users to select more than one option when voting. Checked/ticked = yes, blank = no.
Make votes public: (optional) Usernames will be shown next to each poll option. Checked/ticked = yes, blank = no.
Poll Question: (optional) The question above the poll. If left blank the thread title will be used.
Poll Options: These are the choices in the poll. Separate each option with a new-line (carriage return).
Custom Form Output: (optional) You can create your own layout to the thread/ pm/ post/ email the form created. Allowed: BB code, $q[1] (replace 1 with the correct question #), $qn[1], $threadtitle, $form[title], {username}, $thisuser[username] (replace username with any user field). Leave blank to use default layout.
Question BBcode: (optional) Customise how the form's questions look in the thread/ pm/ post created by the form. Opening BB code in the box on the left and closing BB code in the box on the right.
Answer BBcode: (optional) Customise how the form's answers look in the thread/ pm/ post created by the form. Opening BB code in the box on the left and closing BB code in the box on the right.
Section BBcode: (optional) Customise how the form's sections look in the post created by the form. Opening BB code in the box on the left and closing BB code in the box on the right.
Form BBcode: (optional) The code in the left box goes after the form title and the code in the box on the right goes at the end of the post.
Form Hook: (optional) This allows php code to be executed before the form is submitted. You can run your own validation on fields, for example checking the user clicks 'Yes' on a yes/no question.
Macroses
What are macroses?
Macroses are variables used in easy forms for replacement with their value. What macroses are there?
{username} username of the user submitting the form
{userid} userid of the user submitting the form
{formtitle} form title of the form being submitted
{threadtitle} thread/pm/email title of the form being submitted (if it is blank it be the same as the form title)
{q_*} replace the question id with the *, for example to show question 1's output you would use {q_1}
{qn_*} replace the question id with the *, for example to show question 1's question text you would use {qn_1}
I am trying to get this to email to a form question. We have a drop down with email address, I need the form to be emailed to the selection on that drop down. Can you please help?
How can I have a question which uses a query?
The following example gets a list of threads in the forumid 10.
1. Create 'Custom' question
2. Use following php Code:
PHP Code:
$answer = '<select name="'.$formbit[id].'">';
$answer .= '<option></option>';
$thisanswer = $q[$formbit[id]];
$threads = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread
WHERE forumid = '10'
ORDER BY title ASC");
while($row = $db->fetch_array($threads)) {
$answer .= '<option value="'.$row[threadid].'"';
if ($row[threadid] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[title].'</option>';
}
$answer .= '</select>';
Alright, now that is impressive! Can you tell me the code I would need to do a query on the profilefields (i.e. field8)? I'd like to pull that field and then just have it added to the form without the user having to enter it again.