The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Form in forumblock
I can get the below to work(logged in and as guest) if placed in a standard template, but if placed in the forumblock I get the typical securitytoken issue when logged in (it is still ok for guest).
Code:
<form action="findwebhost.php" method="post"> ---code--- <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> </form> |
#2
|
|||
|
|||
An html orum block is not a template, so you can't use {vb:raw bbuserinfo.securitytoken} to get the securitytoken value. What you can do is make it a php block, build your html into a string and return it. In that case you could either put your html in a string constant, or you can render a template.
|
#3
|
||||
|
||||
Or you can create a template, put all your stuff in there and use it for your forumblock (if it's the same as for widgets, havn't looked at forumblocks for quite some time).
|
#4
|
|||
|
|||
That's true, you could also add a "Custom HTML/PHP" block, and on the settings page don't change anything except the "Template To Use" at the bottom. In that case you'd probably want to copy the template "block_html" for your new template and edit it to include your form. That way your block will have the correct "wrapper" html.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|