Повідомлення, що надісла(ла)в Joseph Rézeau

Фото Développeurs Фото Développeurs de plugins Фото Testeurs Фото Traducteurs
Une formule qui serait (à la limite) acceptable en restant courte serait:
"Afficher tous" ou "Afficher tout" = Show all
Joseph

Moodle in English -> Lesson -> Lesson, Reloaded -> Re: Lesson, Reloaded

Joseph Rézeau -
Фото Core developers Фото Plugin developers Фото Testers Фото Translators
Hello!
I have exactly the same problem as described by Crescenciano. I'm using Moodle 1.5dev on a local test machine.
I see the "answer id" string in the lesson module in student mode.
What should be done?

Joseph_R
Фото Core developers Фото Plugin developers Фото Testers Фото Translators
Oops! I've just realized that  - in the Javascript script mentioned above - the getYear() function does not work in Mozilla-type browsers... With Mozilla, getYear(now) where now is some MoodleTime in 2005 returns ... 105.
Apparently, the Mozilla programers have decided that, starting with the year 2000, dates begin at 100, so for them 101 means 2001, 102 means 2002, and so on evil.
In order to get the correct date, you have to use the getFullYear() function.

Well, one learns every day wink.

Joseph_R

Moodle in English -> General help -> Exporting the log data -> Re: Exporting the log data

Joseph Rézeau -
Фото Core developers Фото Plugin developers Фото Testers Фото Translators
Hi Ian.
You don't say whether you are in an admin position and have direct access to the Moodle mySql database. If this is the case, then it should be possible, using phpMyAdmin, to filter the log table and export it to any format you like, including Excel. I leave it to Moodlers who are experts in mySql to give the syntax...

If you don't have access as Admin, you can still import into Excel any data that can be displayed in a browser. You'll have to use the (little known) data import from the Web menu function. I'm not sure I'm using the correct wording here, since I am translating from my French version of Excel. (this is Excel 2003)

1- In your browser, go to Logs, and Choose which logs you want to see:
When you have made your selection, copy the ULR. It might look something like:
http://yourMoodleWebSiteAddress/course/log.php?chooselog=1&id=8&user=0&date=1109631600&modid=

2- In Excel, go to menu Data/External Data/New request on the Web
In the URL address box, paste the URL you have copied from your browers.
The first time you may be asked to log in - use your normal teacher or admin login name you use in Moodle. Wait... The table appears in the Excel window. Select it and import it... et voila!

NOTE: The display of data in the browser is limited by default by Moodle to 100 records. e.g. if you select logs for ALL PARTICIPANTS, ALL DAYS and ALL ACTIVITIES, you might see this towards the end of the URL: "&perpage=100&page=1". When you paste this into the Excel Web import function, replace 
"&perpage=100&page=1" with "&perpage=1000" (or 10000... according to the size of your logs).

I have used this "direct import into Excel" function many times in WebCT and have found that it also works with Moodle, once you understand the principle. It is most useful for getting raw data when you are not Admin.

Joseph_R

Moodle in English -> Hotpot (plugin) -> problem with results -> Re: problem with results

Joseph Rézeau -
Фото Core developers Фото Plugin developers Фото Testers Фото Translators
Dear Gordon,
Thanks for providing the fix for the bug mentioned above. I have downloaded the modified versions of "view.php" and "report.php" to the hotpot modules directory.
Now I don't get the "date" error, but have another error to report.
When I am logged in as teacher, and viewing Results, if I want to delete one or several Hot Pots exercises results I get this error message:
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
where the referring page is "http://localhost/moodle/mod/hotpot/report.php%3fid=117"

All the best,
Joseph_R