Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Привет,форумчане!В общем суть дела-нужно слегка переписать код файла userinfoPane

 

Cам код:

<!--Начало таблицы-->
<table width="100%" border="0">

<div class='user_details'>
<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'>
    <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:|:$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>
   </li>
  <else />
   <li class='avatar'>
    <img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
   </li>
  </if>


<!--Сообщения-->
 <tr>
<if test="postCount:|:$author['member_id']">
<td align="right"><img src="{$this->settings['img_url']}/blog/comments.png" alt='' /></td>
<td align="left">Сообщений:</td>
<td align="left"><span class='postcoutninfopane'>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span></td>
</if>
  </tr>
<!--/Сообщения-->
<!--Репутация-->
{parse variable="tb_srtv_style" default=" style='float:none;text-align:center;'"}
                <if test="$author['pp_reputation_points'] > 0">
                        <div class='reputation positive'{parse variable="tb_srtv_style"}>
                </if>
                <if test="$author['pp_reputation_points'] < 0">
                        <div class='reputation negative'{parse variable="tb_srtv_style"}>
                </if>
                <if test="$author['pp_reputation_points'] == 0">
                        <div class='reputation zero'{parse variable="tb_srtv_style"}>
                </if>
                        <div style='font-size:1.1em'>{$this->lang->words['reputation']}: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div>
                        <if test="$author['author_reputation'] && $author['author_reputation']['text']">
                                <span class='title' style='font-weight:normal'>{$author['author_reputation']['text']}</span>
                        </if>
                        <br /><if test="$author['author_reputation'] && $author['author_reputation']['image']">
                                <span class='image'><img src='{$author['author_reputation']['image']}' alt='{$this->lang->words['reputation']}' /></span>
                        </if>
                </div>
<!--/Репутация-->
<!--Нарушения-->
<if test="authorwarn:|:$author['show_warn']">
<tr>
<td align="right">
<if test="hasWarningId:|:$options['wl_id']">
<img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' /></td>
<else />
<img src="{$this->settings['img_url']}/warn.png" alt='' />
</if>
</td>
<td align="left"><a href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>Нарушения:</a></td>
<td align="left"><span class='postcoutninfopane'>{parse expression="sprintf('%d', $author['warn_level'] )"}</span></td>
</tr>
</if>
<!--/Нарушения-->
</table>
<!--Конец таблицы--> 

 

Как это выглядит:

 

 

Что я хочу:

1)Сохранение надписи "Администратор" (тоесть это статус,насколько я помню)

2)Сохранение аватара

3)Добавить иконку группы

4)Добавить кнопки: Отправить сообщение и добавить в друзья (стоит хук,работать-не работает)

5)Сохранение репутации

6)Оформление в отдельный блок:

ICQ,Skype,Сообщения,Нарушения

 

З.Ы.В IPB почти не разбираюсь (в коде особенно),так что голова закипает!Заранее благодарен!
Ах да,ссылка на форум

Edited by WOLF

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

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.