The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Ok there are several if/else statements & variables that contain $_POST['do'].
Code:
if ($_POST['do'] == 'updateformresult') $_POST['do'] = 'postform'; if ($_POST['do'] == 'postform') if ($_POST['do'] == 'insertform') if ($_POST['do'] == 'updateform') if ($_POST['do'] == 'insertq') if ($_POST['do'] == 'updateq') if ($_POST['do'] == 'formresults_export') if ($_POST['do'] == 'updateqorder') if ($_POST['do'] == 'importform') if ($_POST['do'] == 'addq') Code:
if (($caneditformresult && !is_member_of($vbulletin->userinfo, $caneditformresult)) AND (!$canmanageownformresults OR !$vbulletin->userinfo['userid'])) { print_no_permission(); } $show['edit_id'] = $id = $vbulletin->input->clean_gpc('p', 'id', TYPE_UINT); $fid = $vbulletin->input->clean_gpc('p', 'fid', TYPE_UINT); $_POST['do'] = 'postform'; $show['editing'] = true; $where = ""; if ($canmanageownformresults && !is_member_of($vbulletin->userinfo, $caneditformresult)) { $where = " AND userid = '" . $vbulletin->userinfo['userid'] . "'"; } $formresult = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE fid = '$fid' AND id = '$id' $where"); if (!$formresult) { $errormessage = $vbphrase[form_error_data_not_exist]; eval(standard_error($errormessage)); } } if ($_POST['do'] == 'postform') { $POST_FORM = true; $canviewform = unserialize($vbulletin->options['canviewform']); if (!$canviewform OR !is_member_of($vbulletin->userinfo, $canviewform)) { print_no_permission(); } $fid = $vbulletin->input->clean_gpc('p', 'fid', TYPE_UINT); if (empty($fid)) { $errormessage = $vbphrase[form_error_not_existing_form]; eval(standard_error($errormessage)); } $posthash = $vbulletin->input->clean_gpc('p', 'posthash', TYPE_NOHTML); $poststarttime = $vbulletin->input->clean_gpc('p', 'poststarttime', TYPE_NOHTML); $hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_NOHTML); $hiddenfield2 = $vbulletin->input->clean_gpc('p', 'hiddenfield2', TYPE_NOHTML); $hiddenfield3 = $vbulletin->input->clean_gpc('p', 'hiddenfield3', TYPE_NOHTML); $complete = true; $incompleteqs = array(); $iqs = array(); $form = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "forms WHERE fid = '$fid'"); if (!$form) { $errormessage = $vbphrase[form_error_not_existing_form]; eval(standard_error($errormessage)); } ($hook = vBulletinHook::fetch_hook('easy_forms_post_form_start')) ? eval($hook) : false; if ($form[submitlimitperuser] >= 1 && !$show['editing']) { |
#22
|
|||
|
|||
Well, you'd have to know the actual value of $_POST['do'] when the error happens. You say that this happens when you click on a button that you created? Then if that button isn't submitting a form, $_POST['do'] won't have a value. That could be the problem - maybe it's not meant to be used that way. Maybe you'd have to submit a form with some data for it to work.
But really this has gotten in to helping with a mod, and that shouldn't be done in this forum (my fault, I should have said that before). We could just continue in the mod thread, if anyone else has anything to post. |
#23
|
||||
|
||||
Did you put any plugins at hook location easy_forms_view_question_start ?
|
#24
|
||||
|
||||
Please continue this in the mods thread, this is not the proper place for discussing the mod.
|
#25
|
||||
|
||||
This has been solved thanks all for your help.
|
#26
|
||||
|
||||
What was the solution so that if others run into the problem they can solve it?
|
#27
|
||||
|
||||
Check in the modifications thread for the solution.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|