This is an old issue that I have left for some time. I hoped updates would solve things :-) It has not, so far...
I have a php-direct eval code here:
http://www.41hz.com/forums/content.php?253-TSdb
It works sometimes....
1)))
It works fine as is but only if I turn OFF vb caching for the whole site ( I havethe cache timeout set to 0 for the php-direct eval content, but it does not seem to do it...)
How can I turn off caching off for this code or for all php direct eval, but not for the rest of the site? I have tried adding to the code:
PHP Code:
$config['cache_ttl'] = 0;
in vain
2)))
It works as long as you are not logged on to the site. If you log on to the forum / site, go to the php page, select a drop-down and hit the button you get the error message:
vBulletin Message
Your submission could not be processed because a security token was missing.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
I have tried adding, within the form, each of these (one at a time):
PHP Code:
$a.='<input type="hidden" name="securitytoken" value="vb::$vbulletin->userinfo[securitytoken]"/>';
$a.='<input type="hidden" name="securitytoken" value="$vbulletin->userinfo[securitytoken]" />';
... but still get the "...security token was missing..." message when logged in (only).
Any hints or help would be appreciated!