Problem With Multiple Ranks Mod 2.0.3
Subject: Problem With Multiple Ranks Mod 2.0.3
if the solution to this has been posted somewhere please point me in the right direction... I am getting a parse error in admin_users.php an unexpected T_ELSE its not allowing me to see my ACP menu. I placed the mod by hand any help would be appreciated
Subject: Re: Problem With Multiple Ranks Mod 2.0.3
post 15 lines up and down the line where you get error on admin_users.php
Subject: Re: Problem With Multiple Ranks Mod 2.0.3
Parse error: parse error, unexpected T_ELSE
if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_path'])) && ($board_config['allow_avatar_upload'] == TRUE) )
{
if ( $form_enctype != '' )
{
$template->assign_block_vars('avatar_local_upload', array() );
}
$template->assign_block_vars('avatar_remote_upload', array() );
}
if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_gallery_path'])) && ($board_config['allow_avatar_local'] == TRUE) )
{
$template->assign_block_vars('avatar_local_gallery', array() );
}
if( $board_config['allow_avatar_remote'] == TRUE )
{
$template->assign_block_vars('avatar_remote_link', array() );
}
}
$template->pparse('body');
}
else <!--This is the else in the Parse Error-->
{
//
// Default user selection box
//
$template->set_filenames(array(
'body' => 'admin/user_select_body.tpl')
);
$template->assign_vars(array(
'L_USER_TITLE' => $lang['User_admin'],
'L_USER_EXPLAIN' => $lang['User_admin_explain'],
'L_USER_SELECT' => $lang['Select_a_User'],
'L_LOOK_UP' => $lang['Look_up_user'],
'L_FIND_USERNAME' => $lang['Find_username'],
'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"),
'S_USER_ACTION' => append_sid("admin_users.$phpEx"),
'S_USER_SELECT' => $select_list)
);
$template->pparse('body');
}
{
if ( $form_enctype != '' )
{
$template->assign_block_vars('avatar_local_upload', array() );
}
$template->assign_block_vars('avatar_remote_upload', array() );
}
if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_gallery_path'])) && ($board_config['allow_avatar_local'] == TRUE) )
{
$template->assign_block_vars('avatar_local_gallery', array() );
}
if( $board_config['allow_avatar_remote'] == TRUE )
{
$template->assign_block_vars('avatar_remote_link', array() );
}
}
$template->pparse('body');
}
else <!--This is the else in the Parse Error-->
{
//
// Default user selection box
//
$template->set_filenames(array(
'body' => 'admin/user_select_body.tpl')
);
$template->assign_vars(array(
'L_USER_TITLE' => $lang['User_admin'],
'L_USER_EXPLAIN' => $lang['User_admin_explain'],
'L_USER_SELECT' => $lang['Select_a_User'],
'L_LOOK_UP' => $lang['Look_up_user'],
'L_FIND_USERNAME' => $lang['Find_username'],
'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"),
'S_USER_ACTION' => append_sid("admin_users.$phpEx"),
'S_USER_SELECT' => $select_list)
);
$template->pparse('body');
}
Subject: Re: Problem With Multiple Ranks Mod 2.0.3
It seems you are missing a bracket somewhere... :roll:
Can you post that file in a zip please?
Can you post that file in a zip please?
Subject: Re: Problem With Multiple Ranks Mod 2.0.3
here it is...
| admin_users.zip | ||
| Description: | ![]() Download |
|
| Filename: | admin_users.zip | |
| Filesize: | 10.54 KB | |
| Downloaded: | 317 Time(s) | |
Subject: Re: Problem With Multiple Ranks Mod 2.0.3
Your error should be on line 1070... you have replaced a curly bracket while modifying the file.
Try to look for this:
and replace with this:
Let me know.
Try to look for this:
and replace with this:
Let me know.
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1672s (PHP: 11% SQL: 89%)
SQL queries: 12 - Debug Off - GZIP Enabled
