vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Disable right click on images (https://vborg.vbsupport.ru/showthread.php?t=258186)

Footman 02-02-2011 12:11 AM

Disable right click on images
 
I've found a bit of code that will supposedly disable right click ONLY on the images and I'd like to try it on my vB install. This is the link - http://www.dynamicdrive.com/dynamicindex9/noright2.htm - and it says to add the code just above the </body> tag. But being vB is more convoluted than static html sites, I'm betting this isn't THAT easy. However I am HOPING it is.

Does anyone know which template(s) this should be added to?

Oh and please, I already understand all opinions as to the benefits, or lack there of, by doing this. I understand it's easy enough to circumvent, changes the user experience and so on. I'm still going to run it and test it out on my live site if possible and determine if I'll keep it in place after a short "beta" run.

Thanks for any help

wpeloquin 02-03-2011 06:57 PM

I would put the code in it's own java file, upload it to your server, and then place
Code:

<script type="text/javascript" src="path/to/file.js"></script>
in the "headinclude" template

Footman 02-04-2011 06:18 PM

Thanks, I'll give it a shot.

Footman 02-16-2011 02:48 PM

:( Not working for me.

I copied the code to it's own .js file and uploaded it then put
Code:

<script type="text/javascript" src="path/to/file.js"></script>
at the bottom of the "headinclude" template of the parent theme I'm using


All times are GMT. The time now is 09:47 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.01025 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete