This is exactly what I was looking for, however it does not seem to work.
No luck with either of these:
$vbulletin->userinfo['securitytoken']
$bbuserinfo[securitytoken]
Am I calling the variable wrong? Echo should output these, correct?
As soon as I get results from either of these using the global.php or whatever it is, I can modify my code below with possibly an if/else "guest".
<?php
chdir ('/home/username/public_html/forums');
require_once('./global.php'); ?>
<form action="/forums/search.php?do=process" method="post">
<div>
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="" />
<input type="text" id="query" name="query" tabindex="1001" class="text" />
<input type="submit" class="button" tabindex="1004" value="Search Forums" class="searchbut" />
<input type="hidden" name="securitytoken" value="<?php echo $bbuserinfo[securitytoken] ?>" />
<input type="hidden" name="showposts" value="1" id="rb_nb_sp0" tabindex="1002" />
</div>
</form>
This will ultimately end up within a Wordpress text widget. Maybe the global.php variables are sent via headers only, causing problems...?
|