MyBB Community Forums

Full Version: Authorization Error When Attempting To Subscribe to Threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. Whenever I attempt to subscribe to threads, I receive the following message:

"Authorization code mismatch. Are you accessing this function correctly? Please go back and try again."

What am I doing wrong? Thanks for your assistance!
Your answer will be similar* to this thread
http://community.mybb.com/post-617627.html

*Might be a different template though (something like showthread template instead of threadlist)

1) Your template is from a non-default theme, or maybe you didn't run an upgrade script at some point.
2) The missing code is ' &my_post_key={$mybb->post_code} ' or very similar.

#
More (related) info here
http://community.mybb.com/post-617627.html

##
EDIT:

"showthread" template
Near the bottom look for a section similar to this
	{$quickreply}
	{$threadexbox}
	{$similarthreads}
	<br />
	<div class="float_left">
		<ul class="thread_tools">
			<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
			<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
			<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
		</ul>
	</div>

If you are using a heavily altered theme, then the only line you need to be concerned with is this one.

			<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>

^^^
That has the missing code.
Have fun Smile

ps. I think that is correct, if not someone else will come along w/ the right answer.
Seeker fixed my problem. Thanks, Seeker!
You are welcome Smile
Hi

I'm totally newby with mybb, and need a little help.
Where could I found the template for the emails sent by a forum when a user is subscribed for a thread?
In the email there is an unsubscribe link which should be corrected as seeker described above.

Thanks
The contents of emails are in language files, not templates, and if the link the email is missing this bit of code then your language files are not up to date.
Thanks. Now I know where to search for.