DCAS Open EdX Documentation

DCAS Open EdX Documentation

  • Docs

›Adding Problems

Creating a Course

  • Create a New Online Course
  • Set Course Schedule & Details
  • Add Sections, Subsections & Units
  • Managing Unit and Component
  • Adding Videos
  • Adding HTML
  • Adding Discussions
  • Adding Problems

    • Adding Problems
    • Problem Types
    • Drag and Drop
    • Pointing on a picture
  • Adding Images and Figures
  • Uploading Static Content
  • Course Visibility
  • Creating pages
  • Grading
  • Commonly Used Advanced Settings

Running a Course

  • Managing Certificates
  • Common Instructor Dashboard Tasks
  • Managing Course Discussions

Advanced Management

  • Importing / Exporting Courses
  • Change a user’s password
  • Inactivate / Activate a User
  • Understanding User Roles
  • Set a user to staff or superuser
  • Server Tasks

    • SSH into Server
    • Set or Change a Password

Migration

  • Migrate EdX (Single-Server)
  • Migrate the Theme

Migrate MySQL

  • Migrating MySQL Database off of Single-Server

Migrate Mongo

  • Migrating Mongo Database off of Single-Server

Configuration

  • Enable and Update Additional Languages
  • Enable Downloads from Instructor tab in LMS
  • Configure and Enable Certificate
  • Configure Open Response Assessment

Configure Ecommerce

  • Basic Ecommerce Setup
  • Setup JWT Keys
  • Getting Course Details on Checkout Page
  • Troubleshoot Ecommerce

Discovery Setup

  • Configure Discovery

Comprehensive theming

  • Setup Comprehensive Theming

Microsites

  • Setup Microsites
  • Common Microsite Configurations

API

  • Setup API
  • Common APIs Demonstration
  • Customizing an API
  • DCAS API Handoff for LMS

Xblock

  • Xblock introduction
  • Xblock installation and uninstallation
  • Xblock Development

Scaling the architecture

  • Scaling Mongo
  • Scaling MySQL
  • Dedicated Storage Configuration Outline
  • Azure Storage Configuration

    • Azure Storage Configuration
    • Basic Configuration
    • Private Blob Configuration

SCORM

  • SCORM Azure Storage

Trouble-Shooting

  • Forgot admin username or password
  • Server error
  • Can't reach your site
  • Problems with RabbitMQ
  • Can't login to LMS or CMS
  • Locate the error
  • Jobs are stucking
  • Mongodb not working
  • Forums Breaking Issue
  • Check open edx services status
  • Problem with mysql
  • Can't receive email
  • CSRF token error

Pointing on a picture

Course creators can build “Point on a Picture” exercises in Edx Studio. Also known as an “Image Mapped Input Problem”, students click on a predefined region on an image to solve a problem. This type of problem works great on a mobile device.

The clickable regions can be:

  • A single rectangle.
  • Multiple rectangles.
  • A geometric shape comprised of three or more coordinate points.

Images and Coordinates

To begin, you will need three things:

  1. One image or multiple images stitched together. (see Combining Images)

  2. Height and width of the image in pixels. (example: 800 x 240 pixels)

  3. Coordinates pairs that define the region or clickable area.

    1. For a single rectangular region, you need two pairs of coordinates. (Upper left corner and lower right corner of the rectangle.)
    2. For multiple rectangles, you need two pairs of coordinates for each rectangle.

Getting Started

  1. In Edx Studio, navigate to the Content dropdown and select Files & Uploads to add your image(s).

  2. Go to the Unit where you would like to add the problem.

    1. Under Add a New Component, select Problems and click the Advanced tab.
    2. Select Image Map Input.
    3. When the new component appears, click EDIT.
    4. This is where you will replace the example text with your own.

Working with the Code

  1. In the below example, the blue text is where you can edit details for the problem:

    <p>
    Add a paragraph that describes the problem here. 
    </p>
    <p>Add additional paragraphs or questions here.</p>
    <imageresponse>
        <imageinput src="Copy the image link from Files & Uploads and paste here."
        width="Width of image" height="Height of image" rectangle="(X-Axis, Y-Axis)-(X-Axis, Y-Axis)" alt="Describe your image here."/>
    </imageresponse>
    <solution>
    <div class="detailed-solution">
        <p>Explanation</p>
        <p>Here you can explain why the answer is correct.</p>
    </div>
    </solution>
    </problem>
    
  2. Below is an example of code with three rectangular regions (Notice the three pairs of coordinates):

    <p>In the following image, click inside any of the rectangles.</p>
    <imageresponse>
        <imageinput src="/static/imageresponse_multipleregions.png" width="450"
        height="450" rectangle="(62,94)-(262,137);(306,41)-(389,173);(89,211)-
        (187,410)" alt="Three rectangles on a white background" />
    </imageresponse>
    </problem>
    

Working with Region Coordinates

  • Each pair of coordinates refers to a single pixel on your image.
  • Two pairs of coordinates point to the upper right corner of the region (first pair) and the lower (second pair).
  • A useful program to find pixel coordinates is Free Ruler

Example: Imagine the image below is 8x8 pixels (each square is 1 pixel):

Image mapped input

To define the clickable region for two rectangles, we use the following code:

width="8" height="8" rectangle="(0,1)-(2,3);(4,5)-(7,6)"

This is the result:

Image mapped input modified

Combining Images

Use the Photo Stitching tool from Fotor to combine two or more images for your Point on Picture problem.

Import the photos from the right side and drag them to the center to combine. Example:

Photo Stitching Tool

The image will look like this:

Image mapped input

Using Free Ruler we can find the pixel coordinates to make a rectangular region around the coffee cup. The top left corner of the cup is approx. (300,176) and the lower right corner is (441,300).

Image mapped input modified

This is the code:

width="1014" height="343" rectangle="(300,176)-(441,300)"

Example in Edx:

Finding Breakfast

See the code below:

Finding Breakfast HTML

For an interactive example, see Point on a Picture Templates in EdX:

  • Point on a Picture (2 Images)
  • Point on a Picture (3 Images)
  • Point on a Picture (4 Images)
← Drag and DropAdding Images and Figures →
  • Images and Coordinates
  • Getting Started
  • Working with the Code
  • Working with Region Coordinates
  • Combining Images
DCAS Open EdX Documentation
Docs
Create an Online Course
More
Curricu.me Website
Copyright © 2022 DCAS