Project

General

Profile

Support #13492

customized handler for quizlet embeds

Added by scott voth over 1 year ago. Updated over 1 year 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:

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

History

#1 Updated by Boone Gorges over 1 year 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.

#2 Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.17.6 to 1.17.7

#3 Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.17.7 to 1.17.6

#4 Updated by Boone Gorges over 1 year ago

  • Status changed from Staged for Production Release to Resolved

Also available in: Atom PDF