I have just installed a second forum and it is standard, no mods. I am in the process of adding forums etc but have noticed a couple of anomalies.
If you go to user control panel and click on board preferences I get an error: Parse error: syntax error, unexpected T_STRING in /homepages/13/d252100963/htdocs/SurreyBoB/Forum/includes/ucp/ucp_prefs.php on line 183
Here is the area around 183 in ucp_prefs.php:
Code: Select all
'sigs' => request_var('sigs', (bool) $user->optionget('viewsigs')),
'avatars' => request_var('avatars', (bool) $user->optionget('viewavatars')),
'wordcensor' => request_var('wordcensor', (bool) $user->optionget('viewcensors')),
);
if ($submit)
{
' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
trigger_error($message);
}
// Replace "error" strings with their real, localised form
$error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error);
}
Everything else in the user control panel seems fine, but in the admin control panel if I click 'custom profile fields' under user and groups, I get: Parse error: syntax error, unexpected T_STRING in /homepages/13/d252100963/htdocs/SurreyBoB/Forum/includes/acp/acp_profile.php on line 236
Heres the area around line 236
Code: Select all
case 'move_up':
case 'move_down':
$field_order = request_var('order', 0);
$order_total = $field_order * 2 + (($action == 'move_up') ? -1 : 1);
$sql = 'UPDATE ' . PROFILE_FIELDS_TABLE . "
SET field_order = $order_total - field_order
WHERE field_order IN ($field_order, " . (($action == 'move_up') ? $field_order - 1 : $field_order + 1) . ')';
$db->sql_query($sql);
break;
Can anybody help?
Thanks
Nick