Parse error in admin_forumauth.php

This mod will make it posible to specify permissions to all "special pages, like MEMBERLIST, PROFILE VIEW and so on.
The permissions support USERGROUP, making this tool very powerfull

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Parse error in admin_forumauth.php

Postby daniel12 on Sun 15. Jun, 2003 11:59

hi,

i tryed to install this mod but nothing worked or i did something wrong, later on i tryed to get my backup back where i changed the script but now i get this parse error when i tryed to login as administrator and i dont see the forums permission anymore can someone help me??

its saying this line:

Parse error: parse error, unexpected '}' in c:\php\apache\htdocs\phpbb2\admin\admin_forumauth.php on line 211


and this is the line of 211:

$template->set_filenames(array(
'body' => 'admin/auth_select_body.tpl')
);

$select_list = '<select name="' . POST_FORUM_URL . '">';
for($i = 0; $i < count($forum_rows); $i++)
{
$select_list .= '<option value="' . $forum_rows[$i]['forum_id'] . '">' . $forum_rows[$i]['forum_name'] . '</option>';
}
$select_list .= '</select>';

$template->assign_vars(array(
'L_AUTH_TITLE' => $lang['Auth_Control_Forum'],
'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'],
'L_AUTH_SELECT' => $lang['Select_a_Forum'],
'L_LOOK_UP' => $lang['Look_up_Forum'],

'S_AUTH_ACTION' => append_sid("admin_forumauth.$phpEx"),
'S_AUTH_SELECT' => $select_list)
);

} <- 211 error
else
{

//
daniel12
Poster
Poster
 
Posts: 9
Joined: Sun 08. Jun, 2003 22:49

Postby kooky on Mon 16. Jun, 2003 03:36

Next time show us more of your file

i guess you removed a "{"
and you should have this
Code: Select all
if(isset($forum_id))
{
   //
   // Output the selection table if no forum id was
   // specified
   //
   $template->set_filenames(array(
      'body' => 'admin/auth_select_body.tpl')
   );

   $select_list = '<select name="' . POST_FORUM_URL . '">';
   for($i = 0; $i < count($forum_rows); $i++)
   {
      $select_list .= '<option value="' . $forum_rows[$i]['forum_id'] . '">' . $forum_rows[$i]['forum_name'] . '</option>';
   }
   $select_list .= '</select>';

   $template->assign_vars(array(
      'L_AUTH_TITLE' => $lang['Auth_Control_Forum'],
      'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'],
      'L_AUTH_SELECT' => $lang['Select_a_Forum'],
      'L_LOOK_UP' => $lang['Look_up_Forum'],

      'S_AUTH_ACTION' => append_sid("admin_forumauth.$phpEx"),
      'S_AUTH_SELECT' => $select_list)
   );

}
else
{
   //
   // Output the authorisation details if an id was
   // specified
   //
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves


Return to Extra permission [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron