fairydust
08-26-2009, 02:15 PM
I want someone to be able to enter in the thread title on one page for a particular forum and then be brought to the newthread form to fill in the rest of the details.
I have a simple form in a new template:
<form action="$vboptions[bburl]/newthread.php?do=newthread&f=2" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<strong>Subject: </strong>
<input name="subject" type="text" />
</form>
It works with my code perfectly when a user is logged in, however when a user is not logged in there is a problem
I get redirected to the sign-in page (Perfectly acceptable :)), but when I sign-in and I get the following error:
"Your submission could not be processed because a security token was missing or mismatched.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error."
As a workaround I have tried using the $vbulletin->csrf_skip_list[] = 'newthread' ;in the init_startup hook but it does not make any difference. Anyway I am not sure that this is a good solution.
Any suggestions appreciated
I have a simple form in a new template:
<form action="$vboptions[bburl]/newthread.php?do=newthread&f=2" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<strong>Subject: </strong>
<input name="subject" type="text" />
</form>
It works with my code perfectly when a user is logged in, however when a user is not logged in there is a problem
I get redirected to the sign-in page (Perfectly acceptable :)), but when I sign-in and I get the following error:
"Your submission could not be processed because a security token was missing or mismatched.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error."
As a workaround I have tried using the $vbulletin->csrf_skip_list[] = 'newthread' ;in the init_startup hook but it does not make any difference. Anyway I am not sure that this is a good solution.
Any suggestions appreciated