I have some Problems with the Grade Book. I created my own Grade Scale. It is a numeric scale (from 12 to 0). Whats the way to get the cummulative calculated. If i use the percentage scale everything works. But my own scale wont work. What is the point i am missing?
Thanks for your help
Stefan, hello and welcome to the Gibbon community. I think @skuipers might be the best person to answer this question, and she wrote this part of Gibbon. Perhaps you could start with a screenshot of your scale as seen in Admin > School Admin? Thanks, Ross.
Hmm, I believe the cumulative mark only works for the percent scale at the moment. It may be possible with other numeric scales, but it could take some reworking of the code. For example, just because a scale is numeric doesn’t guarantee it has a constant increment, or that its even lowest to highest.
I can take a look and see if it’s possible to arrive at a cumulative mark using the sequence number of the scale rather than the actual value. This could result in some interesting behavior if sequence numbers aren’t configured in a constant incremental scale. Worth a look though.
Hi @skuipers, you take a look and see if it’s possible to arrive at a cumulative mark using the sequence number…?
I´m in the same situation, I would like to use another scale, if I do it the cummulative doesnt make any calculation!!!, let me know please. Thanks
Good afternoon! I am new at Gibbon (and without any experience in SQL or anything) and I just ran into a similar problem. Is there any update on this?
In Ecuador, our grade scale is from 0 to 10 but with two decimals. I have created the custom grade scale (with more than a 1000 entries!) but now the Markbook isn´t calculating the average. Hoping that there is some way to fix it! Thank you! Sr. Emma
I kept investigating and found that I had to change the settings in ADMIN–System Admin–Configure System…and now I am getting an average with my grades. BUT it is giving me an average without decimals. Is there a way to fix that?
Thanks for the tip because it hadn´t occurred to me!
As far as the decimal places… for example the student that is marked in red has 7,48 has her final grade…but the cummulative average and the term average are only 7. I need the calculated averages to also have two decimals. Where should I make changes so that it calculates the average maintaining the two decimals?
Hmm, this is odd. The code changes you made to getFormattedAverage should have updated these numbers in all locations. When you hover over the number in the cumulative average, do you see the full non-rounded value? This should be the default behaviour. Otherwise, perhaps try removing the round() function entirely and see if it gives you the raw value. I’ve tested it locally and it seems to work, but perhaps PHP isn’t handling localized numbers with commas in them properly for purposes of rounding. Unusual!
Thanks for your help…
When I hover over the number I see the rounded number with two decimals. For example this student has a 7,86 but her rounded average is 7,00.
I have tried to erase the whole round function…but I think I must have done something wrong because it gave me an error. I replaced the text that I had erased and it is all working again.
I erased everything that is marked in red:
And I left the code like this:
But it gave me an “Oh no. The gibbons have escaped” error.
If the problem is the commas I could changed to periods…that wouldn´t be a problem. Would that be the best thing to try?
Hi Sr. Emma, you’re making great strides getting into the code and seeing what works. To remove the function, in this case, you’d also need to remove the brackets and other parts of the function call. Here’s what it would look like:
I changed my grading system to use “.” instead of “,” for the decimals…and I changed my computer settings so that it would allow me to do so. Now it is calculating the averages…although the averages use “,” because I have Gibbon in Spanish. =D