The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Easy Forms v4.x - Create a form or multiple forms without php or html knowledge Details »» | |||||||||||||||||||||||||||||
Easy Forms v4.x - Create a form or multiple forms without php or html knowledge
Developer Last Online: Nov 2023
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
Download Now
Show Your Support
|
19 благодарности(ей) от: | ||
Alex@bulletin, Baja, Bannec, beduino, Black Snow, Cadellin, CvP, Daniel, eviljoker7075, imported_polygrinder, Karma, Life Revived, line89, madness85, Mastar, Master Of Unive, pandaplush, pcmwebmaster, SaN-DeeP |
Comments |
#462
|
|||
|
|||
Quote:
|
#463
|
||||
|
||||
Suggestion: Change phrase
Quote:
Quote:
If a user has exceeded the limit for number of times he can submit the form, redirect him immediately to the edit form. |
#464
|
||||
|
||||
Bugs:
|
#465
|
||||
|
||||
Quote:
1. Replace in plugin Easy Forms Part 1 Code:
if ($form[submitlimitperuser] >= 1) Code:
if (!$formresult && $form[submitlimitperuser] >= 1) 2. In same plugin in the area after Code:
if ($_POST['do'] == 'postform') Code:
if ($count >= $form[submitlimitperuser]) Code:
if ($count > $form[submitlimitperuser]) |
#466
|
||||
|
||||
Bug: Poll displays free text entries
Solution: Replace in plugin Easy Forms Part 3 short after Code:
if ($_REQUEST['do'] == 'formresults_poll') { Code:
$formbits = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "formbits WHERE fid = $fid AND type != 7 ORDER BY displayorder ASC"); Code:
$formbits = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "formbits WHERE fid = $fid AND type NOT IN (1,6,7,8,9) ORDER BY displayorder ASC"); |
#467
|
||||
|
||||
Quote:
(This messes lots of things up in your database as userid 123 will have an effect on userid 12345). It is better to get the userids from a simple SELECT query of forumresults table. Replace in plugin Easy Forms Part 2 Code:
if ($_REQUEST['do'] == 'deleteformresult') { $caneditform = unserialize($vbulletin->options['caneditform']); if ($caneditform && !is_member_of($vbulletin->userinfo, $caneditform)) { print_no_permission(); } $id = $vbulletin->input->clean_gpc('g', 'id', TYPE_UINT); $fid = $vbulletin->input->clean_gpc('g', 'fid', TYPE_UINT); $db->query_write("DELETE FROM " . TABLE_PREFIX . "formresults WHERE id=$id"); $db->query_write("UPDATE " . TABLE_PREFIX . "forms SET userids = REPLACE(userids,\"," . $vbulletin->userinfo[userid] . "\",\"\") WHERE fid=$fid"); $vbulletin->url = "misc.php?do=forms"; eval(print_standard_redirect('redirect_deleteq')); } Code:
if ($_REQUEST['do'] == 'deleteformresult') { $caneditform = unserialize($vbulletin->options['caneditform']); if ($caneditform && !is_member_of($vbulletin->userinfo, $caneditform)) { print_no_permission(); } $id = $vbulletin->input->clean_gpc('g', 'id', TYPE_UINT); $fid = $vbulletin->input->clean_gpc('g', 'fid', TYPE_UINT); $db->query_write("DELETE FROM " . TABLE_PREFIX . "formresults WHERE id=$id"); $db->query_write("UPDATE " . TABLE_PREFIX . "forms SET userids = REPLACE(userids,\"," . $vbulletin->userinfo[userid] . "\",\"\") WHERE fid=$fid"); $vbulletin->url = "misc.php?do=forms"; eval(print_standard_redirect('redirect_deleteq')); } |
#468
|
||||
|
||||
To have my users automatically redirect to the form results page where they can edit their entries if they exceeded their maximum entries, I use this code in plugin Easy Forums Part 1
Code:
if (!$formresult && $form[submitlimitperuser] >= 1)
{
$userids = $form[userids];
$userid = $vbulletin->userinfo[userid];
$count = substr_count(",$userids,", ",$userid,");
if ($count >= $form[submitlimitperuser])
{
$vbulletin->url = "misc.php?do=formresults&fid=" . $fid;
eval(print_standard_redirect('redirect_deleteq'));
//$errormessage = "Error, you have exceeded limit for number of times this form can be submitted.";
//eval(standard_error($errormessage));
}
}
Code:
$id = $db->query_first("SELECT id FROM " . TABLE_PREFIX . "formresults WHERE fid = '$fid' AND userid = " . $vbulletin->userinfo[userid] . ""); $vbulletin->url = "misc.php?do=editformresult&id=" . $id[id] . "&fid=" . $fid; eval(print_standard_redirect('redirect_deleteq')); |
#469
|
||||
|
||||
This is about the database "review" model where users are allowed to give an entry once (limit: 1).
Users are allowed to see the poll results from all users. However, for Privacy Reasons users can only see their own entries on form results table: In plugin Easy Forms Part 3 replace Code:
$formresults = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE fid = '$fid' $search AND userid=" . $vbulletin->userinfo[userid] . " ORDER BY time DESC"); Code:
$formresults = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE fid = '$fid' $search AND userid=" . $vbulletin->userinfo[userid] . " ORDER BY time DESC"); |
#470
|
||||
|
||||
After user has completed the entry successfully, he is redirected to the statistic page:
Replace in plugin Easy Forms Part 1 Code:
if ($complete && $show['editing'])
{
$sdata = serialize($qo);
$db->query_write("
UPDATE " . TABLE_PREFIX . "formresults
SET
title = '".$db->escape_string($threadtitle)."',
output = '".$db->escape_string($formoutput)."',
sdata = '".$db->escape_string($sdata)."'
WHERE
fid = '".$fid."' AND
id = '".$show['edit_id']."'
");
$errormessage = "Form Result was successfully updated.";
$vbulletin->url = $vbulletin->options['bburl'] . "/misc.php?do=formresults&fid=$fid";
eval(print_standard_redirect($errormessage, false, true));
}
Code:
if ($complete && $show['editing'])
{
$sdata = serialize($qo);
$db->query_write("
UPDATE " . TABLE_PREFIX . "formresults
SET
title = '".$db->escape_string($threadtitle)."',
output = '".$db->escape_string($formoutput)."',
sdata = '".$db->escape_string($sdata)."'
WHERE
fid = '".$fid."' AND
id = '".$show['edit_id']."'
");
$errormessage = "Form Result was successfully updated.";
$vbulletin->url = $vbulletin->options['bburl'] . "/misc.php?do=formresults_poll&fid=$fid";
eval(print_standard_redirect($errormessage, false, true));
}
|
#471
|
||||
|
||||
I love this product! Therefore I took some time to look into it and I have some suggestions for its database structure
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|