The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
How can I give a securitytoken to a script? This does not work:
Code:
$(document).ready(function(){
$("form#submit").submit(function() {
var SECURITYTOKEN = "{vb:raw bbuserinfo.securitytoken}";
$.ajax({
type: "POST",
url: "misc.php",
data: "do=updatethis&securitytoken =" + SECURITYTOKEN,
success: function(){
$('form#submit').hide(function(){$('div.success').fadeIn();});
}
});
return false;
});
});
|
|
#2
|
||||
|
||||
|
Did you mean to put a space between securitytoken and the = sign? I don't think you want that.
|
|
#3
|
|||
|
|||
|
Not necessary to define the security token. vB does it by default when loading page.
Also take a note that you have a space before = sign. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|