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

Повторять вопрос не буду)

Думаю данная тема будет не только мне интересна!

Кто может помочь?

 

В интернете нашел код:

<script type="text/javascript">
02
//<![CDATA[
03
function addLink() {
04
    var body_element = document.getElementsByTagName('body')[0];
05
    var selection = window.getSelection();
06
 
07
    // Вы можете изменить текст в этой строчке
08
    var pagelink = "<p>Источник: <a href='"+document.location.href+"'>"+document.location.href+"</a> Блог Виталия Кириллова &copy; SEO-Mayak.com</p>";
09
    var copytext = selection + pagelink;
10
    var newdiv = document.createElement('div');
11
    newdiv.style.position = 'absolute';
12
    newdiv.style.left = '-99999px';
13
    body_element.appendChild(newdiv);
14
    newdiv.innerHTML = copytext;
15
    selection.selectAllChildren(newdiv);
16
    window.setTimeout( function() {
17
        body_element.removeChild(newdiv);
18
    }, 0);
19
}
20
document.oncopy = addLink;
21
//]]>
22
</script>

Как его приспособить для ipb?Ну или может хук есть?

В каком смысле?

Его править надо?или он не работает?

Работает,но из

ББ кода "Код" 

Не получится ничего  скопировать. Если вам это не важно, то можете смело ставить

  • Author

Работает,но из

ББ кода "Код" 

Не получится ничего  скопировать. Если вам это не важно, то можете смело ставить

Понял!Это не настолько важно!

Guest
This topic is now closed to further replies.

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