Jump to content

Как добавить доп.кпопки под профилем

Featured Replies

Posted
comment_9489

Собственно интересует какой код и куда нужно добавить в "userInfoPane" чтобы под аватаром отображалось "Отправить Сообщение" "Добавить в Друзья" ввиде картинки,ибо хук "Userinfopane Buttons RUS 1.0.0"

comment_9494

Друзья" ввиде картинки,ибо хук "Userinfopane Buttons RUS 1.0.0"

Что с ним не так?

  • Author
comment_9540

вот шаблон userinfopane :

<div itemscope itemtype="__schema.org/Person" class='user_details'>

<span class='hide' itemprop="name">{$author['members_display_name']}</span>

<ul class='basic_info'>

<if test="membertitle:|:$author['member_title']">

<p class='desc member_title'>{$author['member_title']}</p>

</if>

<if test="avatar:|:$author['member_id']">

<li class='avatar'>

<if test="$author['_online']">

<div class="avatar-online">

<else />

<div class="avatar-offline">

</if>

<a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}" class='ipsUserPhotoLink'>

<if test="hasVariable:|:$options['isTopicView'] && $this->settings['member_topic_avatar_max']">

<img src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />

<else />

<img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />

</if>

</a>

</div>

</li>

<else />

<li class='avatar'>

<img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />

</li>

</if>

<li class='group_title'>

{$author['_group_formatted']}

</li><br/>

<if test="rankimage:|:$author['member_rank_img']">

<li class='group_icon'>

<if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">

<img src='{$author['member_rank_img']}' alt='' />

<else />

{$author['member_rank_img']}

</if>

</li>

</if>

<if test="postCount:|:$author['member_id']">

</if>

<if test="cardRep:|:$this->settings['reputation_enabled'] && $this->settings['reputation_show_profile']">

<div class='reputation-container'>

<!-- Blue Reputation Bar -->

<if test="$author['pp_reputation_points']>=1 && $author['pp_reputation_points']<=10">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_1c.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=11 && $author['pp_reputation_points']<=20">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_2c.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=21 && $author['pp_reputation_points']<=30">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_3c.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=31 && $author['pp_reputation_points']<=40">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_4c.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=41 && $author['pp_reputation_points']<=50">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_5c.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<!-- /Blue Reputation Bar -->

<!-- Green Reputation Bar -->

<if test="$author['pp_reputation_points']>=51 && $author['pp_reputation_points']<=80">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_1b.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=81 && $author['pp_reputation_points']<=110">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_2b.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=111 && $author['pp_reputation_points']<=140">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_3b.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=141 && $author['pp_reputation_points']<=170">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_4b.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=171 && $author['pp_reputation_points']<=200">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_5b.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<!-- /Green Reputation Bar -->

<!-- Gold Reputation Bar -->

<if test="$author['pp_reputation_points']>=201 && $author['pp_reputation_points']<=250">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_1a.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=251 && $author['pp_reputation_points']<=300">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_2a.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=301 && $author['pp_reputation_points']<=350">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_3a.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=351 && $author['pp_reputation_points']<=400">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_4a.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']>=401">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_5a.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<!-- /Gold Reputation Bar -->

<!-- Neutral Reputation Bar -->

<if test="$author['pp_reputation_points']==0">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_0.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<!-- /Neutral Reputation Bar -->

<!-- Negative Reputation Bar -->

<if test="$author['pp_reputation_points']<=-1 && $author['pp_reputation_points']>=-10">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_-1.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']<=-11 && $author['pp_reputation_points']>=-20">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_-2.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']<=-21 && $author['pp_reputation_points']>=-30">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_-3.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']<=-31 && $author['pp_reputation_points']>=-40">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_-4.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<if test="$author['pp_reputation_points']<=-41">

<img src="{$this->settings['public_dir']}/style_extra/reputation_icons/level_-5.png" alt="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" data-tooltip="{$this->lang->words['word_reputation']}Репутация: {$author['pp_reputation_points']}" border="0" height="17" width="117" />

</if>

<!-- /Negative Reputation Bar -->

</div>

</if>

<if test="authorcfields:|:$author['custom_fields'] != """>

<ul class='custom_fields'>

<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">

<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">

<if test="$field != ''">

<li>

{$field}

</li>

</if>

</foreach>

</foreach>

<li>

<table width="100%" border="0">

<tr>

<td width="18"><img src="/forum/public/style_extra/cprofile_icons/post.png"></td>

<td width="50" align="left">Сообщений:</td>

<td align="left"><b>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</b></td>

</tr>

</table>

</li>

</ul>

</if>

</div>

comment_9551


<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&amp;module=messaging&amp;section=send&amp;do=form&amp;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&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$author['member_id']}&amp;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&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$author['member_id']}&amp;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>



  • Author
comment_9560


<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&amp;module=messaging&amp;section=send&amp;do=form&amp;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&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$author['member_id']}&amp;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&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$author['member_id']}&amp;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>



Спасибо тему можно закрыть

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.