MyBB Community Forums

Full Version: NetPen theme - end thread subscription from e-mail
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
1. When a user receives an e-mail about new posts on a subscribed thread the last url (link) in the e-mail is:

Unsubscription Information:
 
If you would not like to receive any more notifications of replies to this thread, visit the following URL in your browser:
https://test...org/usercp.php?action=removesubscription&tid=10514

2. This url is missing "my_post_key" code from the end.

3. Missing the variable "my_post_key" causes the "Authorization code mismatch" error.

4. Here's an example of the correct url:

https://test...org/usercp2.php?action=removesubscription&tid=10514&my_post_key=67fa26beeeb9c5319c227574ab5b68c5

5. The "my_post_key" should be received from the language file

inc\languages\english\messages.lang.php

Such integers inside logical parentheses should result showing for example thread id in the e-mail.
What integer is used to display "my_post_key" variable?

{5}/usercp2.php?action=removesubscription&tid={7}&key={8}&my_post_key={9}
I confirm this problem!
Does that happen with the default theme?

The my_post_key URL parameter should not be included since MyBB 1.8.23 (https://github.com/mybb/mybb/pull/4079/files adds a template usercp_removesubscription_thread with a confirmation form) - if it is, it would be validated and may indeed fail if empty.
(2024-04-17, 11:52 AM)Devilshakerz Wrote: [ -> ]Does that happen with the default theme?

The my_post_key URL parameter should not be included since MyBB 1.8.23 (https://github.com/mybb/mybb/pull/4079/files adds a template usercp_removesubscription_thread with a confirmation form) - if it is, it would be validated and may indeed fail if empty.

Thank you!

So we need to replace:
{7}/usercp2.php?action=removesubscription&type=forum&fid={9}&my_post_key={10}

To:
{7}/usercp.php?action=removesubscription&type=forum&fid={9}
Thank you! This way it's working without "my_post_key" tag:

 https://test...org/usercp.php?action=removesubscription&tid=7585


Question resolved. 
The result tested on both themes (MyBB default and Netpen).