Comments (1)
If you look at what happens when you embed a question using Moodle's HTML, you will see this is exactly how it works internally.
However, there has to be some security built in, to stop, for example, students trying to guess the ids of the questions in the final exam, and so embed them in forum posts to each other.
So, the embed code had to contain a hash of various things, and a secret known only to the server (See code ehre: https://github.com/moodleou/moodle-filter_embedquestion/blob/main/classes/token.php#L28).
There is a web service (used to the HTML editor plugin) to get that secure code, so in your generator, either call that service, or replicate the logic to compute the has.
I don't think this requires any changes to this plugin, so I will close this.
from moodle-filter_embedquestion.
Related Issues (20)
- Embed questions from system context HOT 6
- syntax error on PHP <7.1 HOT 2
- 3.9 - require.js breaks site HOT 2
- Backup and restore between Moodle instances HOT 8
- Toggle to allow embedding questions/categories without an ID number HOT 3
- EmbedQuestion Breaks Recycle Bin HOT 1
- This question may not be embedded here. HOT 1
- Failing test
- Failing Behat test - filter_embedquestion.feature HOT 3
- Improvements for adaptive mode HOT 2
- Embedded STACK question not respecting quiz mode
- M4.1 | Shows completion setting twice HOT 10
- Embedded questions duplicate themselves when part of a book description HOT 1
- Shows "reset user tour on this page" link twice HOT 2
- "Drag and Drop into Text" questions not randomized when embedded HOT 2
- Not working as described in 3.6 HOT 2
- No atto integration...? HOT 2
- Can't use random question from category if not all questions have idnumbers HOT 1
- No submit button for embedded essay type question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-filter_embedquestion.