News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

getting a syntax error

Started by Contra, October 05, 2010, 09:42:59 AM

Previous topic - Next topic

Contra

this is what i get when i try to get into my admin-board menu

Parse error: syntax error, unexpected ';', expecting ')' in /Sources/ManagePermissions.php on line 1587



'lock' => array(true, 'topic', 'moderate', 'moderate'),
'remove' => array(true, 'topic', 'modify', 'moderate'),
'modify_replies' => array(false, 'topic', 'moderate'),
'delete_replies' => array(false, 'topic', 'moderate'),
'announce_topic' => array(false, 'topic', 'moderate'),
'delete' => array(true, 'post', 'modify', 'moderate'),
'modify' => array(true, 'post', 'modify', 'moderate'),
'report_any' => array(false, 'post', 'participate'),
'poll_view' => array(false, 'poll', 'participate'),
'poll_vote' => array(false, 'poll', 'participate'),
'poll_post' => array(false, 'poll', 'post_polls'),
'poll_add' => array(true, 'poll', 'post_polls', 'moderate'),
'poll_edit' => array(true, 'poll', 'modify', 'moderate'),
'poll_lock' => array(true, 'poll', 'moderate', 'moderate'),
'poll_remove' => array(true, 'poll', 'modify', 'moderate'),
'mark_any_notify' => array(false, 'notification', 'notification'),
'mark_notify' => array(false, 'notification', 'notification'),
'view_attachments' => array(false, 'attachment', 'participate'),
'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'),
'post_attachment' => array(false, 'attachment', 'attach'),
), 
);   [color=red]<<< this is line 1587[/color]

// All permission groups that will be shown in the left column on classic view.
$leftPermissionGroups = array(
'general',
'calendar',
'maintenance',
'member_admin',
'topic',
'post', 
);

// We need to know what permissions we can't give to guests.
loadIllegalGuestPermissions();

// Some permissions are hidden if features are off.
$hiddenPermissions = array();
$relabelPermissions = array(); // Permissions to apply a different label to.
$relabelGroups = array(); // As above but for groups.
if (!in_array('cd', $context['admin_features']))
{
$hiddenPermissions[] = 'calendar_view';
$hiddenPermissions[] = 'calendar_post';
$hiddenPermissions[] = 'calendar_edit';
}
if (!in_array('w', $context['admin_features']))
$hiddenPermissions[] = 'issue_warning';

Kindred

1- use code tags, not quote tags.

2- include more lines before....   specifically, the entire array... because that error, in that location suggests that you have an extra open or close parens in that array.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Contra

#2

'board' => array(
'moderate_board' => array(false, 'general_board', 'moderate'),
'approve_posts' => array(false, 'general_board', 'moderate'),
'post_new' => array(false, 'topic', 'make_posts'),
'post_unapproved_topics' => array(false, 'topic', 'make_unapproved_posts'),
'post_unapproved_replies' => array(true, 'topic', 'make_unapproved_posts', 'make_unapproved_posts'),
'post_reply' => array(true, 'topic', 'make_posts', 'make_posts'),
'merge_any' => array(false, 'topic', 'moderate'),
'split_any' => array(false, 'topic', 'moderate'),
'send_topic' => array(false, 'topic', 'moderate'),
'make_sticky' => array(false, 'topic', 'moderate'),
'move' => array(true, 'topic', 'moderate', 'moderate'),
'lock' => array(true, 'topic', 'moderate', 'moderate'),
'remove' => array(true, 'topic', 'modify', 'moderate'),
'modify_replies' => array(false, 'topic', 'moderate'),
'delete_replies' => array(false, 'topic', 'moderate'),
'announce_topic' => array(false, 'topic', 'moderate'),
'delete' => array(true, 'post', 'modify', 'moderate'),
'modify' => array(true, 'post', 'modify', 'moderate'),
'report_any' => array(false, 'post', 'participate'),
'poll_view' => array(false, 'poll', 'participate'),
'poll_vote' => array(false, 'poll', 'participate'),
'poll_post' => array(false, 'poll', 'post_polls'),
'poll_add' => array(true, 'poll', 'post_polls', 'moderate'),
'poll_edit' => array(true, 'poll', 'modify', 'moderate'),
'poll_lock' => array(true, 'poll', 'moderate', 'moderate'),
'poll_remove' => array(true, 'poll', 'modify', 'moderate'),
'mark_any_notify' => array(false, 'notification', 'notification'),
'mark_notify' => array(false, 'notification', 'notification'),
'view_attachments' => array(false, 'attachment', 'participate'),
'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'),
'post_attachment' => array(false, 'attachment', 'attach'),
), 
);

Kindred

you can't put a whole file in the code tags. For a file, use attachments.

However, I didn't ask for the whole file...
I said: include more lines before....   specifically, the entire array...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Contra


Oya

that's still only part of it, it goes up much further


either that or please use the additional options to attach the whole file

Contra

i figure it out by (mostly luck) but i REALLY do appreciate your help

Advertisement: