
03-14-2009, 11:30 AM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by LloydApter
Quote:
Originally Posted by LloydApter
Many thanks for the mod - it's exactly what I need :up:
How can I show the individual results of all submitted form replies to the relevant forum members in easy viewable format?
Something like this (in table format):
Number Name City Reply
1. John London Yes
2. Lloyd Paris No
ect.
Thanks again!
|
I have reviewed all the material and postings and didn't find any explanation of how to order the results from the form.
Say it's a form to invite people to an event and then afterwards people want to see who is going with their relevant contact details that they completed in the form and also see their names on the list. Or it's a survey and people want to see the results of the survey in worksheet format so they can analyse them... How can this be done?
Many thanks
|
- this uses BB Code Table & Easy Forms v3.3
- Create thread/post eg.
HTML Code:
[table]column1|column2|column3
[/table]
- Form Hook: Before Submit
PHP Code:
if ($complete) { require_once('./includes/class_dm.php'); require_once('./includes/class_dm_threadpost.php'); $postid = 245; $postinfo = fetch_postinfo($postid); $postpagetext = str_replace('[/table]', "\r\n $formoutput [/table]", $postinfo[pagetext]); $postdm = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD); $postdm->set_existing($postinfo); $postdm->set('pagetext', $postpagetext); $postdm->pre_save(); if(count($postdm->errors) < 1) { $postdm->save(); } else { foreach ($errors as $error) { $errorss .= $error. "<br />"; } $errormessage = "Following errors occurred".$errorss; eval('print_output("' . fetch_template('STANDARD_ERROR') . '");'); } unset($postdm);
if ($form[submitmessage]) { $errormessage = $form[submitmessage]; } else { $errormessage = "Form was submitted successfully. Click <a href=\"showthread.php?" . $vbulletin->session->vars['sessionurl'] . "p=" . $postinfo[postid] . "#post" . $postinfo[postid] . "\">here</a> to view the post."; } }
- Replace 245 with appropriate postid
- Use custom output e.g.
Code:
$qo[75] | $thisuser[username] | $qo[59]
|