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
  #12  
Old 03-18-2007, 05:34 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when we can rip a flash, what makes u think a simple text of image can't be done..
Reply With Quote
  #13  
Old 03-26-2007, 08:04 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks........
Reply With Quote
  #14  
Old 04-15-2007, 03:14 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know phpbb had it so only admins and whoever they select in the acp would be able to right click. I'm sure someone could work on this hack.
Reply With Quote
  #15  
Old 04-15-2007, 06:24 PM
peterpigman peterpigman is offline
 
Join Date: May 2006
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moparx View Post
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.
^^^^ What he said.
Reply With Quote
  #16  
Old 04-18-2007, 01:05 PM
HeRmAn'S HeRmAn'S is offline
 
Join Date: Apr 2006
Location: ThE FaR EnD Of tHe wOrLd
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! ..*Installed* :up:
Reply With Quote
  #17  
Old 04-18-2007, 01:08 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a hack to have it set to where admins and mods have it disabled?
Reply With Quote
  #18  
Old 05-04-2007, 04:21 PM
The)TideHunter( The)TideHunter( is offline
 
Join Date: May 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not hard to get round this tbh.

If its text your after, and theres no way of copying it, just look at the source in notepad and get it from there.
If its anything, such as images, flash movies, simply go to your temporary internet files and get them from there.

This may stop the common internet user, but not everybody.
Reply With Quote
  #19  
Old 05-05-2007, 04:12 AM
basskiller basskiller is offline
 
Join Date: Jan 2003
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by o0Hubba0o View Post
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.
not if you disable the keyboard also

like seen here
http://www.basskilleronline.com/duel-training.shtml
Reply With Quote
  #20  
Old 05-06-2007, 12:08 AM
MeMySelfNi MeMySelfNi is offline
 
Join Date: Dec 2003
Location: west coast
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by quadinfotech View Post
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!

I tried that today and it worked. No need for this hack.
Reply With Quote
  #21  
Old 05-06-2007, 04:29 PM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by basskiller View Post
not if you disable the keyboard also

like seen here
http://www.basskilleronline.com/duel-training.shtml
then you can do to Edit in the menu bar and click copy, or view the source. :P
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 07:21 PM.


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.06766 seconds
  • Memory Usage 2,307KB
  • 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
  • (4)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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