Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

12 Apr 2015, 11:48

Hmm sorry guys, there is a BUG with the custom/javascript page ... I need to fix it for next release. To add the custom javascript code posted earlier, you will need to do it manually like this:

1. Log in to FTP, navigate to /content/custom/javascript/

2. Delete the file page.yml

3. Open the file custom.js in any text editor

4. Add the code as I mentioned earlier at the bottom of custom.js, so it should look like this:
Code
// X3 CUSTOM JAVASCRIPT [ADVANCED]
// This is where you add counters, stats and any other custom javascripts.
// NB! Make sure your scripts are wrapped inside the <script>...</script> tag.
// function x3_load(){ console.log('Runs after x3 is loaded, jquery available.'); };
// function x3_load_page(){ console.log('Runs after each X3 ajax page load'); };

// EXAMPLE 1
// <script src='//cdnjs.cloudflare.com/ajax/libs/sizzle/2.0.0/sizzle.min.js'></script>

// EXAMPLE 2
/*
<script>
  function yourFunction(){
    console.log('log: wow my function!');
  }
  yourFunction();
</script>
*/
<script>
function x3_load(){
  $('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>
Try the website again! ;)
 
illunis
Experienced
Posts: 84
Joined: 14 May 2012, 07:24

Re: How to protect my photos?

12 Apr 2015, 14:50

Works fine now....thnx !!!
 
User avatar
masquefotos
Experienced
Posts: 140
Joined: 20 May 2011, 05:38

Re: How to protect my photos?

12 Apr 2015, 17:03

All right, thank you very much