Code: Select all
if ( $poster_id != ANONYMOUS )
{
if ( $userdata['user_level'] != ADMIN )
{
$poster_name = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $poster_id) . '"' . $style_color . '>' . $poster_name . '</a>';
}
else
{
$poster_name = '<a href="' . $phpbb_root_path . "admin/admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $poster_id . "&sid=" . $userdata['session_id'] . '"' . $style_color . '>' . $poster_name . '</a>';
}
}
I have the Junior admins mod installed so now junior admins can view profiles in the admin panel but NOT by clicking on a username like the admins can.
How would i edit the above code to allow junior admins (code is MAIN_MOD) to be able to click the username in the viewtopic like the admin can and it link to the admin panel??
Your help is much appreciated as always
Cheers
Darren