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

Сделал персонализацию как в четверке, но остался косяк - нет возможности менять положение загруженной картинки по высоте. Можно ли как-нибудь добавить кнопку, нажав на которую, пользователь попадал в настройку, где он смог бы поменять положение картинки по высоте - т.е. по оси Y (как в четверке)?

6aae1061c827340f78885230b7708872.png

Вот код персонализации (в самом верху шаблона customizeProfile):

#customBackground{
<if test="hasBackgroundColor:|:$member['customization']['bg_color']">
        background-color: #{$member['customization']['bg_color']} !important;
    </if>
    <if test="hasBackgroundImage:|:$member['customization']['_bgUrl']">
        background-image: url("{$member['customization']['_bgUrl']}?nc={$member['pp_profile_update']}") !important;
        <if test="backgroundIsFixed:|:! $member['customization']['bg_tile']">
            background-position: 50% 50%;
            background-repeat: no-repeat;
            -webkit-background-size: 100% 100%;
            -moz-background-size: 100% 100%;
            background-size: cover;
        <else />
            background-position: 50% 50%;
            background-repeat: repeat;
        </if>
    </if>
    height: 330px;
    margin: -9px -9px 0 -9px;

За положение картинки по высоте отвечает строка:

background-position: 50% 50%;

Идея состоит в том, чтобы создать настройку, в которой пользователь смог бы поменять цифру 50% на свою (желательно с помощью скрипта, подвигав картинку).

Возможно ли такое реализовать с помощью Javascript? Готов заплатить.

Edited by benix

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.