davelester / WPBadger

A lightweight badge issuing platform built using WordPress
Other
43 stars 13 forks source link

Custom Routing for Award Acceptance Page #1

Closed davelester closed 12 years ago

davelester commented 12 years ago

We need a public landing page that people who are awarded badges can be sent to, in order to accept or decline a badge. The url may be something like wordpressurl.com/issuedbadge?issue_id=50ugsj9ah98h4iso, where the issue id is a unique string that cannot be easily guess, and is specific to each issuance of a badge (not just an individual).

Routing in WordPress is funky, so in order to make this happen we'll probably need to use the query_vars filter: http://wordpress.stackexchange.com/questions/24063/custom-routing-for-plugins

davelester commented 12 years ago

Routes are properly working, but the related autogeneration of an issue_id that becomes the permalink is not working

davelester commented 12 years ago

WordPress makes is really hard to do this.. still searching for a way (using a filter?) to alter the post slug prior to posting. An alternative is to, instead of worrying about the slug itself, just focus on a parameter that could be added to a route.

davelester commented 12 years ago

Fixed this. For the record, the 'name_save_pre' does the trick.