Project

General

Profile

Actions

Support #13492

closed

customized handler for quizlet embeds

Added by scott voth over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Shortcodes and embeds
Target version:
Start date:
2020-10-22
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Quizlet embeds use iframe to display content. Can we create a shortcode to get around this issue?

Here is the iframe:
<iframe src="https://quizlet.com/264774785/match/embed?x=1jj1" height="500" width="100%" style="border:0"></iframe>

And here is the url:
https://quizlet.com/264774785/cat-skull-flash-cards/

And here is the url provided by requester:
https://urldefense.proofpoint.com/v2/url?u=https-3A__quizlet.com_264774785_cat-2Dskull-2Dflash-2Dcards_&d=DwIFAg&c=2tStSn3Yyb7CMXxZW9nuG-Sh-vz6mhnySBmFi7HdCsM&r=9GIaAkwci6fMWVm_EgNtCheozH8_MsxVTRCdoacHHv7ng7E2cN4tJq1aa7Kj100Lp8xW3424vJRzlrM1oveo6HdrAckS7GDZFg0mUkUp0vV5lvDTK_mbgkKMjHa4GWxe&m=jf1Ld2v0zeWXuqSIcUWl9vidTJERi-ow83agjCttXeA&s=RDwsGav0vydeAnMznEXflCb9_CExW6DeDtYOdLwf46c&e=

Not sure where it comes from, but it resolves to the first URL

Actions #1

Updated by Boone Gorges over 3 years ago

  • Category name changed from WordPress Plugins to Shortcodes and embeds
  • Status changed from New to Staged for Production Release
  • Target version set to 1.17.6

The long URL is from the ProofPoint service, which scans email content and checks them for malware links.

I've introduced quizlet support in https://github.com/cuny-academic-commons/cac/commit/8e8a2738758b686516f57d8a963334e43d010dd6.

Simple embeds are supported by placing the Quizlet URL on its own line:

https://quizlet.com/264774785/test

https://quizlet.com/264774785/cat-skull-flash-cards/

For greater control, you can also use a shortcode. Pass either the numeric ID or the URL. You can provide from the five 'type' values supported by Quizlet embeds: 'match', 'flashcards' (default), 'learn', 'test', 'spell'.

[quizlet url="https://quizlet.com/264774785/cat-skull-flash-cards/" width="400px" height="400px"]

[quizlet id="264774785" type="test"]

This will be available after Tuesday's maintenance release.

Actions #2

Updated by Boone Gorges over 3 years ago

  • Target version changed from 1.17.6 to 1.17.7
Actions #3

Updated by Boone Gorges over 3 years ago

  • Target version changed from 1.17.7 to 1.17.6
Actions #4

Updated by Boone Gorges over 3 years ago

  • Status changed from Staged for Production Release to Resolved
Actions

Also available in: Atom PDF