OK now I have it working I would like to know how to move the new flags I added up in the list so there are in order. For example I added Scotland to have it stay after Zimbabwe.
Anyone know how to do this?
In the meantime i'll try and figure this out.
**************************************************
Edit: Found it!
To list the flags in ACP by flag name
Open includes/acp/acp_flags.php
Find:
Code: Select all
$sql = 'SELECT *
FROM ' . FLAGS_DATA_TABLE . '
ORDER BY flag_id ASC';
$result = $db->sql_query($sql);
Replace with:
Code: Select all
$sql = 'SELECT *
FROM ' . FLAGS_DATA_TABLE . '
ORDER BY flag_name ASC';
$result = $db->sql_query($sql);
To list the flags in the dropdown box in UCP by flag name
Open includes/functions_flag.php
Find:
Code: Select all
$sql = 'SELECT flag_id, flag_name
FROM ' . FLAGS_DATA_TABLE . '
ORDER BY flag_id';
$result = $db->sql_query($sql);
Replace with:
Code: Select all
$sql = 'SELECT flag_id, flag_name
FROM ' . FLAGS_DATA_TABLE . '
ORDER BY flag_name';
$result = $db->sql_query($sql);
Hope that helps someone else out