Plugin Directory

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: nfreear's profile nfreear's profile nfreear 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)

slickquiz-url-parse-29mar2014-ticket-2180.diff (814 bytes) - added by nfreear 12 years ago.
Patch for "php/slickquiz-front.php" (Git format)

Download all attachments as: .zip

Change History (4)

@nfreear
12 years ago

Patch for "php/slickquiz-front.php" (Git format)

#1 @nfreear
12 years ago

  • Cc nfreear@… added

You can also see the commit on GitHub (forked from, Github: wp-plugins/slickquiz):

#2 @nfreear
12 years ago

Please ignore the last comment ;).

See instead:

#3 @nfreear
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.