Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Disable Select and Right click Details »»
Disable Select and Right click
Version: 1.00, by Silver Boy Silver Boy is offline
Developer Last Online: Jul 2009 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.0 Rating:
Released: 05-02-2008 Last Update: Never Installs: 16
 
No support by the author.

somebody doesn't like to someone copy text and picture of their forum.
this codes help them to solve this problem

Disable Select in board

add this code in header of style:

Code:
<!------ disable Select ------->
<head>
<meta http-equiv="Content-Language" content="en-us">
</head>
<script language="JavaScript1.2">
<!--
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//  -->
</script>
<!------ /disable Select ------->

Disable mouse right click in IE and Firefox (I didn't check for othere explorer, maybe work)
add this code in header of style:

Code:
<!------ disable right click ------->
<script language="JavaScript">
<!--
 
var message="";
///////////////////////////////////
function clickIE()
 
{if (document.all)
{(message);return false;}}
 
function clickNS(e) {
if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else
{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
 
document.oncontextmenu=new Function("return false")
// -->
</script>
<!------ /disable right click ------->

Update : Deleted "disable right click in IE" for no confusion

Show Your Support

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

Comments
  #2  
Old 05-03-2008, 09:21 PM
koolfire koolfire is offline
 
Join Date: Apr 2008
Location: vBulletin
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disabling Right click code thing doesn't wokr

Tried this on 3.6.8
Reply With Quote
  #3  
Old 05-04-2008, 06:26 AM
Silver Boy's Avatar
Silver Boy Silver Boy is offline
 
Join Date: Jun 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work in IE,
but I was update anothere code that work correctly in 3.7.x with IE and Firefox browser (maybe work with othere browser)
enjoy
Reply With Quote
  #4  
Old 05-04-2008, 03:39 PM
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi
i install to test and ...
[last code]
works in iexplorer 7
don't work in ffox
tks
beduino
Reply With Quote
  #5  
Old 05-04-2008, 07:26 PM
Silver Boy's Avatar
Silver Boy Silver Boy is offline
 
Join Date: Jun 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by beduino View Post
hi
i install to test and ...
[last code]
works in iexplorer 7
don't work in ffox
tks
beduino
did you use Disable mouse right click in IE and Firefox ? (I think u used disable right click only in IE)
I was Delete "disable right click in IE" for no confusion

just use first code for disable selecting
and use seconde code for disable right click

sure that work correctly
Reply With Quote
  #6  
Old 05-04-2008, 08:52 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seen too many of these. Simply turning javascript off in your browser makes this completely useless, unfortunately.
Reply With Quote
  #7  
Old 05-04-2008, 11:49 PM
Guest210212002
Guest
 
Posts: n/a
Default

This is just plain old JS, not really a vB mod at all.
Reply With Quote
  #8  
Old 05-08-2008, 06:46 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To be honest: Disabling right clicking makes no sense and does not really protect. It's really simple to avoid this. Anyone who's determined to copy your content or code will do so regardless of his or her ability to bring up a browser context menu. If they want your source code then it's as simple as selecting 'View Source' from the main menu. The needed or searched text can be highlighted and copied. Also images and media presentations can be retrieved from the cache and streaming media can be recorded. Disabling right-click will only make people more determined to learn exactly what it is you're hiding. And this could end up being counter-productive, as your images and source code attract unwanted attention. Not only that, but you can only disable right-click on browsers that have JavaScript enabled! This means: A visitor only has to turn off JavaScript in their browser's options to be able to ignore the script altogether!

Don't forget: Firefox provides users an easy way to stop these common Javascript annoyances! Also most Firefox users does have the Firebug Addon installed. Using this makes the cracking Javascript code more easier! Only a well meant advice -Mike
Reply With Quote
  #9  
Old 08-25-2008, 03:08 AM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the code... I need this in some parts of the board.
Reply With Quote
  #10  
Old 08-25-2008, 01:10 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike-D View Post
To be honest: Disabling right clicking makes no sense and does not really protect. It's really simple to avoid this. Anyone who's determined to copy your content or code will do so regardless of his or her ability to bring up a browser context menu. If they want your source code then it's as simple as selecting 'View Source' from the main menu. The needed or searched text can be highlighted and copied. Also images and media presentations can be retrieved from the cache and streaming media can be recorded. Disabling right-click will only make people more determined to learn exactly what it is you're hiding. And this could end up being counter-productive, as your images and source code attract unwanted attention. Not only that, but you can only disable right-click on browsers that have JavaScript enabled! This means: A visitor only has to turn off JavaScript in their browser's options to be able to ignore the script altogether!

Don't forget: Firefox provides users an easy way to stop these common Javascript annoyances! Also most Firefox users does have the Firebug Addon installed. Using this makes the cracking Javascript code more easier! Only a well meant advice -Mike
This is just meant to make someone work for it instead of making it easier.
Reply With Quote
Reply

Thread Tools

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 01:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04899 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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
  • (2)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
  • (1)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
  • (9)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_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