![]() |
Need help on custom plugin.
On my site I am making a pastebin page so users can store text files on there if needed. And when trying to submit a paste, I get an error saying a security token is missing. I would like if someone could post the coding into mine, I wouldn't know where to put it in. I don't have a XML I'm just adding a custom page. Here is the code.
Code:
<?php |
What's your "Paste" template got in it? Chances are that you forgot to add the needed security token.
In whatever <form> you have, be sure to add the tag <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> Some advice, though. Don't access $_POST, $_GET, or $_REQUEST directly. Instead of: PHP Code:
PHP Code:
|
Quote:
Code:
$stylevar[htmldoctype] |
Anywhere after <form action="" method="post" align="center"> and before </form> would do fine. Or at least would get rid of the error for the security token. :3
|
All times are GMT. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|