Creating Moodle Assignments


One of the main reasons we built ClassCube was to make a tool that could be linked from other online tools. ClassCube and Moodle both support a standard called LTI which allows you to create an assignment in Moodle that will launch ClassCube for your students and return grades back when they’re finished.

Creating Keys

To keep connections between ClassCube and Moodle secure you’ll need to create a set of keys. Go ahead and follow the link and create a set of keys that you can use in Moodle.

Creating an Assignment

For this to work you’re going to need to create an assignment in ClassCube.

Find the problem you want to use in the problem library. You should see a stack menu over on the far right side. Click that icon and you should see a menu similar to the following image.


Select the View All option to see a list of all assignments that you have created for this problem. You can also click on Create New and you’ll skip the next step.

Assignment List

After clicking on View All you’ll see a list of all assignments that you have created for this problem. The list is probably empty. That’s okay. We’ll add an assignment in a bit.


Click on the green Add Assignment button.

Adding an Assignment

The next form you’ll find is where you’ll enter the assignment information. The only thing you have to enter here is the assignment name. You can leave the open and close dates empty. But, if you want to limit when an assignment can be submitted you can enter dates here.


Once done, click on the blue Create Assignment button. Your assignment will save and you’ll go to a page with assignment information.

Get the Link

And the last step before going to Moodle is to get the assignment link.

On the right side of the page is the link that you’ll use in Moodle. Easiest way to copy the link is to click on the little copy icon next to the link. But, you can highlight the link and copy if that’s more your thing.



Assignment in Moodle

Head on over to your Moodle site and login to your course.  Click on the link to add an activity or resource. The activity you’re looking for is External Tool.


Setting up Moodle

If you have admin access to Moodle, or know who does, there’s an easier way. Click here for instructions. Once that’s done you can skip down to Adding Assignments.

After clicking the Add button to add the activity, there’s one step that you’ll need to do so Moodle and ClassCube can communicate. The good news is that you’ll only need to do this the first time. Moodle is smart enough so that next time you can just paste the link and it’ll figure out the rest.


Next to the Preconfigured Tool dropdown there’s a small green plus. We want to set ClassCube up as an external tool in Moodle. While we don’t have to do this, it’ll save you from having to copy and paste the security keys you created for every assignment. Go ahead and click the little green plus.

Tool Settings


Here you’ll enter the default settings for ClassCube so that you don’t have to do it every time.

Setting Notes
Tool Name We’ll suggest ClassCube, but it can really be anything.
Tool Base URL It’s important that you enter this exactly. It’s how Moodle knows which tool settings to use.
Tool Description Enter whatever description you want here, or leave it blank.
Consumer Key Paste in the consumer key that you created earlier.
Shared Secret Paste in the shared secret part of the key that you created earlier.
Custom Parameters Leave it blank.
Default Launch Container We’ve found that Embed, without blocks looks best. But you can use whichever you want. Plus, this is just default and can be changed on individual assignments.
Share Launcher’s Name This setting determines whether the student’s name is sent to ClassCube.We highly suggest enabling this. The first time one of your students launches a ClassCube assignment through Moodle a new user is created on our site. If a name is not available we have to create the new user with a random name which makes it much more difficult for you to find information on your student.

We’d also suggest not selecting Delegate to Teacher. That makes it something that has to be set on every assignment.

Share Launcher’s Email Similar to sharing the name, this determines whether the student’s email address is sent along with the launch data. And, we’d suggest enabling it for all the same reasons.
Accept Grades from Tool If you want submissions from ClassCube to show up as grades in your Moodle gradebook, enable this.
Force SSL 99% sure you’ll want to check this. That way any connections between your Moodle site and ClassCube will be over SSL connections instead of standard HTTP. Only reason you would not want to check this is if your server doesn’t support it.

Notes on Privacy

The first time that one of your students launches a ClassCube assignment through Moodle a new user will be created on our site. This has to be done so that problem attempts can be stored with the right user. If you cannot submit names for whatever reason, you can leave the two share options set to not send names and emails. Then, the users created will have a random, anonymous name and email address.

That said, even if you do not send names and email addresses your students will still have the option to enter their names. There will be a Claim button in the editor where they can create their own user account that’s tied to their Moodle account.

Adding an Assignment

After you save the external tool settings you’ll be taken back to the assignment creation page where you can actually make the assignment.


This is where you’re going to give the assignment a name. This can be different then the one you used when you created the assignment in ClassCube. The activity name here is the one that your students will see in Moodle and will show up in the Moodle gradebook.

Leave preconfigured tool at Automatic.

And paste the link you copied from ClassCube into the Launch URL field. It’ll start with and have a p=XXX and u=YYY in it. After you tab off of that field Moodle should pop up a message telling you which config it’s using. In the screen shot it says “Using tool configuration: ClassCube.”


On the grades settings in Moodle you can set it to whatever grade you want. It doesn’t have to be out of 100. ClassCube will send back the grade in the range from 0.0-1.0 and Moodle is smart enough to scale that to whatever grade you enter.

Save It

Click on either Save and View or Save and Return depending on whether you want to go to the assignment or back to the course overview. If you go to the assignment you should see the problem embedded into your site.


One thing to notice is that this is launched for you. You’re able to submit solutions to the problem and see how you can do. It won’t affect what your students see.

Also, since you launched as an instructor you’ll have an option in the hamburger menu on the right to view student submissions. And that’s another reason why you probably want to send student names on launch. The names used on the list of submissions is the name that’s stored on ClassCube, not Moodle.