Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Disable Right Click On Everything Details »»
Disable Right Click On Everything
Version: 1.00, by Stunner Stunner is offline
Developer Last Online: Feb 2007 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 01-20-2007 Last Update: Never Installs: 12
 
No support by the author.

I was searching DynamicDrive.com and came across this nifty little code. It will disable ANYONE from saving images from your site and will COMPLETELY disable ALL right clicks. So it has Pro's & Cons. I use this mostly on html pages I make off the forum. Just searching in the html for </head> and pasting below it the code provided.


Simply go to
ForumDisplay Templates>Forum Display>Search for "</head>"
&
ForumHome Templates>Forum Home> Search for "</head>"
&
ShowThread Templates>Showthread>Search for "</head>"
and below it paste

Code:
<script language=JavaScript>
<!--

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

var message="The Stunner Says: Nice Try!";

///////////////////////////////////
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")

// --> 
</script>
Save

Do the same for Forum Home and Show Thread templates.

Thanks to Dynamic Drive for the code.

To edit the message simply search for "var message" and edit my custom message.

This is my first time posting a mod so go easy on me.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-21-2007, 07:21 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't stop anyone from taking your images.
The only thing this will do is piss your members and guests off and cause them to leave.
Reply With Quote
  #3  
Old 01-21-2007, 07:45 PM
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Location: Boston, Uk
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh agreed

However its his first. so lets let him off
Reply With Quote
  #4  
Old 01-21-2007, 07:52 PM
quadinfotech quadinfotech is offline
 
Join Date: Sep 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here's a little tip that almost everyone knows:
if you come across any site that gives u that pop up telling you "Nice Try!" just answer back
"You Too!" go to your browser's options and turn off javascript.That will take care of it.
This is real easy on FireFox as it has the option sitting right there,
Don't use IE/Don't know how.

thanx for the share, Nice try!
Reply With Quote
  #5  
Old 01-22-2007, 05:29 AM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't it better to add the code in headinclude template rathar than 3 different template?
Reply With Quote
  #6  
Old 01-22-2007, 05:46 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ Yes that worked for me. Is there a way to modify this to only protect images?

I found this code: https://vborg.vbsupport.ru/showpost....9&postcount=10 but you have to add an onclick to the body of every template you want to protect and the entire page has to load before it works.



Edit: Found some code here that worked for me: http://www.dynamicdrive.com/dynamicindex9/noright2.htm

Reply With Quote
  #7  
Old 01-22-2007, 06:03 PM
TheBlackPoet's Avatar
TheBlackPoet TheBlackPoet is offline
 
Join Date: May 2006
Location: Pasadena, Texas, USA
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i need something like this for my poetry site.... so people will have a more difficult time stealing poetry... but then.. my members need it when they cut and paste... so i cant use it... but its a good thought..
Reply With Quote
  #8  
Old 01-23-2007, 07:54 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this hack(this thread) works wil all browser?
IE,Firefox,Opera ?



Quote:
Originally Posted by Sadie Frost View Post
^ Yes that worked for me. Is there a way to modify this to only protect images?

I found this code: https://vborg.vbsupport.ru/showpost....9&postcount=10 but you have to add an onclick to the body of every template you want to protect and the entire page has to load before it works.
Edit: Found some code here that worked for me: http://www.dynamicdrive.com/dynamicindex9/noright2.htm


does it work with all browser?
IE,FireFox,Opera
Reply With Quote
  #9  
Old 01-23-2007, 10:10 PM
Stunner's Avatar
Stunner Stunner is offline
 
Join Date: Sep 2006
Location: GA.
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with Firefox not sure about the other lamer browsers
Reply With Quote
  #10  
Old 01-27-2007, 12:31 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheBlackPoet View Post
i need something like this for my poetry site.... so people will have a more difficult time stealing poetry... but then.. my members need it when they cut and paste... so i cant use it... but its a good thought..
Don't need to right click to cut/paste text, just highlight the text (hold left mouse button down and drag) then:

Ctrl C: Copy
Ctrl V: Paste



This code is good for people without a lot of knowledge of browsing the web, but people who have been around for awhile will know how to bypass this as you've seen from posts here. Nice find none the less and might help out some people.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04964 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete