Problem With Multiple Ranks Mod 2.0.3 »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - Problem With Multiple Ranks Mod 2.0.3



MikeS [ Mon 08 Jan, 2007 05:55 ]
Post 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


Zuker [ Mon 08 Jan, 2007 11:18 ]
Post 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


Mighty Gorgon [ Mon 08 Jan, 2007 14:38 ]
Post subject: Re: Problem With Multiple Ranks Mod 2.0.3
Topic moved to the appropriate forum...


MikeS [ Thu 11 Jan, 2007 02:38 ]
Post subject: Re: Problem With Multiple Ranks Mod 2.0.3
Parse error: parse error, unexpected T_ELSE

Code: [Hide] [Select]
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');

}


Mighty Gorgon [ Fri 12 Jan, 2007 02:54 ]
Post subject: Re: Problem With Multiple Ranks Mod 2.0.3
It seems you are missing a bracket somewhere...

Can you post that file in a zip please?


MikeS [ Fri 12 Jan, 2007 04:22 ]
Post subject: Re: Problem With Multiple Ranks Mod 2.0.3
here it is...


Mighty Gorgon [ Tue 23 Jan, 2007 02:51 ]
Post 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:
Code: [Hide] [Select]
// Mighty Gorgon - Multiple Ranks - END }


and replace with this:
Code: [Hide] [Select]
// Mighty Gorgon - Multiple Ranks - END
}


Let me know.




Powered by Icy Phoenix