The beta version I put out earlier had a couple of flaws. The major flaw was the lack of ability to properly export data to ODS. I have fixed this as well as come to understand why my Excel downloads were being corrupted (related to MDL-5722). I now feel much more comfortable with the data being exported. The only flaw I see now is that groups are not properly enforced. Currently, the names, email, etc. is exported for all participants regardless of the group selected. I want this enforced so that separate text files/spreadsheets can be created for each group. The grades are exported only for the students in the group and when I get a chance to go back in and look at the foreach loops I will figure out what is happening and get it fixed. Then I will go ahead and update things in CVS for the 18STABLE branch.
Thanks to Wen for agreeing to help test the code. If others would like to test the updated GBPv2 for 1.8 code just let me know. Please report any bugs, questions, etc. about GBPv2 for Moodle 1.8 in this discussion thread as the other one for GBPv2 has become rather lengthy.
Peace - Anthony
I am working on testing this. So far I find a formatting problem with respect to the first column generated by the "view" grades tab.
In previous versions, the first column and the last column were formatted the same way--regular text, left aligned. As you see in screen capture below, now the first column is bold (takes up too much room) and centered (makes it harder to read). Can we get both columns formatted as the last column shows here?
Thanks,
atw
http://moodle.cvs.sourceforge.net/moodle/moodle/grade/lib.php?r1=1.52&r2=1.53&pathrev=MOODLE_18_STABLE
My initial inclination is to leave it as it is since that is what is currently in Moodle core (see attached screenshot). I am not sure how changing it would effect XHTML compatibility or accessibility. You may want to search around and see if you can find where in the theme's css file it sets a table header to be bold and center since it sounds like you would prefer that they be left justified and not bold. To be honest, I agree that it is somewhat cleaner and easier to read.
If there are strong opinions that GBPv2 should be different in this respect to Moodle core then let me know; however, my goal is to keep them as closely compatible as possible as it will make it easier to maintain.
Peace - Anthony
Could you give me a little hint?
I agree that you should keep it close to what is developing for 1.9, but to me the important part is data structure and functionality. Formatting will likely continue to change, and I would like our production instance to be the best for our users. So if 1.9 hasn't gotten around to fixing those kinds of little details, I would like to go ahead and tweak my own code.
Thanks for your help. If this is hard, then I will just subside. It displays properly in edit grades view, just not in the initial "view grades" tab. So I tend to think this is a bug!
atw
Do you think the "download in X format" should really say "export in X format"? Just wondering.
I will report if I find anything else, but so far it looks like it is working very well.
atw
Line 2771 in lib.php
$header1 .= '<th> scope="col"'.get_string('percent','grades').'</th>';
should be
$header1 .= '<th scope="col">'.get_string('percent','grades').'</th>';
In View Grades
Also following warnings:
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 1264
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 1278
Notice: Trying to get property of non-object in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 314
In Edit Grades
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 2384
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 2265
I did not get the other error messages when I viewed or editing grades.
atw
Where can I find the most recent version of the GBPv2 that you are working on?
I have looked in Moodle CVS and could only find the original version.
Thanks,
James
URL is below.
http://moodle.cvs.sourceforge.net/moodle/contrib/patches/gradebookplus_v2_1.7/?pathrev=MOODLE_18_STABLE
Hi Anthony,
I have downloaded the latest CVS to my test site, which has Debug set to ALL.
I am getting the following Notice error messages. In most cases the code still works if references to group in URL are removed, but I'm not sure about all of them:
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 1264
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 1278
Notice: Trying to get property of non-object in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 314
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 2384
Notice: Undefined variable: group in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 2265
I think taking out the $group variables has broken the edit grades by group/category. I cannot now choose a group and a category to edit as changing one reverts the other.
I think the undefined group variable may be one that I suggested a fix for, James could you try the change I suggested higher in this forum and see if it addresses the issue for you?
When I select either red circled category or group I don't get the combination of both.
For example, this has group 'a' showing. If I now choose to change the category to 'P2' I will get all of the students not just those in group 'a'.
Additionally if I change this group to group 'b' I get results only from the 'top-most' category...so there is no way to view category 'P2' results for group 'b'...I'll message you my test site details so you can have a go.
Yes I think visible and separate use the same code and I absolutely expect the category and group to persist through changes to the other.
I have just got a copy from contrib and I don't see the extra group dropdown box on my system.
Do you have a patch you want me to test?
I have now put this version on and had a look. Functionality is working with respect to groups and categories, I also see that you have removed one of the group drop-down boxes. The group now persists throughout every tab, I am not sure that we need to *see* the group chosen for anything other than the view and edit tabs. My personal preference would be to have the group and category drop down boxes next to each other across the page (as in your screenshot previously) as it takes up less screen space and I find it more usable as I often flick between groups and categories and this reduces the mouse travel.
Thanks for taking the time to do this.
Dave
I think that sounds good. I do think, however, that they should be hidden on the tabs where they have no relevance.
Dave
Great job you are doing the GBPv2.
I've just tried the latest files from CVS. All the errors have gone except for :
Notice: Trying to get property of non-object in /srv/www/sites/studentmoodle/htdocs/moodtest/grade/lib.php on line 314
This error occurs on both the View and Edit grade pages.
Thanks for all your work on this project.
-James
if ($modname == false) {
echo 'Could not find modid: '.$cur_mod;
}
after line 313:
$modname = get_record('modules','id',$cur_mod);
The real question is how is it that in your database there are modids that do not correspond to a record in your mdl_modules table? Somehow we are getting incomplete data and we can either test for that and avoid it in the code or search out and destroy the bad data. Does that makes sense?
Peace - Anthony
I looked in the DB, and found in mdl_course_modules a few entries with a mod id of 0, this did not correspond to any entries in mdl_modules.
I deleted the entries and got your 745 error, then I updated to your new lib.php you put up 30 min ago and now I have no errors.
It seems it was all caused by some rogue mod id 0 entries, but I have no idea where they came from.
Thanks for your help,
James
UPDATE: i just checked and it appears the mod id 0 entries are created by GBP graded events.
I am more reluctant to fix the line 314 error as that is what is currently in core. I will have to look in more detail about what is causing it and if needed file an issue in the tracker.
Peace - Anthony
I think I found a missing string. Or maybe not, but hopefully you can tell! I saw this when I was importing content into another course. Is this a gradebook string, or a string from somewhere else?
atw
atw
If I knew more about how to read the code, I could probably do a better job of suggesting a string! Sorry!
atw
$string['backupwithoutgradebook'] = 'Backup does not contain Gradebook configuration';
$string['respectingcurrentdata'] = 'leaving current configuration unmodified';
I have updated the GBPv2 language files to include the strings.
Peace - Anthony
atw
Did you catch the bug in the other discussion solved by Greg Lyon:
I think I've solved the issue you're seeing (and I was too) with gradebook v2_1.7 in Moodle 1.8...
go to /grade/lib.php and change the following line ( line 3682 in lib.php v1.3):
$configvar = get_config('', 'gradebookroles');
to
$configvar->value = get_config('', 'gradebookroles');
Hope it helps...don't know if there are other issues yet!
Greg.
Dave
One other. On the "Edit Grades" tab. The category and groups drop downs. Selecting a group gives you a group, selecting a category gives you that groups results for the category, but choose a different category to view and you get all of the students not just those in the group previously selected.
I fixed it on my system by putting in a hidden field around line 21xx in the lib.php file:
if ($action == 'edit') {
print '<table align="center" class="grade_edit">';
print '<tr><td><form name="cat_form">';
print '<input type="hidden" name="id" value="'.$course->id.'" />';
print '<input type="hidden" name="action" value="edit" />';
print '<input type="hidden" name="group" value="'.$group.'" />';
if ($preferences->use_advanced != 0) {
// Get other cat info and display category select if more than one category present
I also have a hack that allows me to upload a series of grade descriptions from a csv that I stuck onto this, would you like it - or is this going to be superseded by 1.9?
I know for 1.5.4 Jeff had a patch to back up and restore that woudl allow processing of graded events but I can't find that he created any patched for 1.8.
Is there such a patch?
If not I am willing to look into porting the 1.5.4 patch to 1.8 but would rather avoid the extra work if possible.
OK, we found some issues with this gradebook plus v2.1.8 beta, actually one of the major issues were not caused by the gradebook plus v2 hack, but cause by the moodle assignment module.
The gradebook plus allows users to EDIT a grade to whatever they want. However, assignment uses dropdown menus for grading.
That infinite to finite relationship causes problems when a user enters a grade of 1000 when assignment only allows up to 100.
To fix that we changed the grading in assignment to use text fields. However, because we are not using text fields, we must now do error checking. So grading in assignments is limited to 0 - 999. If assignment uses scales, then the scales dropdown will appear.
Also we changed the behavior of each of the buttons available in the popup menu.
Previous - New button that saves changes and moves to the previous student to grade
Save Changes - Used to save and close the window. Now just saves the data and refreshes the window with feedback
Cancel - Closes the window
Next - Saves changes and moves to the next student to grade
I have attached the new /mod/assignment/lib.php file here (if people prefer I could supply a diff later), and will attach some screenshots and our new GBPv2 version later (we also changed the layout for student view a little bit)... feedback/comments welcome!
Before:
Notice that now for "scales" you will have a pull-down menu to select, instead of a text area to input. We thought that this make better sense.
Hi,
Forgive me if this has been asked previously...
I'm trying to install and I've put the folder into the mod folder and have gone to the admin page this is where I receive an error about not finding a 'version.php' file...help? If I go back to the home page, it read's something about not having folder permissions...I've been able to add other modules without any problems.
Thanks in advance!
Stephanie
Thanks for your help Anthony...however now I'm not too sure what's meant to happen. The first time I went to a grades page, it said, "Success Success" but everything looks the same...am I missing something again?
Thanks again,
Stephanie
Oh ok....Excellent!!!
Thanks for all your help Anthony!
Hi all,
I have a similar problem,
I have installed gradebookplus_v2_1.7 into moodle\mod folder, then copied the
the 'grade folder' from gbpv2_18_beta_20070722 into the moodle\grade folder. Still Im getting the errorHi Simon
Hope I can help. Gradebook plus is not a module and so should not be in the mod folder.
It is a 'hack', the files in the grade folder should be placed in the grade folder in the moodle root - you might want to make a back-up copy of your original grade folder first, as they overwrite some of the originals.
Regards
Dave
1. Is it possible to have any assignments use decimal grades? If so, which types (e.g., those entered using "Manage Graded Events", online assignments, offline assignments, et al.)?
2. If it is possible to use decimal grades, which fields in which tables need to be changed and what specification should be used for the new field type (e.g., decimal, float, double and once these are chosen, are there other parameters that need to be specified such as length or decimals)?
Decimals in the Gradebook are however allowed for both Quizzes (assuming you have set the quiz preferences to allow them) as well as for Graded Events generated manually within the grade book itself.
1st - Being as Assignment grades need to be entered manually upon completion by the student, generating a Graded Event manually for that assignment within the Gradbook will allow the teacher to give partial credit. There are a couple of issues that will have to be addressed with this work around.
- The event in the Gradebook generated by the Assignment will need to be placed into a catagory set to a weight of 0 so it does not interfere with the final grade tally.
- Alternately the off line assignment can be written up in something other than the assignment module.
2nd - Another solution is to use the quiz module and create an online assignment with essay questions, which will be graded manually. This will allow the teacher to assign partial credit for questions, as well as edit the grades within the Gradebook afterwards if the quiz setting is specified to use decimal points in the grades.
Obviously the ideal solution is to allow Events generated by the Assignment module to allow decimals, but for the moment homework is being assigned and classes are carrying on. So to everyone working on the db, keep up the hard work, it's much appreciated. But I hope this offers some temporary solutions.
- Table: mdl_assignment_submissions
Field: grade
- Change from type int(11) to float(11,2)
- This will make regular assignments take decimal values with two decimal places
Field: grade
- Change from type int(11) to float(11,2) if necessary
- This and the next change will make "Manage Graded Events" assignments take decimal values with two decimal places
Field: grade
- Change from type int(11) to float(11,2) if necessary
- Combined with previous change will make "Manage Graded Events" assignments take decimal values with two decimal places
I used the phpmyadmin that is installed and accessible from the Database section of the Administration Block to make the changes. If you use phpmyadmin, select the appropriate database and then table. Click the pencil in the line of the grade field to edit the field. You will change the type to float by choosing float from the pulldown menu under type (that initially says int) and then putting (without the quotes) "11,2" in the Length/Values box.
Richard
Greetings!
I love the mod! However, there seems to be a problem with ALL my strings. They all show up as editgrades, newevent, etc. Is there an easy fix for this?
Cheers!
-Thomas Wensink
Hi Thomas
Yes, this is an easy one...any time you get the xxx... it means a file is missing from the lang directory.
In the zip file you should find a folder called 'lang' copy this to the moodle root where it will deposit its folders into the folder with the same name and hopefully all will be well.
Dave
Dave,
Thanks much! All is now, in fact, well.
Cheers!
-Thomas
Re: GradebookplusV2 (GBPv2) for Moodle 18STABLE
HI, first of all, I would like to say thanks for the great patch. I have installed it and it runs smoothly... except for a script error that is thrown in Internet Explorer (not in Firefox). This script error is shown only in "Edit grades" page. The script error is in line 193 and it says "Unterminated string constant". I went to the source code and found out the script error is thrown because it seems there is a problem with the onclick="return openpopup(...)" part of the code. I am not skilled in PHP, but I found the line that originated that javascript window open error to be line 2395 of lib.php. In the code you can find the text...
onclick="return openpopup(\'"./course/mod.php?update=
This quotation mark appears in the source code and it causes this problem in Internet Explorer. I deleted the quotation mark and my Internet Explorer stopped throwing the errors, but the application behaves differently because the URL changes. The popup to each activity should show its frontpage, but after deleting the quotation mark, the link is different and the administrator is forwarded to the activity's edit page, which doesn't seem to be the correct thing.
What would be the right solution for this?
I am running the 1.8 version of the patch over an 1.8.2 Moodle install. Thanks and sorry if this thing has already been posted or addressed in this forum. I searched and did not find anything about this. Thank you in advance.
Re: GradebookplusV2 (GBPv2) for Moodle 18STABLE
Hi, i'm quite new to Moodle and have finally got it all working.. I was wondering if and when their might be a GradeBook for 1.9? I thought i might get lucky and tried installing this version of GradeBook to my Moodle 1.9 install.. but i just get a blank screen when i click on the Grades button... Any info would be greatly apperciated.
Thanks,
Tony
Hi,
Does Gradebook Plus v2 work with SQL Server 2005?
I copied the contents of the zipped gradebook plus v2 into my grade folder of my moodle and i get an HTTP 500 Internal Server Error when i try to access my "Grades". Any ideas?
Thanks
Tony
Hi Anthony,
I'm running the following..
-
Windows 2003 Server (SP2)
-
SQL Server 2005
-
PHP 5.2.4
-
Moodle 1.8
All the files and folders have the same permissions as my Moodle Installation..
Thanks,
Tony
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/64e30660-d2f0-4e90-98cc-1652214a2b93.mspx?mfr=true
The challenge is to determine what the error is and why it is happening but I would focus on IIS and why it is not recognizing the files. If you replace the gradebook files with the old ones (i.e. the ones from core) does it work?
i'll search through that page you mentioned...
if i replace it with my original gradebook files... everything returns as normal and works just fine.
Thanks!
p.s. - Another option is to upgrade to 1.9 in which case you should have all of the functionality of GBPv2. Which feature of GBPv2 are you looking to use?
Hi Anthony,
We're basically looking for something that would display the answer selected by the student and display their grade for that test/quiz/survey/etc...
Below is a sample of a table definition from mssql..
CREATE
I can create tables using SQL Management Studios... i'll try to work through the mysql.php for all the table columns and properties to see if i can get the table created.
For the upgrade to 1.9... I had read on a post in the forum that 1.9 should not be installed for production use until the final release is made avaliable.
Thanks,
Tony
`id` bigint(10) unsigned NOT NULL auto_increment,
`userid` bigint(10) unsigned NOT NULL default '0',
`assignmentid` bigint(10) unsigned NOT NULL default '0',
`intAssignmentGrade` bigint(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores assignment grades ';
Sorry about the last post... i posted the wrong table definition..
CREATE
TABLE [dbo].[MyImages] ([ID] [int] NOT NULL ,
[Description] [nvarchar] (50) NULL ,
[ImgField] [image] NULL
)
Hi Anthony,
I was able to create the 2 tables manually in SQL Server using SQL Management Studio. I installed GBPv2 and got it working!
Just to elaborate abit on what I'm looking for... a student would login and take a test or survey that might be assigned to them. They complete it and they are shown their mark for it. Now for the teacher's side, if it's possible, i would like them to see what the student answered for each question plus show the teacher what the student got for that test or survey. I hope that clarified it abit...
If GBPv2 might now show what the student answered for each questions.. is there another module that might do it or is it even possible to do?
Thanks,
Tony
Great news on getting GBPv2 to work - nice work. Could you send me the table create statements you used to make the tables and I'll see if we can create a mssql.php file with that information. I may ask your help of doing a test install to see if we are able to get it working seemlessly for mssql.
The quiz module does what you are looking for. After a student completes a quiz attempt the student (unless prohibited by the teacher - not recommended in my pedagogical opinion) and the teacher can go back and review the attempt to see which questions the student missed. One of my favorite features was the item analysis report which allows the teacher to see the most frequently missed questions. I would review the quizzes with the students before the comprehensive final or before a unit test and specifically go in order of most missed because that meant that for whatever reason there was confusion about the question. In some cases, I had simply entered the wrong answer and I could correct it and regrade the attempts giving the students credit or in other cases I opted to give partial credit for an answer if they were able to articulate clearly why it should receive credit. You do not need GBPv2 for this functionality - it is part of the standard quiz module.
Happy Moodling! Anthony
Hi Anthony,
I have attached the mssql script that i used to create the 2 tables in mssql. I wouldn't mind testing it once you have the php version of it.
For the quix module, are you referring to the one that is already installed with Moodle or is it an extra one that i would need to download?
Is it possible to uploaed a quiz and use the module to grade it or do you have to use Moodle to create the quiz for the module to work?
Thanks,
Tony
I'm running Moodle 1.8.2+ on a CentOS 5 server.
I unpack the gradebookplus_v2_1.7.zip file, copy the contents into the $MOODLEROOT/grade folder, overwriting what's there.
Am I missing a 'next step'?
The next thing I do to see if it works is go to a course and click on grades. I get a blank page, with no source.
I'm using a Firefox browser.
Any help is greatly appreciated!
--Marty
p.s. - To answer your question - it sounds like you did things right on the install.
I downloaded it from the Modules and Plugins page, the one for Moodle 1.8.
Should I have downloaded a different one?
--Marty
PHP Parse error: syntax error, unexpected T_ELSE in /path/to/moodle/grade/lib.php on line 719, referer: http://myMoodleSite/course/view.php?id=92
Does that help any?
--Marty
I downloaded the gradebook plus for 1.8. Moved the old /grade files to folder grade_old and copied files from gradebookplus_v2_1.7 to /grade.
I am using Moodle 1.8.2+ (2007021520)
Apache and php 4.4.7
Hi Anthony,
You have helped me before when I was first gettng started with Moodle 1.8.3 and its installation. I'm hoping you can instruct me on this area as well. I'm very excited for my teachers to begin using the Gradebook Plus V2 hack. However, I've run into this problem and don't know how to fix it.
If you'll instruct me on which tables to delete or which code to change, I'll do my best to make it work.
I've attached two pictures because two tabs "editgrades" and "addgrades" do not look just right. They appear to be internal coding instead of English spelling.
Please help Sir. Thanks so much. Ms. Letha
The ??? indicate language strings that cannot be found. In the zip you should have a folder called lang\en_utf8\ inside which is a file called grades.php, if you put this into your moodle lang folder (same path) it should pick up the strings. If you are nervous about this then go into your moodle root:
moodle\lang\en_utf8
and make a backup of the file called grades.php that is already there just in case. The new gradebook plus language file has the extra strings required to correct your display.
Dave
My first inclination would be to encourage you to upgrade to Moodle 1.9 and skip the GBPv2. All of the functionality that was in Moodle 1.8 with GBPv2 is now included in Moodle core version 1.9. I think that is the better solution. I will try to support as best as I can those who are still making use of the GBPv2; however, my hope is that 1.9 will make it obsolete. The brackets is just a matter of the language files not being copied to the language folder. If memory serves me correctly, simply copy /grade/lang/en_utf8/grades.php to /lang/en_utf8/grades.php and you should then have the missing language strings. As I said, I would encourage upgrading to Moodle 1.9 but if you have reasons for not wanting to upgrade that should take care of things for you. Peace - Anthony p.s. I did receive your email indicating that you are hesitant to upgrade to 1.9 because of some 3rd party code you are using and that is good reason to pause and at least do some testing to see if the contrib code you are using is working in 1.9.
Are there any help files (en_utf8/help) for the GPPv2_1.7 available?
Cheers, Dirk
Does GBPv2 work yet with moodle 1.9? I tried installing it into the grade folder overwriting without success. I installed 1.8, no; then tried latest, no, then tried latest and went to the page for 1.9 updates for lib.php and overwrote that file and had still a blank page when trying to view grades. Then I tried to install the "all my grades" add in which is predicated on GBPv2 and it did not work either.
I really want a way for BOTH parents and students to see all their grades when logging in (I use my moodle and mentees). Any help would be appreciated. (moodle 1.9)
James
I am still playing with 1.9.1 in test and have to think I am doing something wrong.
I don't see the ability to add graded events (like GBPV2), I don't see how to add grades directly into the gradebook(like GBPV2), I see all the hidden categories and graded items, and it is a mess.
Brian
The add graded events is in the drop down at the top left: "Choose an action"
- Edit
- Categories and Items
http://www.mrfountain.me.uk/moodle/gb19.swf
I am new to adding patches in to Moodle
I have downloaded the zip file, could someone explain what the next step is, do I need to put the new gradebook somewhere in particular.
Any help will be much appreciated
Kind Regards
Sam
I remember being confused with this too, since these files go to two different places. You may find this link helpful in installing plugins in general;
http://docs.moodle.org/en/Installing_contributed_modules_or_plugins
In this case
1. Extract the zip file
you will get some files and three folders: db lang and backup
1a. It is always wise to make backup copies of your installation files and database before adding major updates in case anything goes wrong.
2. Copy the individual files and the db folder into the the grade folder of your moodle directory.
3. The lang folder and the backup folder can be copied directly into your moodle directory. (where there are already instances of these folders)
That should do it in this case.
I hope this helps.
David
There is 2 folders, these are db & lang & then 4 PHP files which are addgraded, exceptions, index & lib, then there is 3 HTML pages, which are addgraded, exceptions & viewgraded.
There is no backup folder.
I don't know if it is necessary or not.
At any rate, the same instructions apply, just without the backup folder.
The files and the db folder go in the grade directory of your moodle directory.
The lang folder goes in the main moodle directory.
Good Luck!
David