#Vrad Posted February 19, 2016 Report Share Posted February 19, 2016 В чем дело ? <div class="user-avatar"> <img src="{ava}" style="border-radius:50%;height:30px"/> </div> <a href="{my-page-link}">{name}</a> Link to comment Share on other sites More sharing options...
AdVest Posted February 19, 2016 Report Share Posted February 19, 2016 В чем дело ? <div class="user-avatar"> <img src="{ava}" style="border-radius:50%;height:30px"/> </div> <a href="{my-page-link}">{name}</a> Меню? Link to comment Share on other sites More sharing options...
#Vrad Posted February 19, 2016 Author Report Share Posted February 19, 2016 Меню? да Link to comment Share on other sites More sharing options...
AdVest Posted February 20, 2016 Report Share Posted February 20, 2016 да в index.php выведи сначала Link to comment Share on other sites More sharing options...
Why Not Posted February 20, 2016 Report Share Posted February 20, 2016 Если у тебя это все в main.tpl то да, тебе нужно копирнуть код вывода авы и имени с profile.php в index.php 1 Link to comment Share on other sites More sharing options...
#Vrad Posted February 20, 2016 Author Report Share Posted February 20, 2016 Если у тебя это все в main.tpl то да, тебе нужно копирнуть код вывода авы и имени с profile.php в index.php С фото разобрался а с именем что то нет можешь помочь ? Link to comment Share on other sites More sharing options...
Vi®uS Posted February 20, 2016 Report Share Posted February 20, 2016 С фото разобрался а с именем что то нет можешь помочь ? https://vk.com/k_o_s_s_1_4_8_8 пиши, помогу 1 Link to comment Share on other sites More sharing options...
Why Not Posted February 24, 2016 Report Share Posted February 24, 2016 С фото разобрался а с именем что то нет можешь помочь ? Как успехи? Link to comment Share on other sites More sharing options...
#Vrad Posted February 24, 2016 Author Report Share Posted February 24, 2016 Как успехи? разобрался уже Vi®uS помог) Код index.php $row = $db->super_query("SELECT user_id, user_photo, user_name FROM `".PREFIX."_users` WHERE user_id = '{$user_info['user_id']}'"); $tpl->set('{name}', $row['user_name']); if($row['user_photo']){ $tpl->set('{ava}', '/uploads/users/'.$row['user_id'].'/50_'.$row['user_photo']); }else{ $tpl->set('{ava}', '/templates/Default/images/no_ava_50.png'); } Link to comment Share on other sites More sharing options...
AdVest Posted February 24, 2016 Report Share Posted February 24, 2016 https://vk.com/k_o_s_s_1_4_8_8 пиши, помогу Чтобы еще кого нибудь кинул? Link to comment Share on other sites More sharing options...
Recommended Posts