Как вывести ник автора в фотоальбомы, версия 1.10
в файл core/classes/photo.class.php
строка 351 переработанная
$sql = "SELECT f.* {$this->inDB->select}, u.nickname, u.login, p.gender, p.imageurl FROM cms_photo_files f {$this->inDB->join} LEFT JOIN cms_users u ON u.id = f.user_id LEFT JOIN cms_user_profiles p ON p.user_id = u.id WHERE {$pub_where} {$this->inDB->where} {$this->inDB->group_by} {$this->inDB->order_by}\n"; if ($this->inDB->limit){ $sql .= "LIMIT {$this->inDB->limit}"; }
$photo['genderlink'] = cmsUser::getGenderLink($photo['user_id'], $photo['nickname'], $photo['gender'], $photo['login']);
{$photo.genderlink}