![]() |
Missing Security Token - Template Issue
I have searched and narrowed the problem down to my template. I'm using a very stripped down template for a mobile website. I'm lost when it comes to coding it to work correctly. I tried pulling the quickreply code from another template but then it doesn't display correctly. I do not want the WYSIG options, just a basic text input box and a "post" button.
Code:
$stylevar[htmldoctype] |
Here is the article about the security tokens - it has the line you need to add to your form in there. Implementing CSRF Protection in modifications
|
add
HTML Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> HTML Code:
<input type="hidden" name="s" value="$session[sessionhash]" /> |
you find
showthread_quickreply showthread_quickreply_full and add HTML Code:
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> |
why can't updated versions of vBulletin add the above codes ?
|
Updated versions of the vB code does add in the above code. Problem is, too many admins don't bother to upgrade their templates after an upgrade and so they code doesn't get added.
You *need* to upgrade your custom templates after an upgrade! |
I created a style using the style generator and occasionally still have the same problem
|
Ok, if i get it right, every where we have the sessionhash value, we should find the security token under it ! Right?
I'm having some trouble with one skin in particular, my other 4 are all ok but this one is giving me trouble with some options! Could it be this???? |
All times are GMT. The time now is 12:15 AM. |
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:
|