The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with security token.
I have a small webpage that I include in a widget.
I basicly just is a form. But when I submit the form, I get a error: (For some reason, the error message is in swedish, but it's something like this) Quote:
This I have done, but it won't work anyway. Any ideas? PHP Code:
|
#2
|
||||
|
||||
Try
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> |
#3
|
|||
|
|||
Same error
Quote:
Or should it just be enough with just passing it along with the form? Also, the widget loads a "external" webpage: PHP Code:
|
#4
|
||||
|
||||
on a plus note the code is not with in the PHP braces so its basicly html. You might need to do
Code:
<input type="hidden" name="securitytoken" value="<?php echo $bbuserinfo['securitytoken']; ?>" /> |
#5
|
|||
|
|||
Well, this time I got the error message in english anyway
Quote:
Just to clearify everything. I have created a widget (PHP Direct Execution) with this content: PHP Code:
PHP Code:
Quote:
Edit: If I do a simple <?php echo $bbuserinfo['securitytoken']; ?>, it dosen't show anything, but that's maybe normal? |
#6
|
|||
|
|||
Any ideas about this?
|
#7
|
|||
|
|||
Sorry for bumping this thread again, but I can't get it to work and I need it to be done soon
I found another thread with the same problem (sort of...) in witch someone told him to add: PHP Code:
So did I, but with no success. Anyone? Edit: When I looked in the source, it seems as neither the securitytoken nor the sessionhash is implemented correctly on my page: <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="" /> Clearly, I use the "{vb:raw session.sessionhash}" wrong, but why isn't the token generated? Edit 2: I solved the sessionhash with: PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|