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

Доброго. Кто подскажет, что нужно добавить, что бы запретить копирование в мобильной версии сайта конкретным группам?

body { 
        -ms-user-select: none; 
        -moz-user-select: none; 
        -webkit-user-select: none; 
        user-select: none; 
    }

2 часа назад, aLEX49566 сказал:

Доброго. Кто подскажет, что нужно добавить, что бы запретить копирование в мобильной версии сайта конкретным группам?

body { 
        -ms-user-select: none; 
        -moz-user-select: none; 
        -webkit-user-select: none; 
        user-select: none; 
    }

Попробуйте так

{{if member.inGroup(array("здесь id группы"))}}
здесь ваш код
{{endif}}

Ещё как вариант.

Добавьте доп.класс к body,например, .no_copy

body .no_copy { 
        -ms-user-select: none; 
        -moz-user-select: none; 
        -webkit-user-select: none; 
        user-select: none; 
    }

А в globalTemlate в теге <body> добавьте

{{if member.inGroup(array("здесь id группы"))}}
no_copy
{{endif}}

Надеюсь смысл поняли.

 

41 минуту назад, AHristich сказал:

Ну бэкапнул так бэкапнул...

В custom.css

{{if member.inGroup(array("ID group - кому запрещено выделять текст на форуме"))}}
.noselect {
	color: #555;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
{{endif}}

 

И в GlobalTemplate

Добавить noselect в <body>

пример вот:

<body class='noselect'

 

Если не сработает, попробуй вот так

в GlobalTemplate

Добавить noselect в <body>

Далее, после body

{{if member.inGroup(array("ID group - кому запрещено выделять текст на форуме"))}}
      <style>
.noselect {
	color: #555;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
        </style>
{{endif}}

 

39 минут назад, murovets сказал:

В custom.css

{{if member.inGroup(array("ID group - кому запрещено выделять текст на форуме"))}}
.noselect {
	color: #555;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
{{endif}}

 

И в GlobalTemplate

Добавить noselect в <body>

пример вот:

<body class='noselect'

 

В custom.css добавь только

.noselect { color: #555; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

В globalTemlate

<body {{if member.inGroup(array("ID group - кому запрещено выделять текст на форуме"))}}class='noselect'{{endif}}>

Edited by AHristich

14 минут назад, AHristich сказал:

В custom.css добавь только

.noselect { color: #555; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

В globalTemlate

<body {{if member.inGroup(array("ID group - кому запрещено выделять текст на форуме"))}}class='noselect'{{endif}}>

Согласен, так даже по лучше будет)

  • Author
2 часа назад, murovets сказал:

Если не сработает, попробуй вот так

в GlobalTemplate

Добавить noselect в <body>

Далее, после body

{{if member.inGroup(array("ID group - кому запрещено выделять текст на форуме"))}}
      <style>
.noselect {
	color: #555;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
        </style>
{{endif}}

 

Сработал только этот скрипт)

Всем спасибо за помощь! :ab:

      {{if member.inGroup(array("2"))}}<style>.noselect {-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}</style>{{endif}}

 

  • 2 недели спустя...
  • Author
{{if (\IPS\Member::loggedIn()->inGroup( [2] ) )}}
      <style type='text/css'>
	  @media (max-width: 979px) {
.noselect_mobile {
              -ms-user-select: none;
              -moz-user-select: none;
              -khtml-user-select: none;
              -webkit-user-select: none;
              user-select: none
}
 }
        </style>
{{endif}}

 

Спасибо за корректировки  Lesovsky

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.