Forums / Cotonti / Core Labs / Archive / tittle for image links

esclkm
#2566 2008-12-24 04:28
there are a lot of imagelinks in sed:
1. insert image in text area
2. insert file in text area
3/ reply pm
4/ delete
5/ and other
I think that some of them may be replaced with text links. and other must have hint - because some times to understand what is what is so difficult

and i don't know what country has what flag? that's why I recommend to replace build_flag function by that:
new standart
function sed_build_flag($flag)
{
$flag = (empty($flag)) ? '00' : $flag;
return '<a href="'.sed_url('users', 'f=country_'.$flag).'"><img src="images/flags/f-'.$flag.'.gif" alt="'.$flag.'" /></a>';
}

my variation

function sed_build_flag($flag)
{
global $sed_countries;

$flag = (empty($flag)) ? '00' : $flag;
$result = '<a href="users.php?f=country_'.$flag.'" title="'.$sed_countries[$flag].'"><img src="system/img/flags/f-'.$flag.'.gif" alt="'.$flag.'" /></a>';
return($result);
}
alt - loading only when our pictures are are disabled in browser
and this function give to us hint with name of the country
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты