e107help.org Q&A
0 like 0 dislike

Plugin: https://github.com/Jimmi08/survey


Issue - Fatal error: require_once(): Failed opening required '/e107_plugins/forum/forum_class.php' (include_path='.:/usr/share/php5:/usr/share/php') in /usr/www/taskforce13tsw/501st/e107/e107_plugins/survey/survey.php on line 560


e107 version e107 2.1.6
asked in Plugins by (438 points) 9 39 49
It works, but now getting some issue.


When posting to the forum thread - Addition stuff is posted, example:

"Survey submitted: Tuesday 20 June 2017 - 00:15:58"

where is that so I can remove it?
Also can you help me with another thing?


I created a Leave of Absent "form" survey


I have it set up to post result to the forums, however I edit the threadpost name. So instead of just showing the survey name, it has survey name, User name, and I want to add the leave date that is in the "form" survey.


In the database the survey_results - results_results:



As leave date is the first date, is there a way to use that to be put into the thread title?

if ($row['survey_id'] == 1)
            //$threadInfo['thread_name'] = $row['survey_name'];
            $thisThreadname = "".$row['survey_name']."".USERNAME." - ".$LASTDATE.""; // TODO - Display Leave Date
        else if($row['survey_id'] != 1)
            //$threadInfo['thread_name'] = $row['survey_name'];
            $thisThreadname = $row['survey_name'];
        $threadInfo['thread_name'] = $thisThreadname;
Please let me remind you that the project is not really an active one (customised). I personally do not use the survey plug. To your question survey php line 419: $mailtext = LAN_SUR42.": ".$cnv -> convert_date($submit_time,"long")."\n\n"; that is your origin.


(or rethinking maybe internally called line 581.. guesiing here $time = time();)
On second question... that's a question for a e107 coder. like Cameron or Moc or even Septor (origin) etc.. (crazy idea... take a look inside oldpolls php, it somewhat reminds me of such structure.. it is different, but who knows, i know you have more knowledge than me ;-))

1 Answer

1 like 0 dislike
Best answer
I wonder why if there is public repository with issues why don't ask there? If you want to help with this, I need survey and related forum data. And description how it should work.
answered by (1.3k points) 7 52 62
selected by
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
744 questions
1,153 answers
1,177 users