Opened 12 years ago
Closed 12 years ago
#2180 closed enhancement (fixed)
SlickQuiz: Optionally extract the quiz ID from the URL - patch included
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Severity: | normal |
| Plugin: | not-listed | Keywords: | slickquiz, slick-quiz, quiz |
| Cc: | nfreear@… |
Description
Hi,
I'm using Slick Quiz in a project - nice work @jewlofthelotus.
I'd like to propose a backwards-compatible option please. When the shortcode contains an ID value of "url", look for the quiz ID in the URL of the blog post or page.
Shortcode:
[slickquiz id=url]
URL example:
/path-to-page-or-post/{QUIZ ID}/
I'll attach a patch and/or point to a changeset on a branch on GitHub. The patch will guard against mis-spelling and potential security issues.
I hope this helps. Many thanks,
Nick
Attachments (1)
Change History (4)
#1
@
12 years ago
- Cc nfreear@… added
You can also see the commit on GitHub (forked from, Github: wp-plugins/slickquiz):
#3
@
12 years ago
- Resolution set to fixed
- Status changed from new to closed
I'm happy to say that Julie has merged my patch.
Closing.
Note: See
TracTickets for help on using
tickets.
Patch for "php/slickquiz-front.php" (Git format)