The plugin adds the current user's WordPress ID, first name, last name, and email address to a ClassMarker® test link or iframe. An iframe embeds the test directly in your WordPress page, while a link opens the test on ClassMarker®.
Place the shortcode in any page or post. You can use several test links or iframes on the same page and an unlimited number of plugin shortcodes across the site.
Install the plugin from its ZIP file in the usual way: open Add New Plugin, upload the ZIP file, and activate it.
Immediately after activation, the plugin may not yet appear under Dashboard -> Settings. A notice at the top of the WordPress admin area will ask you to enter the account details used on my site. The plugin uses them to validate the license and check for updates. Follow the additional admin prompts while the required background tasks are completed.
When activation is complete, the plugin appears under Dashboard -> Settings. If a requirement is missing, the plugin displays a message explaining what still needs to be done.
The plugin generates the required HTML link or iframe and includes the current logged-in member's name, email address, and WordPress user ID in the ClassMarker® request. Place the KC WP+ClassMarker shortcode on the page instead of the standard ClassMarker® HTML code and add the required parameters.
Short code
[kc_wpcm quiz=quizID iframe=1 frameborder=0 style=width:100%;max-width:700px; height=800]
[kc_wpcm quiz=quizID style=max-width:700px; width=100% height=80px linktext="Run the quiz"]
Parameters
quiz - Required. Find the quiz ID in the standard ClassMarker® code by locating the quiz= parameter, then copy its value into the shortcode.
iframe - Optional. Use 1 to embed the ClassMarker® test in an iframe on your page. Use 0 or omit the parameter to create a link that opens the test on the ClassMarker® site.
frameborder - Optional. When iframe=1 is used, this value becomes the iframe's frameborder attribute.
style - Optional. Adds inline CSS to the generated HTML element. A value without spaces can be entered directly. If the CSS value contains spaces, enclose the entire value in double quotation marks.
width - Optional. Sets the width of the generated HTML element.
height - Optional. Sets the height of the generated HTML element.
linktext - Required when the shortcode creates a link. This is the visible text of the link. Enclose it in double quotation marks when it contains spaces. Quotation marks are optional for a single-word value. The same rule applies to other shortcode parameters that contain spaces.
You can create as many shortcodes as necessary. A page may contain several shortcodes, and each one may generate either an iframe or a link.
Example:
The shortcode
[kc_wpcm quiz=1111111111111111 frameborder=0 style="width:100%;max-width:700px;" height=800 iframe=1]
produces the HTML code (when user "Krum" is logged in)
<iframe src="https://www.classmarker.com/online-test/start/?iframe=1&quiz=1111111111111111&cm_user_id=3693&cm_fn=Krum&cm_ln=Cheshmedjiev&cm_e=onlinevents.co.uk@krumch.com" style="width:100%;max-width:700px;" height="800" frameborder="0"></iframe>
Have a question? Contact me and I will be happy to help.
No screenshots are needed. The admin page contains the usage instructions, and all test-specific settings are defined directly in the shortcode.