asterix_kpi Posted July 5, 2013 Share Posted July 5, 2013 Доброго времени суток!Подскажите как в версии ipb 3.4.5 в UserInfo под аватаркой добавить кнопки Отправить ЛС/Добавить в друзья Link to comment Share on other sites More sharing options...
Bot Posted July 5, 2013 Share Posted July 5, 2013 Обратите внимание "Board url", указанный вами в профиле, некорректен, либо недоступен на данный момент. Пожауйста, заполните его, потому что он скорее всего потребуется при диагностике вашей проблемы. Link to comment Share on other sites More sharing options...
Zero108 Posted July 5, 2013 Share Posted July 5, 2013 При наведении мышки на имя пользователя есть всплывающее окно в том числе и с этими функциями. Зачем всё усложнять?! Link to comment Share on other sites More sharing options...
asterix_kpi Posted July 6, 2013 Author Share Posted July 6, 2013 (edited) В UserInfoPanel в нужное место вставляем код <br /> <li> <if test="$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] AND $this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' )"> <a href='{parse url="app=members&module=messaging§ion=send&do=form&fromMemberID={$author['member_id']}" base="public"}' title='{$this->lang->words['pm_this_member']}' id='pm_xxx_{$author['member_id']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="send_msg"}</a> </if> <if test="$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends']"> <if test="IPSMember::checkFriendStatus( $author['member_id'] )"> <a href='{parse url="app=members&module=profile§ion=friends&do=remove&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="remove_friend"}</a> <else /> <a href='{parse url="app=members&module=profile§ion=friends&do=add&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="add_friend"}</a> </if> </if> </li> Edited July 6, 2013 by asterix_kpi 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now