Latest topics
» bloquer un membre
by berlingo Yesterday at 18:19

» IconSkouliki Graphics
by skouliki Yesterday at 03:54

» [IN PROGRESS] Can this code work on pun version
by skouliki Thu 16 Nov 2017, 03:50

» Auto-suggest @mentions as You Type
by skouliki Wed 15 Nov 2017, 14:56

» [TUTORIAL] [ALL VERSIONS] Warning before posting
by demon99 Wed 15 Nov 2017, 08:12

» [HELP] About Profile Cover Code
by omarpop23 Tue 14 Nov 2017, 12:35

» About Add Reply & New Topic button (popup form)
by omarpop23 Mon 13 Nov 2017, 20:31

» Hello everyone this is Adam from France
by Adam Mon 13 Nov 2017, 13:32

» Add a login popup for the toolbar
by Ape Sun 12 Nov 2017, 18:41

» Post a message automatically when locking a topic
by ThunderTB Sun 12 Nov 2017, 13:51

» Control pannel issue
by Ange Tuteur Sun 12 Nov 2017, 09:49

» BUG... forum members birthday's
by Ape Sat 11 Nov 2017, 11:44

» Display a Preview of Groups on Hover
by ThunderTB Fri 10 Nov 2017, 21:56

» Search box only visible on hover
by Ange Tuteur Mon 06 Nov 2017, 09:57

» [GAME] Animal Game
by SLGray Sun 05 Nov 2017, 15:04

Recent Tutorials
Who is online?
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[IN PROGRESS] copy button

View previous topic View next topic Go down

avatar
Kisskiss

Title :
Gender : Unspecified
Posts : 47
Points : 571
Reputation : 1
Language : Italian, spanish
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

PostKisskiss on Tue 02 Aug 2016, 17:18

I would like to disable the copy button - paste on my forum on a JS so that users can not copy tutorial...

You know codes ?
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4712
Points : 9584
Reputation : 2341
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 02 Aug 2016, 17:28

Hi @Kisskiss,

Please note that disabling the ability to copy/paste will adversely affect your forum and its members ; it achieves nothing but annoying those who aren't the problem. Furthermore, you can get past the method of preventing the context menu, copy, etc.. by disabling JavaScript on your browser. Still, if you insist on doing so, go to Admin Panel > Modules > JavaScript codes management and create a new script with the following settings.

Placement : In all the pages

You can use this function to prevent the context menu :
Code:
document.oncontextmenu = function() {
  alert('Context menu has been disabled.');
  return false;
};

You can use this function to prevent copying :
Code:
document.oncopy = function() {
  alert('Copying has been disabled.');
  return false;
};
avatar
Guest
Guest
View all awards

PostGuest on Tue 23 Aug 2016, 17:37

*** This topic will be closed soon if we don't get any feedback. @Kisskiss Is this solved / still needed? ***

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum