Announcing the completely reinvented KB Gradebook 1.0, a dramatic improvement over v0.1.3!
I’ve completely rewritten KB Gradebook. The biggest change: You can now upload CSV files containing grade data. That makes the uploading process much, much faster and more convenient. Plus, there are now fewer steps involved in updating the grading information.
If you are upgrading from a previous version, please don’t do it until you read the important comments at the top of the KB Gradebook plugin file.
v1.0 will show up over in the plugins repository in a few minutes here. Here’s the link: Download KB Gradebook plugin
.
24 comments »
Hi,
Seems an interesting plugin, I am using WordPress to support some of my teaching, where my students are already registered members of my blog. One thing I currently do not do is provide on-line feedback such as this, but I already have the data in the spreadsheet format, so a good low effort add on for me!
A question/suggestion: can you adapt the principles here to allow user access to individual grades via existing WordPress account/login details?
[edited out–no longer necessary]
Maybe if I get time I’ll make this change myself and make it an option that plugin users can select (whether to use registered userdata or not). It would probably be a pretty quick coding job…
[update]
I went ahead and coded this since it was quick. I have NOT tested it, since I don’t have students with WP usernames. So try it out and please let me know one way or the other whether it works. You’ll need v1.03, and you’ll need to set a definition at the top of the plugin file to TRUE so it knows to use this other method.
Cheers for a speedy response, I’ll try and find time to give it a go. Don’t have any real feedback to give my students for a while yet, but will try and set up a test bed using fake data on the real students, once they’re all on board in the blog, and get some feedback back to you.
In trying to test this plugin on my site, i get the following error when uploading my csv file.
Randy, what version PHP are you using? I’m on PHP 5, and now that I look it up, it appears that PHP 4 requires some additional info to be passed to
fgetcsv().If that’s the problem, I’ll see if there’s a simple workaround.
I had my host move me from php 4 to php 5 and it works great now. thanks for the offer of help and the advice.
Hi, Adam. I am trying tu put your plugin in my blog (wordpress), but something´s wrong. That´s what wordpress says, when I do it: “Sorry, but your CSV file has too few columns”. I give the name of the column with the mails, but it doesn´t work. Do you know why? I export the file like .csv and it´s got 10 columns. It´s a pity, ´cause the plug in looks great.
Thank you.
Luis: Is your spreadsheet formatted look like this example?
sample spreadsheet
If so, would you mind sending me a copy of your CSV (replace the emails with “email@example.com” if you want) so I can try to replicate the problem?
Email to web@ at this domain.
[Added Nov 28:]
If I export that spreadsheet as a CSV and view it in a text editor, it looks like this:
That’s how a CSV should always look. Note that commas separate columns, and each row is on a new line. That’s how your data need to look before the plugin will be able to process anything.
I tested out using the wordpress usernames of my students in place of the e-mail and generate password and it works great Adam. Outstanding work and my students know love being able to see how they are doing at anytime.
Glad it’s working for you Randy. Thanks for the feedback on using WP usernames.
Quick question Adam. If I wanted to edit the plugin to have it look at just their wordpress username for my site instead of their e-mail address, would I change the item it looks at from “user_email” to just “user.” I’ve been thinking about trying this, but was unsure of the actual field to use in place of it. By the way, still love the plugin and my students are thinking me for using it.
Just to make sure I’m following, the only change you’re trying to make is this: You want to put their WP username (instead of their email) into the spreadsheet. Right?
You would change it from
user_emailtouser_login. This may help: get_currentuserinfo.I’m not sure whether that will cause further problems later in the codeflow, though. Give it a try and see what happens.
Thanks Adam! I actually found that article and got in the check the tables in my database to make sure it all matched up about 15 minutes after I posted my comment/question.
I plan to test it out soon and I’ll let you know how it all goes.
Hey Adam!
I actually went through the code for the plugin and replaced every instance of the plugin looking at the user_email with the User_login and it works great in my tests. I haven’t put it up live yet on my site as I need to make a master list of all my students IDs to place in the CSV. I’ll e-mail you the recoded plugin if you want to check it out, but all I did was replace the user_e-mail with user_login (plus made a few semantic changes like putting ID where it said e-mail on the display to students an making it say grading period instead of course)
Thanks for letting me know, Randy. I’m glad it was that easy. Since it’s that easy, I can just tell people with this question in the future to read that comment you wrote.
Hello Adam,
evalutions of my students also include a short comment. A comment increases the pedagogic value of the grading. Yet comments, however short, are likely to contain commas, which the plugin mistakes for commas belonging to the csv file.
Are you planning to implement support for xls files at some point?
(I realize i may have asked you this question a while ago. Sorry if that’s the case, one unconsciously keeps coming back to great plugins)
Thanks!
Thomas
Sorry about the delay, Thomas. I’ve been swamped lately.
Comments work fine as long as you’re using a spreadsheet program that know how to handle them. I just made a sample spreadsheet in Google Docs, including a “comments” column using commas, and exported it as CSV. You can look at the spreadsheet here:
sample spreadsheet
Exported as a CSV, it looked like this:
… and it worked fine when uploaded. I then made a similar test file in Excel and had no problems.
As for XLS files, no, I don’t have plans to add support for them, for two reasons. First, Excel can export CSV files, so I’m not sure adding XLS support is worth the time it would take me to code. Second, I don’t know how to parse an XLS file anyway. :)
After Stage 2 of uploading the CSV file, I’m getting an empty PHP file in Firefox (which actually prompts me to open the file with Text editor).
I tried this in the Opera browser to and there I get an error message saying the page (that corresponds to step 3) is unavailable.
I’m using WP 2.3.2 and KBG 1.03, Firefox 2.0
hi, i think this is a very nice program, but im having problems with the passwords it generates, it does not send any password to the email addresses. my students are registered users of the site, how do i make KB Gradebook use their current passwords and username so that they wouldnt have to login in the gradebook again once they are logged in to the site? thanks a lot.
@venkat: I don’t have any ideas to tell you offhand, and with courses currently in session, I don’t have time right now to look into it. Apologies.
@Marfeal: Look at Randy’s comment above, starting with comment 11.
Hi Adam!.. thanks for this plugin!.. I have the same problem that Randy write in the message number 4 (the error in line 469). My PHP version is 4.4.7
Does thos plugin work only with PHP5?
Thanks again!
David, on line 469, find
and change it to
and see if that fixes it for you.
Dear Adam
Sorry to bother you and realise I might not get an immediately. I can’t get the email to work at all even for my own test email. Nothing seems to be being sent. Is there I set up for WP I need to know about (I use WP 2.5.1 on a basic Mac OS X installation). My students are not registered on the WP site. I’d love to get this working as it’s a great idea and should make it simple for students.
Dear Adam
No worries I solved the problem. My university server isn’t allowed to act as a mail server apparently and only has http enabled… :(. I can get the plugin working no problem on other servers. Thanks and Keep up the good work.
Leave a comment