I put in the feature, if works fine in the forum, but when I go to the administration panel, it isn't working in my user administration, there is only a blank spot, there where the flag should be, and in the text area, it says : can you tell me what I did wrong, or wich file I didn't get to alter right please..
I think it is the admin/admin_users.php file, because when I alter that one, I cant see the administrator menue
Oh I found out, and got it to work... in the admin_user.php
it says that this part:
// Country/Location Flags
// Query to get the list of flags
$sql = "SELECT *
FROM " . FLAG_TABLE . "
ORDER BY flag_name";
if(!$flags_result = $db->sql_query($sql))
message_die(GENERAL_ERROR, "Couldn't obtain flags information.", "", __LINE__, __FILE__, $sql);
// Build the html select statement
$flag_start_image = 'blank.gif';
$flag_select = '<select name="user_flag" onChange="document.images[\'user_flag\'].src = \'../images/flags/\' + this.value;">';
$flag_select .= '<option value="blank.gif">' . $lang['Select_country'] . '</option>';
while ( $flag_row = $db->sql_fetchrow($flags_result) )
$flag_name = $flag_row['flag_name'];
$flag_image = $flag_row['flag_image'];
$selected = ( $user_flag == $flag_image ) ? ' selected="selected"' : '';
$flag_select .= ' <option value="' . $flag_image . '"' . $selected . '">' . $flag_name . '</option>';
if ( isset( $user_flag) && ($user_flag == $flag_image))
$flag_start_image = $flag_image;
$flag_select .= '</select>';
should be added after this: $form_enctype = ( !@$ini_val('file_uploads')
But when I do so it do not work, but if I put it in before that part, then it works fine...
Last edited by drn
on Fri Sep 21, 2007 9:11 am, edited 4 times in total.