The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Forms -- securitytoken?
I've been looking for an example/tutorial of a custom form which makes use of the vb securitytoken system but haven't had any luck. Can anyone help out? I'd appreciate it.
|
#2
|
||||
|
||||
A Search in Templates for securitytoken gives me the template (well, many, many, but..) "navbar" which has it at the very bottom of that template.
HTML Code:
<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices"> <input type="hidden" name="do" value="dismissnotice" /> <input type="hidden" name="s" value="{vb:raw session.sessionurl}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" /> <input type="hidden" name="url" value="{vb:raw return_link}" /> <ol> {vb:raw notices} </ol> </form> |
#3
|
|||
|
|||
Thank you Lynne I appreciate how helpful you are in the community. Your tutorials, in particular, have been very helpful. Does anything have to be done for vb to make use of the token or does it do it automatically if the "securitytoken" var is present?
I am trying to reverse engineer how vb does form processing/validation/error display/repopulate form fields (if error). I am writing a fairly large database application and would like to do it securely using vb's native methods. Until now, I normally would just include vb into a framework like codeigniter and use that for the custom app using vb's user/permission system, but thought I would take a stab at learning vb more in depth and trying to stay native. I recently purchased v4 for a new project and really appreciate how far its come in its maturity. Looking at vb4 code and vb3 code is night and day. (now if they would just move templates out of the database it would be sooo much easier to develop for ) Thanks for any advise. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|