1
Zap_English
Exam/Assessment Module for XOOPS 2.5.8 and PHP 7

I'm trying this module out
https://xoops.org/modules/news/article.php?storyid=6764

and I downloaded it from github

I noticed I can't test it with the "sample" exam. It keeps saying it's not available.

I changed the availability dates but it;s not saving them

Can someone look into this?

TIA!

2
Zap_English
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7

I really REALLY need this module

If someone can fix the date problem

I noticed it was reported i github last June but never responded to

3
Bleekk
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7
  • 2017/2/7 11:43

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


try this
open modules/assessment/admin/cadastroprova.php
line 72 and 73
change
$prova->setVar('data_inicio'$data_hora_inicio_MYSQL);
$prova->setVar('data_fim'$data_hora_fim_MYSQL);

to this
$prova->setVar('data_inicio'date('Y-m-d H:i:s'strtotime($data_hora_inicio_MYSQL)));
$prova->setVar('data_fim'date('Y-m-d H:i:s'strtotime($data_hora_fim_MYSQL)));


do the same in modules/assessment/admin/editarprova.php

4
Zap_English
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7

ok, that fixed the date problem

but now as soon as you press the "start exam" button you get a 404 error

5
Bleekk
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7
  • 2017/2/7 12:34

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


ok open modules/assessment/templates/assessment_verprova.tpl change
<form action="../preperguntas.php" method="post">
to
<form action="preperguntas.php" method="post">

6
Bleekk
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7
  • 2017/2/7 12:44

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


you need to look on all templates of the module and look for
<form action="../
then delete the ../

7
Zap_English
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7

it still gives a 404 error

there is a logo missing too, and I copied the address. It came up ass
http://localhost/assets/images/mlogo.png

so it seems there is a lot of variables missing between "localhost" and "assets"

If you can give me the code that would use variable addresses (not hard coded), I'll make the corrections to the module. Then give it to Mamba to upload to github

8
Bleekk
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7
  • 2017/2/7 12:48

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


in xoops -> preferences -> system options -> general settings
activate the option "Check templates for modifications"

9
Zap_English
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7

It's the first thing I did when I started building the site, and it's still on

Looks like the whole thing is full of bugs

every time i press a button i get another error

here's the error when you try to go to the second question

Fatal error: Call to a member function isAutorizado() on boolean in C:\xampp\htdocs\recipes\modules\assessment\perguntas.php on line 90
None All Errors (2) Deprecated (0) Queries (24) Blocks (6) Extra (2) Timers(5)
Errors
Unknown: Declaration of NavegadorProva::renderImageNav() should be compatible with XoopsPageNav::renderImageNav($offset = 4) in file /modules/assessment/class/navegacao.php line 33
Notice: Undefined index: cod_prova in file /modules/assessment/perguntas.php line 69

10
Bleekk
Re: Exam/Assessment Module for XOOPS 2.5.8 and PHP 7
  • 2017/2/7 12:53

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


then it should work.
it is all working for me now.

I hope you do not have the module templates in the folder /themes/xbootstrap/modules/assessment

Login

Who's Online

347 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 347


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits