The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]() Quote:
Oh thanks man, it working! I hit my head on a wall for days on this problem. |
#12
|
|||
|
|||
![]()
Having the same problem here!
Where does this code go? require_once('./global.php'); print($vbulletin->userinfo['securitytoken']); |
#13
|
||||
|
||||
![]()
This thread only applies if you are creating your own files - are you doing this?
|
#14
|
|||
|
|||
![]()
Problem has been solved, thanks for checking in.
This was for a search box outside of the existing ones, so it needed to generate the token. |
#15
|
|||
|
|||
![]()
Would you mind explaining how you did it step by step? Thanks much.
|
#16
|
||||
|
||||
![]()
Including global.php will generate a token automatically, otherwise, you can generate one yourself.
|
#17
|
|||
|
|||
![]()
Thanks for the quick response. I'm trying to do this on a wordpress page. On the appropriate php file for the template sidebar of WP I put this code:
Code:
<?php $vwd = '/home/domains/theybannedme.com/www_root/forums'; if ($vwd) { chdir($vwd); } require_once ('/home/domains/theybannedme.com/www_root/forums/global.php'); print($vbulletin->userinfo['securitytoken']); ?> <div class="sidebar-item"> <form action="http://www.theybannedme.com/forums/memberlist.php?do=search" method="post" name="search"> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="text" name="query" size="20" value="Search" onfocus="this.value=''" /> <input type="submit" value="Go" name="gobutton"> </form> </div> |
#18
|
||||
|
||||
![]()
$bbuserinfo can only be used inside vBulletin templates.
Code:
<input type="hidden" name="securitytoken" value="<?php echo $vbulletin->userinfo['securitytoken']; ?>" /> |
#19
|
|||
|
|||
![]()
Using this:
Code:
<?php $vwd = '/home/domains/theybannedme.com/www_root/forums'; if ($vwd) { chdir($vwd); } require_once ('/home/domains/theybannedme.com/www_root/forums/global.php'); print($vbulletin->userinfo['securitytoken']); ?> <form action="http://www.theybannedme.com/forums/memberlist.php?do=search" method="post" name="search"> <input type="hidden" name="securitytoken" value="<?php echo $vbulletin->userinfo['securitytoken']; ?>" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="text" name="query" size="20" value="Search" onfocus="this.value=''" /> <input type="submit" value="Go" name="gobutton"> </form> ![]() Quote:
|
#20
|
||||
|
||||
![]()
View the source of the page - is there a token there?
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|