The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Your submission could not be processed because a security token was missing.
Got that error when I try to use the search function on my forums: forum.theclubpenguincheats.com
I Manually editted a ton of the template code so I dont want to "revert it to default' or anything like that. Help what do I do? |
#2
|
||||
|
||||
Since you don't want to revert templates, here is a thread about how to add the correct code to your forms - Implementing CSRF Protection in modifications
|
#3
|
|||
|
|||
Hi that thread is too confusing as the person is not being beginner friendly and just saying "thould be added to the top of the file under the define for THIS_SCRIPT." and all this other stuff.
Where is THIS_SCRIPT!? |
#4
|
||||
|
||||
THIS_SCRIPT is defined at the top of any vbulletin page that renders text. It's one of the first lines in the page - look at index.php or forumdisplay.php or showthread.php etc.
|
#5
|
|||
|
|||
OK but what files do I add that code to and where? And do I have to do the stuff with Template Changes if it's only the search button thats broken when I hit search?
Do I do the stuff for Exempting Certain Actions? And do I do the stuff Dismounted said "add the security token to AJAX requests using POST"? Now do you see why Im confused? It's pretty much an overload to just link to something like that and assume a noob like me knows what to do. |
#6
|
||||
|
||||
You add the code to the forms being used when you are getting the error. In your case, if it's the search form, make sure it is in the search form. As for the ajax requests, if your search form uses ajax, then yeah, you may have to add it there.
Seriously, the easiest way to find/solve this problem is through reverting templates or comparing them to the default one. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|