I've managed to fix the issue. This is probably specific to my case. I have GD enabled for new registrations but I've disabled image verification for new posts as I couldn't figure out how to integrate the image verification into the feedback form I use for our oscommerce customers.
Line 1544 of blog_post.php trips because of this set up.
Code:
if ($vbulletin->options['postimagecheck'] AND !$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'])
{
require_once(DIR . '/includes/functions_regimage.php');
$imagehash = fetch_regimage_hash();
eval('$imagereg = "' . fetch_template('imagereg') . '";');
}
else
{
$imagereg = '';
}
Changing this to the following resolves the problem for me.
Code:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'])
{
require_once(DIR . '/includes/functions_regimage.php');
$imagehash = fetch_regimage_hash();
eval('$imagereg = "' . fetch_template('imagereg') . '";');
}
else
{
$imagereg = '';
}
Another bug fix required will be to change line 1289 from
Code:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'])
{
require_once(DIR . '/includes/functions_regimage.php');
if (!verify_regimage_hash($vbulletin->GPC['imagehash'], $vbulletin->GPC['imagestamp']))
{
$blogman->error('register_imagecheck');
}
}
to
Code:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'] AND $vbulletin->options['postimagecheck'])
{
require_once(DIR . '/includes/functions_regimage.php');
if (!verify_regimage_hash($vbulletin->GPC['imagehash'], $vbulletin->GPC['imagestamp']))
{
$blogman->error('register_imagecheck');
}
}
Note: The first fix is specific to my case. The second fix however should go into the blog codes for future versions.
Bookmarks