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

esclkm
#1 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 - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Trustmaster
#2 2008-12-24 05:05
Right, many ALT attributes of images are missing. Please make a list of locations in code, where we can easily add such missing tags (like you did in example above). So we will add them all at once.
May the Source be with you!
esclkm
#3 2008-12-24 05:10
OK! I Will make it for tomorrow (по крайней мере постараюсь. Сейчас занятия в психбольнице)
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты