The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am trying to put a form into a custom BBCODE that searches a custom field6. I have my reasons but am looking for help to make this work.
I have tried so many different suggestion that I found searching VB and vbmods forums. When I put the below into a BBCODE and use that code in a post, I get "Your submission could not be processed because a security token was invalid." Code:
<form action="memberlist.php?do=getall" method="post"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="getall" /> <input type="text" class="bginput" name="field6" value="" size="25" maxlength="100" /> <input type="submit" class="button" value="Search Now" accesskey="s" /> </form> I have tried all of the following as well with no success, Code:
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> Code:
<input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> Oddly, this one works in a nonvb page but not in a post of course because it has PHP code in it. Code:
<?php require_once('./Forum/global.php'); ?> <form action="/Forum/memberlist.php?do=getall" method="post"> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="<?php echo($vbulletin->userinfo['securitytoken']); ?>" /> <input type="hidden" name="do" value="getall" /> <input type="text" class="bginput" name="field6" value="" size="25" maxlength="100" /> <input type="submit" class="button" value="Search Now" accesskey="s" /> </form> Is there something special or different that needs to be stated in the security token here that would allow this search box of a custom field to work in a post using a BBCODE? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|