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.

Помогите с репутацией в UserPanel

Featured Replies

Posted

Когда в репутации однозначное число, то она выглядит красиво и в 1 строчку, но как только там становится 2ух значное число, либо появляется значек "минуса", рамка репутации расширяется.

 

Скрины:  post-9097-0-72403500-1377069191.jpg post-9097-0-04229900-1377069193.jpg

 

Скажите, как сделать так, чтобы двигался сам текст, а рамка оставалась одного размера?

 

CSS рамки:

.reputation {
padding:3px 38px;
display:inline-block;
-moz-border-radius:2px;
background:url('{style_images_url}/highlight1.png') repeat-x top;
-webkit-border-radius:2px;border-radius:2px}

.reputation.positive, .members li.positive {
background-color:#AAD385;border:1px solid #8CB862}

.reputation.negative, .members
li.negative{background-color:#B82929;border:1px
solid #924F4F}

.reputation.negative{color:white;text-shadow:0px -1px 0px rgba(0,0,0,0.52)}

.reputation.positive{color:#66862B;text-shadow:0px 1px 0px rgba(255,255,255,0.52)}

.reputation.zero{background-color:#DEDEDE;color:#6E6E6E;border:1px
solid #CCC}

Код репутации в UserInfo:

<!--reputation-->
                                                             <if test="RepPositive:|:$author['pp_reputation_points'] > 0">
                                                                        <div class='reputation positive' data-tooltip="{parse expression=" $author['author_reputation']['text']"}"><div style='font-size:13px'>Репутация: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div></div>
                                                                </if>
                                                                <if test="RepNegative:|:$author['pp_reputation_points'] < 0">
                                                                        <div class='reputation negative' data-tooltip="{parse expression=" $author['author_reputation']['text']"}">      <div style='font-size:13px'>Репутация: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div></div>
                                                                </if>
                                                                <if test="RepZero:|:$author['pp_reputation_points'] == 0">
                                                                        <div class='reputation zero' data-tooltip="{parse expression=" $author['author_reputation']['text']"}"><div style='font-size:13px'>Репутация: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div></div>
                                                                </if>
<!--reputation-->

Заранее спасибо.

Edited by JoinNulled

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 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.