1. How to add disable right click and 2. How to add a subject line to email links.

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
skanaba
 
 
Posts: 89
Joined: Wed Jan 24, 2018 12:16 am

1. How to add disable right click and 2. How to add a subject line to email links.

Post by skanaba »

Is it possible to add disable right click coding or other copy protection to a Web Builder 14 website?
We tried using some Javascript between the head code in the html editor, but it does not work. Here is the code that we used.
--------------------------------------------
<script language=JavaScript>
<!--
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit https://dynamicdrive.com

var message="Sorry, that function is disabled.\n\n";
message += "This page is copyrighted and all protected, ";
message += "Copyright 2020 We Are Puppeteers, All Rights Reserved.";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no" />
----------------------------------------------------------------------------

2. How to add a subject line to email links. Example: email links now open a blank email. We would like to add a specific Subject line.
Thank you!
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by Pablo »

1. In 'Ready-to-use-JavaScripts' there is a script to disable right click. Your script looks very old! (for IE4)

2. Maybe this will be helpful?
https://css-tricks.com/snippets/html/mailto-links/
skanaba
 
 
Posts: 89
Joined: Wed Jan 24, 2018 12:16 am

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by skanaba »

Hi, thanks for pointing out the ready to use javascripts....will give it a try.
For the email code, we do not know how to modify the generated code within WB14. We have used subject lines and even short messages...but do not know how to modify. Thanks again!
skanaba
 
 
Posts: 89
Joined: Wed Jan 24, 2018 12:16 am

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by skanaba »

Hello again...Would I add the javascript for the disable right click to the "master", or to each page's code....or both! Thanks.
Last edited by skanaba on Sun Feb 02, 2020 10:42 pm, edited 1 time in total.
skanaba
 
 
Posts: 89
Joined: Wed Jan 24, 2018 12:16 am

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by skanaba »

I see in the various literature online...that editing html requires that we use an editor like Dreamweaver to import the published page file, then modify the html code (for adding a subject line to an email link). Once done, I am assuming that we save the page, and upload it. My question: If we open the page in WB14 to edit the page, will the modified email link be retained, or will we need to export, modify and save again? Thank you.
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by Pablo »

You do not need to edit the code.
You can enter the email address and subject in the input field of the link.

Image
User avatar
rogerl
 
 
Posts: 197
Joined: Tue May 03, 2016 8:24 am

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by rogerl »

To disable right click add this code to "Inside <Body> Tag" under Page html.

Code: Select all

<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
skanaba
 
 
Posts: 89
Joined: Wed Jan 24, 2018 12:16 am

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by skanaba »

Thank you Pablo. You're the best! And RogerL, we found that the web builder program has a "Ready-to-use-javascripts" selector...one of which is a disable right click...we tried it and works well. Have a great week to the both of you.
User avatar
Williams
 
 
Posts: 102
Joined: Fri Nov 23, 2018 12:22 am
Contact:

Re: 1. How to add disable right click and 2. How to add a subject line to email links.

Post by Williams »

rogerl wrote: Mon Feb 03, 2020 10:46 am To disable right click add this code to "Inside <Body> Tag" under Page html.

Code: Select all

<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
Thanks Roger.. Very useful code.
Post Reply