2014-09-13, 01:50 PM
2014-09-13, 02:19 PM
$mybb->post_key is just a variable that contains a unique key/identifier for your user account. It's used to verify that requests sent to the server are actually from you. If someone attempts to spoof a URL request but has the wrong post key, MyBB will flag an error.
2014-09-13, 02:20 PM
Edit: delayed response
headerinclude template consists of var my_post_key = "{$mybb->post_code}"; and it is a constant throughout the login session
headerinclude template consists of var my_post_key = "{$mybb->post_code}"; and it is a constant throughout the login session
2014-09-13, 11:52 PM
It's one thing keeping this from working:
<img src="newreply.php?tid=159335&processed=1&action=do_newreply&subject=Lol&message=Fake+Reply">
2023-10-08, 10:18 AM
How can I get the current value of "my_post_key" if I want to auto-create a new thread for users to comment on my blog posts? Is it stored in $_SESSION?
Also, I see another hidden hash field in the thread posting form called "posthash". What would I need to do about that?
Well, I guess posthash could be left blank since I'm not adding attachments to these new threads?
https://community.mybb.com/thread-1629-post-9736.html
But the field is already populated when I load newthread.php. So does there have to be something in that field or not?
Also, I see another hidden hash field in the thread posting form called "posthash". What would I need to do about that?
Well, I guess posthash could be left blank since I'm not adding attachments to these new threads?
https://community.mybb.com/thread-1629-post-9736.html
But the field is already populated when I load newthread.php. So does there have to be something in that field or not?