Skip to:
Content

bbPress.org

Changes between Initial Version and Version 1 of Ticket #2797, comment 6


Ignore:
Timestamp:
07/16/2015 12:23:02 PM (10 years ago)
Author:
tharsheblows
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2797, comment 6

    initial v1  
    1111 - make a hash value with user id, topic id and the salt (not terribly a secure one but it doesn't matter)
    1212 - unsubscribe link is the link to the topic with query args: user id, topic id and hash value
    13  - add action to eg bbp_template_before_single_topic to check for query args and unsubscribe if everything checks out (compare topic id to current topic, user id to current user and hash value to make sure user id and topic id haven't been altered)
     13 - add action to eg bbp_template_before_single_topic to check for query args and unsubscribe if everything checks out (compare topic id to current topic, user id to current user and check hash value to make sure user id and topic id haven't been altered)
    1414 - adds a template notice at the top to let you know the results of the unsubscribe attempt
    1515