Found a little bug:
VBulletin 4.0.1
When trying to edit Avatar in the settings you get this error.
Code:
Parse error: syntax error, unexpected '.' in /path/to/forums/includes/class_core.php(4029) : eval()'d code on line 150
Narrowed it to this file: hook_profile_complete.php
Ok it is this line causing the error.
Code:
$vbulletin->templatecache['modifyavatar'] .= ' . "' . addslashes($templater->render()) . '"';
And here is the fix:
In (hook_profile_complete.php)
Find the following:
Code:
if ($vbulletin->fbb['runtime']['vb4']) {
$templater = vB_Template::create('fbb_vb4_modifyavatar');
$templater->register('avatarchecked', $avatarchecked);
$vbulletin->templatecache['modifyavatar'] .= ' . "' . addslashes($templater->render()) . '"';
} else {
eval('$maxnote .= "' . fetch_template('fbb_modifyavatar') . '";');
}
Replace with:
Code:
if ($vbulletin->fbb['runtime']['vb4']) {
$templater = vB_Template::create('fbb_vb4_modifyavatar');
$templater->register('avatarchecked', $avatarchecked);
$facebook_avatar = $templater->render();
$find = '<div id="avatar_yes_deps">';
$vbulletin->templatecache['modifyavatar'] = str_replace($find, $facebook_avatar.$find, $vbulletin->templatecache['modifyavatar']);
} else {
eval('$maxnote .= "' . fetch_template('fbb_modifyavatar') . '";');
}