Вопрос я думаю мой прост для понимающих людей. Установил хук Member Panel BG v1.0.0, это профиль в боковой блок. Всё хорошо, но нет звания или ранг это правильно называется. Скажите пожалуйста, в сам хук, перед "Сообщений:", то есть после аватара какой код нужно вставить, чтобы и ранг (звание) отобразилось и его наименование над рангом?
Зарание благодарю!
Здесь под спойлером внутренние органы хука:
Spoiler
<?xml version="1.0" encoding="utf-8"?> <hookexport> <hookdata> <config> <hook_name><![CDATA[ Member Panel BG (by Silence)]]></hook_name> <hook_desc>Тази кука показва вашият профил в отделен раздел в страничната лента.</hook_desc> <hook_author><![CDATA[Silence]]></hook_author> <hook_email>[email protected]</hook_email> <hook_website>silence-bg-software</hook_website> <hook_update_check/> <hook_requirements><![CDATA[a:3:{s:21:"required_applications";a:0:{}s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}]]></hook_requirements> <hook_version_human>1.0.0</hook_version_human> <hook_version_long>100</hook_version_long> <hook_extra_data><![CDATA[a:3:{s:7:"display";a:2:{s:8:"settings";s:35:"Setting groups: [TZ34] Member Panel";s:9:"templates";s:32:"From skin_teez_apps: memberPanel";}s:13:"settingGroups";a:1:{i:0;s:16:"tz34_memberpanel";}s:9:"templates";a:1:{s:14:"skin_teez_apps";a:1:{i:0;s:11:"memberPanel";}}}]]></hook_extra_data> <hook_key>memberpanel</hook_key> <hook_global_caches/> </config> </hookdata> <hookfiles> <file> <hook_file_real>tz34_memberpanel.php</hook_file_real> <hook_type>templateHooks</hook_type> <hook_classname>tz34_memberpanel</hook_classname> <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_boards";s:12:"skinFunction";s:18:"boardIndexTemplate";s:4:"type";s:7:"foreach";s:2:"id";s:11:"side_blocks";s:8:"position";s:9:"outer.pre";}]]></hook_data> <hooks_source><![CDATA[<?php /** * * @author Mateusz Pater * @copyright teez * @version 2013 * @access public * @web pro-gamming.pl * @contact [email protected] */ class tz34_memberpanel { private $registry; private $DB; private $memberData; private $settings; public function __construct() { $this->registry = ipsRegistry::instance(); $this->DB = $this->registry->DB(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->settings =& $this->registry->fetchSettings(); } public function getOutput() { if( ! $this->settings['tz34_memberpanel_on'] ) { return false; } return $this->registry->getClass( 'output' )->getTemplate( 'teez_apps' )->memberPanel(); } } ?>]]></hooks_source> </file> </hookfiles> <hookextras_settings> <setting> <conf_is_title>1</conf_is_title> <conf_title_title><![CDATA[[TZ34] Member Panel]]></conf_title_title> <conf_title_desc/> <conf_title_noshow>0</conf_title_noshow> <conf_title_keyword>tz34_memberpanel</conf_title_keyword> <conf_title_app>core</conf_title_app> <conf_title_tab><![CDATA[teez's apps]]></conf_title_tab> </setting> <setting> <conf_id>415</conf_id> <conf_title>Включить хук?</conf_title> <conf_description/> <conf_group>55</conf_group> <conf_type>yes_no</conf_type> <conf_key>tz34_memberpanel_on</conf_key> <conf_value/> <conf_default>0</conf_default> <conf_extra/> <conf_evalphp/> <conf_protected>1</conf_protected> <conf_position>1</conf_position> <conf_start_group/> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>tz34_memberpanel</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> </hookextras_settings> <hookextras_language/> <hookextras_modules/> <hookextras_help/> <hookextras_templates> <templates> <template_group>skin_teez_apps</template_group> <template_content><![CDATA[ <if test="$this->memberData['member_id'] "> <style> .center { text-align: center;} </style> <div class='ipsSideBlock clearfix'> <h3>Мой профиль</h3> <div class='_sbcollapsable'> <div class='center'> <p class="boxprofile"></p><br> {IPSMember::buildProfilePhoto($this->memberData['member_id'],$size=full)}</span> <php> $aaa = IPSMember::load($this->memberData['member_id'], 'members_display_name' ); </php> <br/> <p class="boxprofile">{$this->memberData['title']} </p> <p class="boxprofile"> Сообщений: {$this->memberData['posts']} </p> <p class="boxprofile"> Последняя активность: {parse date="$this->memberData['last_activity']" format="SHORT"}</p> <ul id='links'> <li id='user_profile'><a href='{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['your_profile']}'>{$this->lang->words['my_profile']}</a></li> <li id='user_ucp'><a href="{parse url="app=core&module=usercp" base="public"}" title="{$this->lang->words['cp_tool_tip']}">{$this->lang->words['your_cp']}</a></li> <li id='user_content'><a href="{parse url="app=core&module=search&do=user_activity&mid={$this->memberData['member_id']}" base="public"}" title="{$this->lang->words['my_content_link']}">{$this->lang->words['my_content_link']}</a></li> <if test="userLikeLink:|:count( IPSLib::getEnabledApplications('like') )"> <li id='user_likes'><a href='{parse url="app=core&module=search&do=followed" base="public"}' title='{$this->lang->words['your_likes']}'>{$this->lang->words['your_likes']}</a></li> </if> <if test="nobbyNoMates:|:$this->settings['friends_enabled'] && $this->memberData['g_can_add_friends']"> <li id='user_friends'><a href='{parse url="app=members&module=profile&section=friends&do=list" base="public"}' title="{$this->lang->words['manage_friends']}" class='manage_friends'>{$this->lang->words['manage_friends']}</a></li> </if> <li id='user_enemies'><a href='{parse url="app=core&module=usercp&tab=core&area=ignoredusers" base="public"}' title="{$this->lang->words['manage_ignored_users']}" class='manage_enemies'>{$this->lang->words['manage_ignored_users']}</a></li> <if test="bloglink:|:$this->memberData['has_blog'] AND IPSLib::appIsInstalled('blog')"> <li id='user_blog'><a href="{parse url="app=blog&module=manage" base="public" template="manageblog" seotitle="false"}">{$this->lang->words['manage_blogs']}</a></li> </if> <if test="pmLink:|:$this->memberData['members_disable_pm'] != 2"> <li id='user_pm'><a href="{parse url="app=members&module=messaging" base="public"}">{$this->lang->words['user_dd_go_pm']}</a></li> </if> <if test="gallerylink:|:$this->memberData['has_gallery'] AND IPSLib::appIsInstalled('gallery')"> <li id='user_gallery'><a href='{parse url="app=gallery&user={$this->memberData['member_id']}" base="public" seotitle="{$this->memberData['members_seo_name']}" template="useralbum"}' title="{$this->lang->words['go_to_my_gallery']}">{$this->lang->words['my_gallery']}</a></li> </if> <if test="nexuslink:|:IPSLib::appIsInstalled('nexus')"> <li id='user_nexus'><a href='{parse url="app=nexus&module=clients" base="public"}' title="{$this->lang->words['client_area']}">{$this->lang->words['client_area']}</a></li> </if> </ul> </div> </div> </div> </if>]]></template_content> <template_name>memberPanel</template_name> <template_data/> <template_updated>1364846937</template_updated> <template_removable>1</template_removable> <template_added_to>1</template_added_to> <template_user_added>1</template_user_added> <template_user_edited>1</template_user_edited> <template_master_key>root</template_master_key> </templates> </hookextras_templates> <hookextras_css/> <hookextras_replacements/> <hookextras_tasks/> <hookextras_database_create/> <hookextras_database_alter/> <hookextras_database_update/> <hookextras_database_insert/> </hookexport>